systemd nginx service unable to start nginx 1.11.10

Vincent Li vincent.mc.li at gmail.com
Wed May 29 00:01:02 UTC 2019


On Tue, May 28, 2019 at 4:45 PM Maxim Dounin <mdounin at mdounin.ru> wrote:

> By default, nginx uses /usr/local/nginx/logs/nginx.pid as a PID
> file path, see "--pid-path=" here:
>
> http://nginx.org/en/docs/configure.html
>
> Unless you've redefined it during compilation, or set in nginx
> configuration, or changed systemd service file appropriately,
> the result:
>
> > May 28 15:36:47 controller-dell710 systemd[1]: nginx.service: PID file
> > /run/nginx.pid not readable (yet?) after start: No such file or
> > directory
>
> is expected, as your nginx configuration does not match your
> systemd service file.

thank you! change PIDFile fixed it

[Service]

PIDFile=/usr/local/nginx/logs/nginx.pid


More information about the nginx mailing list