今天关闭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
今天关闭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
转载于:https://www.cnblogs.com/lamp01/p/9005809.html