Linux kill命令关闭php think swoole进程,kill -9命令无效,又会出现新的进程
super
2023-09-07 14:53

kill命令结束掉swoole时,会自动生成新的进程
php think swoole:server failed to listen server port[rongsp:9501], Error: Address already in use[98]
导致php think swoole:server无法重载

1)查看当前swoole进程的PID
netstat -ntlp

2)使用命令查询此进程的父进程PID
cat /proc/进程PID/stat
3)找到字母后面的第一个进程号
kill 28333
4)查看进程
netstat -ntlp
5)使用kill关闭新出现的占用9501的进程即可
kill 28332
0 条讨论