Apache错误代码:AH0058

错误提示

在启动Apache服务的时候报了一个错,AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message


解决方法

编辑Apache2.conf文件

  文件路劲:/etc/apache2/apache2.conf

添加ServerName配置

  在/etc/apache2/apache2.conf中添加下面代码:
  ServerName localhost

重启Apache服务

  sudo service apache2 restart

简单解决

你可能感兴趣的:(Apache错误代码:AH0058)