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

Posted xiaoleiel

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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时可能有效,加载时会冲突。

以上是关于apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80的主要内容,如果未能解决你的问题,请参考以下文章

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

Swoole计一次swoole_server配合laravel5启动报错:Address already in use[98]

nginx启动提示nginx: [emerg] bind() to 0.0.0.0:8080 failed (98: Address already in use)

同一系统下如何运行多个Neo4j数据库&Caused by: org.neo4j.helpers.PortBindException: Address 0.0.0.0:7687 is alre

转 : Apache启动报错:could not bind to address [::]:443 解决办法

Centos7.5启动Apache Web 服务报错AH00072: make_sock: could not bind to address [::]:9096