当配置完Nginx.conf之后,关闭文件,执行命令检查配置的文件是否有问题,如果如图所示则说明没有问题,否则需要检查配置是否出现问题
/usr/local/nginx/sbin/nginx -s reload
Windows下:
直接点击Nginx目录下的nginx.exe 或者 cmd运行start nginx 关闭 nginx -s stop