Nginx 报错: nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) 的解决方法

今天测试域名访问不了,登陆 Linux(Ubuntu)重启Nginx:

nginx -s reload

结果报错:

nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)

 

解决方法:

/usr/local/nginx/sbin/nginx -c/usr/local/nginx/conf/nginx.conf

 

posted @ 2015-04-16 17:12  nemo20  阅读(17673)  评论(0编辑  收藏  举报
访客数:AmazingCounters.com
2016/05/17 起统计