Thursday, May 05, 2011

nginx pid error (using nginxcp)

pid      /var/run/nginx.pid;

error:
fopen `/var/run/nginx.pid': No such file or directory [ ok ]

reference: http://bugs.alpinelinux.org/issues/559

vi /etc/nginx/nginx.conf

add

pid /var/run/nginx.pid;

between worker process and error log line.

kill previous nginx process

now you can use:

service nginx restart
success!!

alternative ./configure --pid-path=/var/run/nginx.pid

No comments:

Related Posts Plugin for WordPress, Blogger...