From ce556904b24c485b9f57a44ece26ca9bfb1f96e8 Mon Sep 17 00:00:00 2001 From: admin <605696661@qq.com> Date: Tue, 2 Jun 2026 13:36:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20python=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=96=B9=E6=B3=95.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python使用方法.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 python使用方法.txt diff --git a/python使用方法.txt b/python使用方法.txt new file mode 100644 index 0000000..e8685f0 --- /dev/null +++ b/python使用方法.txt @@ -0,0 +1,21 @@ +前置依赖安装 +bash +运行 +# 安装paramiko SSH库 +pip3 install paramiko +使用方法 +新建ip.txt,每行一个 IP,支持 Windows 导出的带 \r 换行文件,脚本自动清洗 +执行脚本,参数为要查询的进程名 +bash +运行 +# 查询trap杀毒进程 +python3 check_proc.py trap + +# 查询node_exporter监控进程 +python3 check_proc.py node_exporter + +# 查询nginx +python3 check_proc.py nginx + +# 查询redis +python3 check_proc.py redis \ No newline at end of file