nginx启动发现端口被占用
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
解决方法:
1.安装iptables
2.配置端口
3.重启iptables服务
4.关掉占用端口
5.重启nginx
原文参考:nginx启动提示nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)_Less Is More-优快云博客