更新shutdown_all.sh:更新mac设备的额外说明

This commit is contained in:
hzg0601 2023-08-16 22:58:59 +08:00
parent 832c261cdf
commit 1e12944a5d
1 changed files with 1 additions and 0 deletions

View File

@ -1 +1,2 @@
# mac设备上的grep命令可能不支持grep -P选项请使用Homebrew安装;或使用ggrep命令
ps -eo pid,user,cmd|grep -P 'server/api.py|webui.py|fastchat.serve'|grep -v grep|awk '{print $1}'|xargs kill -9 ps -eo pid,user,cmd|grep -P 'server/api.py|webui.py|fastchat.serve'|grep -v grep|awk '{print $1}'|xargs kill -9