nginx: [emerg] 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)
查看被占用的端口
被系统占用了
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/HTTP
然后再进入nginx文件夹目录下面
输入nginx.exe
启动服务:start nginx
退出服务:nginx -s quit
强制关闭服务:nginx -s stop
重载服务:nginx -s reload (重载服务配置文件,类似于重启,服务不会中止)
验证配置文件:nginx -t
使用配置文件:nginx -c "配置文件路径"
使用帮助:nginx -h