进程性的 nginx -s stop后再次启动nginx -s reload ,总是会报错误nginx: [error] open() "/alidata/server/nginx/logs/nginx.pid" failed (2: No such file or directory),这应该是因为把nginx进程杀死后pid丢失了,下一次再开启nginx -s reload时无法启动.
http://blog.csdn.net/llnara/article/details/8691049
先执行如下指令
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
再执行重启指令即可
/usr/local/nginx/sbin/nginx -s reload