YIem`s Blog -心比天高命比纸薄-链接找不到的请在站内搜索内容！ - apache2
type: channel
link: https://yiem.net/tag/apache2/
items: 宝塔面板启动Nginx-出现Address already in use,宝塔面板启动Nginx-出现80短裤被占用问题

宝塔面板启动Nginx-出现Address already in use,宝塔面板启动Nginx-出现80短裤被占用问题
type: item
date: 2018-10-04T20:12:09+08:00
description: 宝塔面板启动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