关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

重启nginx时出现的问题

发布时间:2020-03-26 13:33:35

解决nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed错误


问题描述:

[root@localhost sbin]# ./nginx -s reload

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


解决方案:

[root@localhost nginx]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf


解释:

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



/template/Home/Zkeys2/PC/Static