重启服务器,然后启动ngixn的时候,报错如下
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
然后再尝试启动就好了
/usr/local/nginx/sbin/nginx -s reload
参考: https://blog.csdn.net/weixin_39539399/article/details/84258222