shell连接 sudo -s 切换至根目录
1.查找nginx 是否安装,查找安装目录。一般在 “/export/servers/nginx/conf”
find /|grep nginx.conf
2.重启nginx,一般目录 在 “/export/servers/nginx/sbin”
①若出现“nginx: [alert] kill(23894, 1) failed (3: No such process)” 这种错误
查看相应的host配置是否关闭
②bash: nginx: command not found
可加个./
./nginx -s reload