随笔分类 -  运维

摘要:日志格式 阅读全文
posted @ 2018-11-21 17:24 小秒 阅读(1392) 评论(0) 推荐(0)
摘要:REDIS 版本 < 4.0 笔者用的是 v=3.0.7 REDIS集群创建镜像:registry.cn-shenzhen.aliyuncs.com/cp_m/redis-trib:0.1.3 REDIS节点镜像:registry.cn-shenzhen.aliyuncs.com/cp_m/redi 阅读全文
posted @ 2018-11-06 09:59 小秒 阅读(2180) 评论(0) 推荐(0)
摘要:升级步骤 wget https://wps-oss.oss-cn-shenzhen.aliyuncs.com/openssh_update.tar.gz tar xvf openssh_update.tar.gz cp openssh_update/lib* /usr/local/lib/ ldco 阅读全文
posted @ 2018-07-11 11:54 小秒 阅读(847) 评论(0) 推荐(0)
摘要:vim prometheus.yml vim rule.yml vim alertmanager.yml vim test.tmpl 启动:./alertmanager --log.level=debug ./prometheus --log.level=debug 阅读全文
posted @ 2018-05-22 14:37 小秒 阅读(28787) 评论(0) 推荐(2)
摘要:PS:所有节点安装之前记得先把镜像准备好,否者将无法启动,也不报错。 $ cat /etc/hosts192.168.11.1 master192.168.11.2 node 禁用防火墙: 禁用SELINUX: 创建/etc/sysctl.d/k8s.conf文件,添加如下内容: 执行如下命令使修改 阅读全文
posted @ 2018-04-20 15:39 小秒 阅读(2761) 评论(0) 推荐(0)
摘要:kibana 安装 sentin 插件 ./bin/kibana-plugin install https://github.com/sirensolutions/sentinl/releases/download/tag-6.2.3-2/sentinl-v6.2.3.zip # 根据实际情况下载对 阅读全文
posted @ 2018-04-18 17:50 小秒 阅读(5113) 评论(0) 推荐(0)
摘要:架构拓扑图为: 准备工作: 下载资源包: Elasticsearch: wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz # 这一步用docker启动,可以不用下载。 Kibana 阅读全文
posted @ 2018-04-18 14:10 小秒 阅读(694) 评论(0) 推荐(0)
摘要:场景:我往同一个集合里面插入 三条数据 aa:aa bb:bb cc:cc 。后来我后悔了,不想插入 bb:bb,通过oplog重放过滤好 bb:bb这条数据。 原理: 1.通过 oplog.rs 找到后悔那条命令的操作时间(ts)。 1521094621, 1 2.恢复全量备份的数据,然后恢复从全 阅读全文
posted @ 2018-03-15 15:37 小秒 阅读(2555) 评论(0) 推荐(0)
摘要:文档地址:https://github.com/Qihoo360/mongosync/wiki/%E4%BD%BF%E7%94%A8%E6%A0%B7%E4%BE%8B #数据全量备份mongodump --authenticationDatabase admin -u root -p root - 阅读全文
posted @ 2018-03-14 15:39 小秒 阅读(983) 评论(0) 推荐(0)
摘要:环境搭建参考地址:http://www.cnblogs.com/cp-miao/p/7505910.html 阅读全文
posted @ 2018-01-09 19:25 小秒 阅读(1388) 评论(0) 推荐(0)
摘要:git clone --branch master https://github.com/openresty/lua-resty-redis.git yum install openssl openssl-devel wget http://tengine.taobao.org/download/t 阅读全文
posted @ 2017-09-11 17:15 小秒 阅读(929) 评论(0) 推荐(0)
摘要:yum -y install git yum -y install patch yum -y install pcre-devel yum install -y zlib-devel mkdir /opt/nginx/ && cd /opt/nginx/ wget https://openresty 阅读全文
posted @ 2017-08-17 16:03 小秒 阅读(1965) 评论(0) 推荐(0)
摘要:smbd : yum install samba samba-client samba-swat mount.cifs : yum -y install cifs-utils ##挂载nas 文件用的。 smdb部署 阅读全文
posted @ 2017-07-19 15:13 小秒 阅读(892) 评论(0) 推荐(0)
摘要:rsync : wget http://rsync.samba.org/ftp/rsync/src/rsync-3.1.1.tar.gz Sersync: wget https://raw.githubusercontent.com/wsgzao/sersync/master/sersync2.5. 阅读全文
posted @ 2017-07-19 15:11 小秒 阅读(458) 评论(0) 推荐(0)
摘要:top观察进程数据时,会有如下几个内存参数(可以用f选择显示哪些参数): VIRT, RES, SHR, SWAP, CODE, DATA top实际上是从/proc/<pid>/statm文件中读取这些信息,/proc/<pid>/smaps文件是进程虚拟内存映射的详细数据,我们知道内核的stru 阅读全文
posted @ 2017-01-13 14:26 小秒 阅读(980) 评论(0) 推荐(0)
摘要:VIRT对应于内核的mm->total_vm,包括了进程代码段,数据段所有申请过的虚拟内存,后面会详细阐述 SHR对应于内核的mm->file_rss,代表进程可能是与其他进程共享的内存(不一定是真的共享了,比如打开动态库占用的虚存,未必这个动态库就被其他人也用到)。网上查阅了资料,记入mm->fi 阅读全文
posted @ 2017-01-13 14:13 小秒 阅读(502) 评论(0) 推荐(0)
摘要:资源准备: wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tgz wget https://www.djangoproject.com/m/releases/1.8/Django-1.8.7.tar.gz wget https 阅读全文
posted @ 2017-01-06 15:51 小秒 阅读(2272) 评论(0) 推荐(0)
摘要:iptables命令可用于配置Linux的包过滤规则,常用于实现防火墙、NAT。咋一看iptables的配置很复杂,掌握规律后,其实用iptables完成指定任务并不难,下面我们通过具体实例,学习iptables的详细用法。 1.删除已有规则 在新设定iptables规则时,我们一般先确保旧规则被清 阅读全文
posted @ 2016-12-23 16:04 小秒 阅读(330) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/zping/p/5275531.html 阅读全文
posted @ 2016-12-16 13:57 小秒 阅读(194) 评论(0) 推荐(0)
摘要:恢复内容开始 rkhunter简介: 中文名叫”Rootkit猎手”, rkhunter是Linux系统平台下的一款开源入侵检测工具,具有非常全面的扫描范围,除了能够检测各种已知的rootkit特征码以外,还支持端口扫描、常用程序文件的变动情况检查。 rkhunter的官方网站位于http://ww 阅读全文
posted @ 2016-12-07 14:20 小秒 阅读(10896) 评论(0) 推荐(0)