![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
李逍遥ya
这个作者很懒,什么都没留下…
展开
-
python收集nginx性能指标
python收集nginx性能指标 依赖环境:python3+ 依赖库:flask centos安装python3.7 安装依赖包 yum -y install openssl-devel bzip2-devel libffi-devel expat-devel gdbm-devel readline-devel salite-devel 下载资源包 wget https://www.python.org/ftp/python/3.7.4/Python-3.7.4.tgz 解压 tar zxvf原创 2020-12-21 15:21:50 · 273 阅读 · 0 评论 -
python调用elasticsearch接口
直接附上代码,函数已写好,需要调用函数 import requests url='http://192.168.70.158:9200/' def request_send(methods,index_name,data): exec("res=requests."+methods+"(url=\'"+url+index_name+"\', data="+str(data.encode('utf-8'))+", headers={'content-type': 'application/json'}原创 2020-11-08 20:35:42 · 1203 阅读 · 0 评论