摘要: 安装tmux 修改tmux配置 cat /root/.tmux.conf 阅读全文
posted @ 2017-03-29 19:48 CarsonFan 阅读(242) 评论(0) 推荐(0) 编辑
摘要: Openresty增加waf配置 1. Ngx lua waf 说明 防止sql注入,本地包含,部分溢出,fuzzing测试,xss,SSRF等web攻击 防止svn/备份之类文件泄漏 防止ApacheBench之类压力测试工具的攻击 屏蔽常见的扫描黑客工具,扫描器 屏蔽异常的网络请求 屏蔽图片附件 阅读全文
posted @ 2017-03-29 19:45 CarsonFan 阅读(956) 评论(0) 推荐(0) 编辑
摘要: ``` !/bin/bash yum y install python setuptools ping pypi.python.org c 4 /dev/null 2 &1 easy_install supervisor cat /etc/supervisord.conf /etc/init.d/s 阅读全文
posted @ 2017-03-29 19:43 CarsonFan 阅读(243) 评论(0) 推荐(0) 编辑
摘要: ELK系统搭建流程 1. Logstash 1.1 安装 注: 安装在需要收集日志的机器上。 1.2 创建配置 输入: 1.3 启动 2. ElasticSearch集群(三台) 2.1 安装 2.2 配置 2.2.1 elasticsearch01 2.2.2 elasticsearch02 2. 阅读全文
posted @ 2017-02-18 16:58 CarsonFan 阅读(684) 评论(0) 推荐(0) 编辑
摘要: ``` mysqladmin -h172.16.200.43 -uroot -p status -i 1 ``` ``` #!/bin/bash mysqladmin -uroot -h172.16.200.43 -p'000000' extended-status -i1|awk 'BEGIN{local_switch=0;print "QPS Commit Rollback TPS... 阅读全文
posted @ 2017-02-07 14:10 CarsonFan 阅读(370) 评论(0) 推荐(0) 编辑
摘要: Mysql multi实现mysql双实例 1、添加mysql用户 以root登录,新建mysql用户组 2、 mariadb的安装置 2.1 安装所需组件 2.2创建mariadb编译根目录 2.3解压缩源码包 2.4编译安装 2.5修改环境变量文件,修改vi ~/.bash_profile,添加 阅读全文
posted @ 2017-02-07 14:08 CarsonFan 阅读(762) 评论(0) 推荐(0) 编辑
摘要: 1.搜索Docker镜像 2.获取镜像 3.查看本地镜像 4.删除镜像 5.启动容器 6.查看荣誉运行状态 7.停止容器 8.进入容器 阅读全文
posted @ 2016-12-24 23:00 CarsonFan 阅读(214) 评论(0) 推荐(0) 编辑
摘要: codis 3.1 安装搭建 一.基本信息 1. 服务器基本信息 | ip地址 | 安装服务 | | | | | 172.16.200.71 | zk1、codis dashboard、codis fe、codis ha、 codis proxy1、group1_M(6379)、group2_S(6 阅读全文
posted @ 2016-12-24 22:53 CarsonFan 阅读(4140) 评论(0) 推荐(0) 编辑
摘要: 大数据平台搭建(hadoop+spark) 一.基本信息 1. 服务器基本信息 |主机名 |ip地址 | 安装服务 | | | | | | spark master| 172.16.200.81 | jdk、hadoop、spark、scala | | spark slave01| 172.16.2 阅读全文
posted @ 2016-12-24 22:38 CarsonFan 阅读(7371) 评论(0) 推荐(0) 编辑
摘要: 作者:Latm Ake链接:https://www.zhihu.com/question/20523036/answer/35225920来源:知乎著作权归作者所有 阅读全文
posted @ 2016-11-13 22:25 CarsonFan 阅读(1191) 评论(0) 推荐(0) 编辑