首先看看nginx的目录
ps -ef | grep nginx
检查nginx配置文件是否正确
找到主地下的sbin目录并输入命令./nginx -t
重新启动并进入sbin下,然后键入./nginx -s reload