centos yum nginx nginx default installation services, service nginx restart, error.
nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx/nginx.pid”
A search online, most are saying
nginx -c /etc/nginx/nginx.conf or nginx -c /etc/nginx/nginx.conf
Then run
nginx -s reload
Solutions are invalid
nginx not restart exit stop
This fault is reported, the new pid file in the corresponding directory, or an error
A temporary solution is to revert to the default settings. Then restart the server.
It.
Temporarily not used to find a solution, and the solution fellow who does not bother to tell next. Ice and snow in Bese,!