Skip to content

Troubleshooting

Nginx start error

When nginx fails to start

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.
Change
pid /run/nginx.pid;
to
pid /var/run/nginx.pid;
in
/etc/nginx/nginx.conf

click here for article