From c42e1509f5acb7ecf228e7e739615ca2e6001e58 Mon Sep 17 00:00:00 2001 From: 8ga Date: Fri, 17 Oct 2025 16:28:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20202510=5F=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E7=9B=91=E6=8E=A7vLLM=E8=BF=9B=E7=A8=8B.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 202510_定时监控vLLM进程.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/202510_定时监控vLLM进程.md b/202510_定时监控vLLM进程.md index 418c564..476467e 100644 --- a/202510_定时监控vLLM进程.md +++ b/202510_定时监控vLLM进程.md @@ -100,7 +100,7 @@ while true; do done ``` -## 运行定时任务脚本 +## 定时任务 ##### 第一次运行先赋权 @@ -108,14 +108,28 @@ done chmod +x vim /hook/timer_bash.sh ``` -##### 运行脚本 +##### 运行 ``` sudo nohup /hook/timer_bash.sh > /hook/timer_bash.log 2>&1 & echo $! > /hook/timer_bash.pid ``` -##### 停止脚本 +##### 停止 ``` kill $(cat /hook/timer_bash.pid) +``` + +## 抓包脚本 + +##### 运行 + +``` +sudo nohup bash /hook/tshark_bash.sh >> /hook/tshark_bash.log 2>&1 & echo $! > /hook/tshark_bash.pid +``` + +##### 停止 + +``` +kill -9 $(cat /hook/tshark_bash.pid) ``` \ No newline at end of file