访问 localhost:8080 时,显示的是 IIS,很明显是端口被占用;
找到 nginx 文件下 logs 文件 查看 error 日志:[emerg] 9688#10228: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions);
确定是端口占用无疑了,解决方法两个:
访问 localhost:8080 时,显示的是 IIS,很明显是端口被占用;
找到 nginx 文件下 logs 文件 查看 error 日志:[emerg] 9688#10228: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions);
确定是端口占用无疑了,解决方法两个: