解决nginx重启时问题: nginx: [error] invalid PID number “” in “/usr/local/nginx/logs/nginx.pid”
nginx启动时报错,查看/usr/local/nginx/logs/nginx.pid,不管是否存在,直接执行下面的操作
解决办法:执行/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
再重启nginx -s reload就可以解决了