1
0

更新 202510_定时监控vLLM进程.md

This commit is contained in:
8ga 2025-10-17 16:28:41 +08:00
parent 549ddf9944
commit c42e1509f5

View File

@ -100,7 +100,7 @@ while true; do
done done
``` ```
## 运行定时任务脚本 ## 定时任务
##### 第一次运行先赋权 ##### 第一次运行先赋权
@ -108,14 +108,28 @@ done
chmod +x vim /hook/timer_bash.sh chmod +x vim /hook/timer_bash.sh
``` ```
##### 运行脚本 ##### 运行
``` ```
sudo nohup /hook/timer_bash.sh > /hook/timer_bash.log 2>&1 & echo $! > /hook/timer_bash.pid sudo nohup /hook/timer_bash.sh > /hook/timer_bash.log 2>&1 & echo $! > /hook/timer_bash.pid
``` ```
##### 停止脚本 ##### 停止
``` ```
kill $(cat /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)
``` ```