天天看点

解决 openresty Nginx 重启报错问题 nginx: [error] open() “/usr/local/openresty/nginx/logs/nginx.pid“ fa

解决 openresty Nginx 重启报错问题

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

解决 openresty Nginx 重启报错问题 nginx: [error] open() “/usr/local/openresty/nginx/logs/nginx.pid“ fa

解决方法:使用nginx -c的参数指定nginx.conf文件的位置

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

继续阅读