appach启动错误

问题:

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using centos7.localdomain. Set the 'ServerName' directive globally to suppress this message
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

解决:

  a,将 apache 的配置文件httpd.conf中的 ServerName 改成可用域名或如下配置

  b,netstat -lnp | grep 80查看端口占用情况

    如果端口被占用,kill 1194

  c,重新启动Apache

‘真实的’活着
原文地址:https://www.cnblogs.com/chenxi-hxl/p/12385920.html