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

作者: dee
发布时间:2015-07-13 11:11:11

今天测试域名访问不了,登陆 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

 

标签: Nginx
来源:http://www.cnblogs.com/dee0912/p/4432651.html

推荐: