Nginx Restart Error [error] invalid PID number /usr/…/nginx.pid Fix
The error message is roughly the same, whether you restart or stop Nginx:
[root@123 ~]# service nginx restart
Stoping nginx… nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid"
failed. Use force-quit
Starting …