摘要: curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" python get-pip.py pip install paramiko 阅读全文
posted @ 2020-09-18 16:57 才华配得上梦想 阅读(89) 评论(0) 推荐(0) 编辑
摘要: curl -X PUT "http://127.0.0.1:9200/_template/uint_template" -H 'Content-Type: application/json' -d'{ "index_patterns": ["uint*"], "settings" : { "inde 阅读全文
posted @ 2020-08-11 17:27 才华配得上梦想 阅读(618) 评论(0) 推荐(0) 编辑
摘要: 2,如何解决中文乱码? 查看zabbix的web目录下include/defines.inc.php文件中对于字体的定义: define('ZBX_FONTPATH', realpath('assets/fonts')); // where to search for font (GD > 2.0. 阅读全文
posted @ 2020-08-11 14:49 才华配得上梦想 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1:elasticserach安装 rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch Create a file called elasticsearch.repo in the /etc/yum.repos.d/ dir 阅读全文
posted @ 2020-08-05 18:21 才华配得上梦想 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 下载并安装实现libpcap接口的数据sniffing库,例如Npcap。 如果使用Npcap,请确保以WinPcap API兼容模式安装它。 如果您打算从loopback设备捕获流量(127.0.0.1流量),则还选择支持loopback流量的选项。 从下载页面下载Packetbeat Windo 阅读全文
posted @ 2020-06-11 19:11 才华配得上梦想 阅读(748) 评论(0) 推荐(0) 编辑
摘要: import socket def servece_client(new_socket): """为这个客户端返回数据""" # 1 接收浏览器发送过来的请求,即http请求 # GET / HTTP/1.1 # ... request = new_socket.recv(1024) print(request) ... 阅读全文
posted @ 2019-09-18 19:53 才华配得上梦想 阅读(262) 评论(0) 推荐(0) 编辑
摘要: import socket def servece_client(new_socket): """为这个客户端返回数据""" # 1 接收浏览器发送过来的请求,即http请求 # GET / HTTP/1.1 # ... request = new_socket.recv(1024) print(request) # 2 返回http格式的数据,给浏览器 # 2.1 准备发送给浏览器 浏览器的数据 阅读全文
posted @ 2019-09-12 20:06 才华配得上梦想 阅读(146) 评论(0) 推荐(0) 编辑
摘要: # 匹配变量名是否符合要求 import re def main(): names = ["name1", "_name", "2_name", "__name__", "___", "name!"] for name in names: ret = re.match("^[a-zA-Z_][a-zA-Z0-9]*$", name) ... 阅读全文
posted @ 2019-09-09 08:20 才华配得上梦想 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 判断是否可迭代 In [4]: from collections import Iterable In [6]: isinstance(123,Iterable) Out[6]: False In [11]: isinstance((123),Iterable) Out[11]: False In 阅读全文
posted @ 2019-09-06 21:26 才华配得上梦想 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Queue队列 先进先出 多进程之间通过Queue来实现数据共享 start 0开始执行,进程编号为192881开始执行,进程编号为192892开始执行,进程编号为192901 执行完毕,耗时0.553开始执行,进程编号为192892 执行完毕,耗时1.354开始执行,进程编号为192903 执行完 阅读全文
posted @ 2019-09-05 20:47 才华配得上梦想 阅读(171) 评论(0) 推荐(0) 编辑