欢迎来到梦飞科技

服务器租用

当前优惠活动:

办理Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid

风信网(ithov.com)原创文章:从头启动处事器,域名注册,会见web处事发明无法欣赏啦!登岸处事器之后进到nginx利用./nginx -s reload从头读取设置文件,发明报nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)错误,进到logs文件发明简直没有nginx.pid文件

 

[[email protected] sbin]# ./nginx -s reload

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

 

办理要领:

[[email protected] nginx]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

 

利用nginx -c的参数指定nginx.conf文件的位置

 

[[email protected] nginx]# cd logs/

[[email protected] 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文件已经有了。

梦飞科技 - 全球数据中心基础服务领先供应商

Copyright © 2003-2019 MFISP.COM. 国外服务器租用 IDC公司 版权所有 粤ICP备11019662号