参考: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..."
微信扫一扫
参考: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..."
相关推荐