httpd: Could not reliably determine the server's fully qualified domain name
来源:phperz.com 作者:phper 发布时间:2011-12-30
启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name 解决方案: 进入apache的安装目录:(视个人安装情况而不同) Windows : D:Program FilesApache Software FoundationApache2.2conf linux : /usr/local/apache/co
启动apache遇到错误:httpd: Could not reliably determine the server's fully qualified domain name
解决方案:
进入apache的安装目录:(视个人安装情况而不同)
Windows : D:\Program Files\Apache Software Foundation\Apache2.2\conf
linux : /usr/local/apache/conf
用记事本打开httpd.conf
搜索"#ServerName"
将里面的#ServerName localhost:80注释去掉即可(就是把"#"号去掉)。
再启动apache 即可
apachectl start
然后可以通过浏览器访问http://localhost:80,如果页面显示“It works!”,即表示apache已安装并启动成功。
延伸阅读:Apache2 httpd.conf 中文版详解Apache的httpd.conf文件常用指令解释Apache如何在httpd.conf里禁止IP段httpd.conf设置一个IP两个域名的方法Apache中禁止IP段,在httpd.conf中的写法lighttpd 再爆漏洞 影响所有版本lighttpd 1.4.30发布lighttpd开启gzip压缩Lighttpd1.4.20服务端启用GZIP压缩mod_compress: Lighttpd Gzip Compression To Improve Download and Browsing Speed