问题:
1、出现这个问题nginx: [error] open() "/run/nginx.pid" failed (2: No such file or directory)
解决办法:先nginx -c /etc/nginx/nginx.conf,然后nginx -s reload
2、如果重启nginx时出错提示command not found
用./nginx -s reload
nginx客户端命令行脚本在这个下面
Nginx安装目录
/usr/local/nginx/sbin