经常重启的时候 会遇到这个问题 报错:

nginx: [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