Apache httpd 启动错误 Could not reliably determine the server

配置完httpd后,启动报错:

AH00558: httpd.exe: Could not reliably determine the server’s fully qualified do
main name, using fe80::35ad:dd58:60fb:8ec4. Set the ‘ServerName’ directive globa
lly to suppress this message

 

解决方案,修改配置文件

D:\Apache24\conf\httpd.conf,

具体目录,根据apache安装目录。

然后打开改配置文件,搜索

#ServerName,

然后添加一条

ServerName localhost:80

然后保存配置文件,重启服务就可以了。

发表评论