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 @   nemo20  阅读(17678)  评论(0编辑  收藏  举报
(评论功能已被禁用)
访客数:AmazingCounters.com
2016/05/17 起统计
点击右上角即可分享
微信分享提示