解决httpd: Could not reliably determine the server's fully qualified domain name
在windows 中安装完apache,如果在检验Apache是否安装成功时(在linux下使用./apachectl start, 在dos窗中输入httpd)如果出现httpd: Could not reliably determine the server's fully qualified domain name
解决方案:
进入apache的安装目录,再进入其下的\Apache2.2\conf
用vi打开httpd.conf
将里面的#ServerName  localhost:80 注释去掉即可。
再执行httpd
然后可以通过浏览器访问 http://localhost ,如果页面显示“It works!”,即表示apache已安装并启动成功。