解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
2017-02-16 17:27
579 查看
解决方法:
[root@localhost nginx]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
使用nginx -c的参数指定nginx.conf文件的位置
[root@localhost nginx]# cd logs/
[root@localhost logs]# ll
总用量 12
-rw-r--r-- 1 root root 1246 12月 9 18:10 access.log
-rw-r--r-- 1 root root 516 12月 10 15:39 error.log
-rw-r--r-- 1 root root 5 12月 10 15:38 nginx.pid
看nginx.pid文件已经有了。
[root@localhost nginx]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
使用nginx -c的参数指定nginx.conf文件的位置
[root@localhost nginx]# cd logs/
[root@localhost logs]# ll
总用量 12
-rw-r--r-- 1 root root 1246 12月 9 18:10 access.log
-rw-r--r-- 1 root root 516 12月 10 15:39 error.log
-rw-r--r-- 1 root root 5 12月 10 15:38 nginx.pid
看nginx.pid文件已经有了。
相关文章推荐
- 解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- Web 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed(2:No such file or durectory)
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
- 解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid
- Nginx 报错: nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) 的解决方法
- 解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误
- 解决nginx: [error] open() "/usr/local/var/run/nginx.pid" failed错误
- nginx: [error] invalid PID number "" in "/usr/local/lnmp/nginx/logs/nginx.pid"问题解决办法