问题: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