ps ax -o pid,ppid,%cpu,vsz,wchan,command|egrep '(nginx|PID)'
PID PPID %CPU VSZ WCHAN COMMAND
68 1 0.0 2464428 - nginx: master process /usr/local/opt/nginx/bin/nginx -g daemon off;
发现这个的路径是opt下,但我的cong在etc里面,现在sudo nginx任何命令都用不了,但却能访问怎么解决
killall -9 nginx
No matching processes belonging to you were found
sudo nginx -s stop
nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory
sudo nginx
nginx: [emerg] bind() to 0.0.0.0:8089 failed (48: Address already in use)
nginx 错误使用总结一、sudo nginx 后出现下面的报错: nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address alread...