httpd: Could not reliably determine the server's fully qualified domain name的解决方法

发布时间:2020-07-23编辑:脚本学堂
httpd: Could not reliably determine the server's fully qualified domain name(apache启动时报错)的解决方法

httpd报错: Could not reliably determine the server's fully qualified domain name(apache启动时报错)。
解决方法:
进入apache的安装目录:
Windows : D:Program FilesApache Software FoundationApache2.2conf
linux : /usr/local/apache/conf
用记事本打开httpd.conf
将里面的 #ServerName localhost:80 注释去掉即可。
再执行 httpd
然后,访问http://localhost:80,如果页面显示“It works!”,即表示apache已安装并启动成功。