服务器上安装的是Debian5.2系统升级完以后隔三差五的网站不能访问,重启apache时每每出现apache2(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 错误
[root@localhost]# /etc/init.d/apache restart 提示: (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs
pkill apache 进程后重启apache就又好了,可是又找不到哪一个程序占用了80端口修改 /etc/apache2/port.conf文件的 Listen 80 端口不启作用!
此时突然灵感闪现,会不会是hosts出现问题?打开来一看原来里面多了几组IPV6的本地解析 全部注释掉它们就可以了
# The following lines are desirable for IPv6 capable hosts #::1 localhost ip6-localhost ip6-loopback #fe00::0 ip6-localnet #ff00::0 ip6-mcastprefix #ff02::1 ip6-allnodes #ff02::2 ip6-allrouters #ff02::3 ip6-allhosts
就此干扰很久的apache莫名档掉的问题得以解决!!

Subscribe