Apache的配置文件则是conf目录下的httpd.conf文件,将其打开:
-
首先找到ServerName(约213行),将其设置为localhost:80,并将前面的井号删除,虽然这一步如果不修改的话也可以正常运行,但启动Apache服务时会有一条烦人的提示(AH00558: httpd.exe: Could not reliably determine the server's fully qualified do main name, using fe80::fc76:abca:e24b:d490. Set the 'ServerName' directive globally to suppress this message),洁癖者还是改一下吧。
本文详细介绍了Apache服务器配置文件httpd.conf的设置方法,重点讲解了如何修改ServerName指令以避免启动时出现警告信息。

469

被折叠的 条评论
为什么被折叠?



