YIem`s Blog -心比天高命比纸薄-个人垃圾博客站

宝塔面板启动Nginx-出现Address already in use,宝塔面板启动Nginx-出现80短裤被占用问题

宝塔面板启动Nginx-出现Address already in use,宝塔面板启动Nginx-出现80短裤被占用问题

2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/10/03 10:27:22 [emerg] 345#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2018/10/03 10:27:22 [emerg] 345#0: still could not bind()

原因是你使用的Linux环境中默认有Apache,而在服务器重启中会去占用80端口,所以需要关闭Apache,可以搜索你的Linux版本+Apache Stop 命令:比如Debian:/etc/init.d/apache2 stop 如果你不想再出现这种问题,可以将Apache卸载,或者可以选择没有Apache版本的Linux

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »