【ubuntu14.04安装教程】Ubuntu14.04启动Apache2报错AH00558问题解决办法

更新时间:2020-10-31    来源:apache    手机版     字体:

【www.bbyears.com--apache】

在Ubuntu14.04启动Apache时出现了,如下错误。

# service apache2 reload
 * Restarting web server apache2                                                                                  
AH00557: apache2: apr_sockaddr_info_get() failed for zabbix.cc
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
                                                                                                            [ OK ]
# vi /etc/apache2/conf-available/servername.conf
ServerName localhost

# a2enconf servername
Enabling conf servername.
To activate the new configuration, you need to run:
  service apache2 reload

再次重启Apache2,不提示错误了。

# service apache2 restart
 * Restarting web server apache2                                                                            [ OK ]

当没有指定ServerName时,Apache会尝试通过IP地址解析ServerName导致的。

本文来源:http://www.bbyears.com/jiaocheng/107949.html

热门标签

更多>>

本类排行