图文详解TCP_IP基础原理和技术电子书pdf下载
netstat -apn|grep 80
0 0.0.0.0:80 0.0.0.0:* LISTEN 2070/nginx
KILL掉2070
kill 2070
重新加载
/usr/local/nginx/sbin/nginx -s reload
[error]: open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
如果继续报错执行以下语句
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/sbin/nginx -s reload
转载请注明:谷谷点程序 » linux重启nginx后出现nginx的pid丢失的解决方案