错误:
nginx: [error] open() "/usr/local/openresty/nginx/logs/nginx.pid" failed (2: No such file or directory)
解决:
执行下面命令:(一定要在nginx目录下执行)
/usr/local/openresty/nginx/sbin/nginx -c /usr/local/openresty/nginx/conf/nginx.conf
没有输出任何信息就是成功了,查看log文件夹下面是否有nginx.pid文件,如果有,肯定成功了。重新刷新OpenResty