apache make_sock:无法绑定到地址[::]:8989

时间:2013-07-19 05:21:13

标签: apache

执行时:

service httpd start,

我收到此错误

httpd:(98)Address already in use: make_sock: could not bind to address [::]:8989
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:8989
no listening sockets available, shutting down
Unable to open logs

在httpd.conf中,它是Listen 8989。当我更改为Listen *:8989时,它可以正常工作。为什么?怎么了?

1 个答案:

答案 0 :(得分:0)

有些东西正在使用端口8989.可能是Apache本身的先前实例。

在你的shell / cmd中输入

Windows :(您可能需要以管理员身份运行)

netstat -anb

Linux的:

sudo netstat -tulpn

顺便问一下,Listen中有多个httpd.conf指令吗?确保你有一个。