Could not reliably determine the server's fully qualified domain name

来源:互联网 发布:sftp 默认端口 编辑:程序博客网 时间:2024/06/05 07:51

每次在命令行重启apache 的时候总是提示

httpd: Could not reliably determine the server's fully qualified domain name, us
ing xxxxxxxxxx for ServerName

虽然对服务没有什么影响,但是看清来就不不怎么爽。

在baidu搜索了一下,才知道原来是因为早apache的配置文件中没有设置ServerName.

去掉这个提示信息的方法很简单,

找到apache的配置文件httpd.conf,搜索#ServerName www.domain.com:80 将该行签名的"#"去掉。重启apache 那个烦人的提示信息就会消失掉。

假设apache安装路径为APACHE_ROOT,则httpd.conf文件的所在路径可表示为:APACHE_ROOT/conf/httpd.conf

参考:http://apps.hi.baidu.com/share/detail/25225597

0 0
原创粉丝点击