[Solucion] nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
Mientras iniciaba Nginx (nginx-1.8.0) en un Servidor Ubuntu 14.04 me encontré con este error:
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
root@vicolinker:~/nginx-1.8.0# sudo /usr/local/nginx/sbin/nginx -s reload
nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)
Para solucionarlo hay que ejecutar lo siguiente:
root@vicolinker:~/nginx-1.8.0# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
y ya podrás volver a iniciarlo:
root@vicolinker:~/nginx-1.8.0# sudo /usr/local/nginx/sbin/nginx -s reload