首先看一下nginx的目录 ps -ef | grep nginx 查看nginx配置文件是否正确 找到master地下的sbin目录输入命令 ./nginx -t 重启进入sbin下面输入 ./nginx -s reload