Nginx踩坑填坑
in Nginx with 0 comment

Nginx踩坑填坑

in Nginx with 0 comment

解决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)

网上参考了一下文章可行的方法

/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

参考文章:

Keefer

0评论