多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
Swoole支持的信号: ``` SIGKILL -9 pid 强制杀掉进程 SIGUSR1 -10 master_pid 重启所有worker进程 SIGUSR2 -12 master_pid 重启所有task_worker进程 SIGRTMIN -34 master_pid 重新打开日志(版本1.8.11+) ``` master_pid代表主进程pid。示例(假设主进程名称是swoole_server,pid是3427): ``` # 杀掉进程swoole_server kill -9 $(ps aux|grep swoole_server|grep -v grep|awk '{print $2}') # 重启swoole_server的worker进程 kill -10 $(ps aux|grep swoole_server|grep -v grep|awk '{print $2}') # 重新打开日志 kill -34 3427 ```