更新 202510_定时监控vLLM进程.md
This commit is contained in:
parent
549ddf9944
commit
c42e1509f5
@ -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)
|
||||
```
|
||||
Loading…
Reference in New Issue
Block a user