PID file /run/nginx.pid not readable (yet?) after start
Posted on June 27, 2016 • 1 minutes • 114 words • Suggest Changes
Aauch, after installing Nginx on a new machine Centos 7, I could not start it… for some weird error :
systemd: Starting nginx - high performance web server... nginx: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: nginx: configuration file /etc/nginx/nginx.conf test is successful systemd: PID file /run/nginx.pid not readable (yet?) after start. systemd: nginx.service start operation timed out. Terminating. systemd: Failed to start nginx - high performance web server. systemd: Unit nginx.service entered failed state. systemd: nginx.service failed.
The file did exist at /var/run/nginx.pid and was readable. The fix after some searching :
and restart the service, that’s it ? yep, that’s it!