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

posted @ 2020-02-29 20:29  偷懒曦  阅读(151)  评论(0编辑  收藏  举报