纵有疾风起
人生不言弃

apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80

说明80端口被用

终端:  ps -ef|grep httpd察看占用的进程或者用netstat -lnp|grep 80

找到后kill掉,如果都不行那么再试试以下方法

终端输入:

find / -name ports.conf

/etc/apache2/ports.conf

输入:

vim ‘/etc/apache2/ports.conf’

键入‘i’即可修改,

将listen 80 这一句注释掉

按‘Esc’退出编辑状态

按‘:wq’,保存并退出(‘:q’不保存退出,‘:q!’不保存强制退出,‘:wq!’强制保存退出)

输入:

sudo /etc/init.d/apache2 start 即可。

当httpd.conf和ports.conf中都有listen 80时可能有效,加载时会冲突。

文章转载于:https://www.cnblogs.com/xiaoleiel/p/11160651.html

原著是一个有趣的人,若有侵权,请通知删除

未经允许不得转载:起风网 » apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
分享到: 生成海报

评论 抢沙发

评论前必须登录!

立即登录