摘要: 1.简介 官网为 http://supervisord.org/ A Process Control System 使用b/s架构、运行在类Unix系统上一个进程监控管理系统 它可以使进程以daemon方式运行,并且一直监控进程,在意外退出时能自动重启进程。 2.安装部署 #安装supervisor 阅读全文
posted @ 2021-01-06 11:06 SRE在路上 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.首先设置一个lifecycle policies 2.创建索引模板,在模板中绑定生命周期 PUT _template/logstash-tx { "order" : 10, "version" : 60001, "index_patterns" : [ "logstash-*" ], "sett 阅读全文
posted @ 2021-01-06 10:44 SRE在路上 阅读(436) 评论(0) 推荐(0) 编辑
摘要: TCP重传是什么 如何排查TCP重传 如何监控TCP重传 #!/bin/bash export PATH='/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin' SHELLDIR="$( cd "$( dirname "${BAS 阅读全文
posted @ 2020-12-28 17:14 SRE在路上 阅读(115) 评论(0) 推荐(0) 编辑
摘要: ![](https://images2018.cnblogs.com/blog/1059480/201805/1059480-20180515150434436-2108623745.png) 阅读全文
posted @ 2018-05-15 15:05 SRE在路上 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 常用快捷键 日常常用操作: 1.多行合并 准备对以下文档进行合并成一行,并每个段用,分割 ctrl + f 打开搜索栏,按以下操作 点击全部替换,得到以下数据 阅读全文
posted @ 2018-05-14 17:59 SRE在路上 阅读(2731) 评论(0) 推荐(0) 编辑
摘要: 1.django admin.py startproject mysite 开始一个项目,会初始化一些项目的结构文件 2.python manage.py runserver ip:port 如: python manage.py runserver 127.0.0.1:8080 利用ip可以访问不 阅读全文
posted @ 2018-05-14 17:44 SRE在路上 阅读(299) 评论(0) 推荐(0) 编辑
摘要: os模块提供了walk方法实现目录遍历 遍历某个目录 import os path='/root' for dirpath,dirnames,filenames in os.walk(path): for file in filenames: fullpath=os.path.join(dirpat 阅读全文
posted @ 2018-01-03 16:25 SRE在路上 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 激活的办法:这个必须的联网才可以使用(每次打开PyCharm都需要电脑联网才可以正常使用),要是没网的话,就不能激活使用啦,大家注意哈。 http://idea.iteblog.com/key.php(推荐,实测有效) 阅读全文
posted @ 2017-12-19 14:39 SRE在路上 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 列表去重 1.方法1 借助一个临时列表 ids = [1,2,3,3,4,2,3,4,5,6,1] news_ids = [] for id in ids: if id not in news_ids: news_ids.append(id) print news_ids 2.方法2 使用set方法 阅读全文
posted @ 2017-12-19 14:30 SRE在路上 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 何为syn flood攻击: SYN Flood是一种广为人知的DoS(拒绝服务攻击)是DDoS(分布式拒绝服务攻击)的方式之一,这是一种利用TCP协议缺陷,发送大量伪造的TCP连接请求,从而使得被攻击方资源耗尽(CPU满负荷或内存不足)的攻击方式(TCP协议的缺陷,所以没办法根除,除非重做TCP协 阅读全文
posted @ 2017-12-16 15:55 SRE在路上 阅读(481) 评论(0) 推荐(0) 编辑