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