nginx 80 端口被占用,找到对应进程杀不完, kill 完就会有新的怎么解决

查看 68|回复 3
作者:zhj0326   
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
nginx: [emerg] still could not bind()
ss@sdeMacBook-Pro ~ % ps ax -o pid,ppid,%cpu,vsz,wchan,command|egrep '(nginx|PID)'
PID PPID %CPU VSZ WCHAN COMMAND
4587 4506 0.0 408636112 - egrep (nginx|PID)
ss@sdeMacBook-Pro ~ % sudo kill -9 4587
kill: 4587: No such process
ss@sdeMacBook-Pro ~ % ps ax -o pid,ppid,%cpu,vsz,wchan,command|egrep '(nginx|PID)'
PID PPID %CPU VSZ WCHAN COMMAND
4592 4506 0.0 408626896 - egrep (nginx|PID)

Nginx, pid, bind

lerry   
killall -9 nginx
dzdh   
杀 master 进程。你是不是杀子进程了。要杀 master 才行。
dzdh   
mac 上用 brew services stop 。自己编译的另说。
您需要登录后才可以回帖 登录 | 立即注册

返回顶部