nginx启动报错nginx: [error] open() "/usr/local/etc/nginx/logs/nginx.pid" failed
问题:nginx启动的时候会报丢失pid的错误
nginx: [error] open() “/usr/local/var/run/nginx.pid” failed
解决方案:
sudo nginx -c /usr/local/etc/nginx/nginx.conf // 根据指定文件路径启动
sudo nginx -s reload // 重新加载