LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1101|回复: 1

请教apache启动时的错误提示

[复制链接]
发表于 2006-4-1 14:54:25 | 显示全部楼层 |阅读模式
请教apache启动时的错误提示:
httpd:Could not reliably determine the server's fully qualified domain name,using 127.0.0.1 for ServerName
请高手指教,谢了!
 楼主| 发表于 2006-4-1 15:42:01 | 显示全部楼层
不好意思,问题的解决办法又自己找到了,共享一下吧。
in /etc/hosts.

This all depends on you actually owning the 'bar.com' domain, and having DNS pointing to the ip address you are running apache on, which I suspect you don't...you cannot make up an arbitrary ServerName using a FQDN

If you just want to play around with apache on your local system then you should have just put "ServerName localhost" in httpd.conf (actually it's there, just commented out). All apache is telling you with that error is that it didn't find a ServerName in your conf file, so it is using the default (127.0.0.1 is the same as 'localhost'). It should still work fine, and you should be able to navigate to http://127.0.0.1/ or http://localhost/ and see the test page.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表