swoole--服务平滑重启

阅读 56

2022-06-13

参考:​​https://wiki.swoole.com/wiki/page/p-server/reload.html​​

shell代码:

echo "loading..."

pid=$(pidof live)
# pid= `pidof live`

echo $pid

kill -usr1 $pid

echo "success loading..."

 


相关推荐

精彩评论(0)

0 0 举报