在nginx目录下cmd,nginx -t,找到原因是:“在端口80上运行NGINX时,因为端口80是HTTP默认端口,需要管理员权限才能访问” 所以修改端口号: 在nginx.conf文件中,修改listen:80为8080 解决: