重启apache错误提示:(98)Address already in use: make_sock: could not bind to address

2012年04月19日 11:38 by:老修

万网蛋疼的主机重启 apache 时提示:

  1. (98)Address already in use: make_sock: could not bind to address [::]:80 
  2. (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 
  3. no listening sockets available, shutting down 
  4. Unable to open logs

莫名其妙的httpd占用80端口,关闭这个服务:

  1. killall -9 httpd

再重启ok:

  1. service httpd restart