无法可靠地确定服务器的完全限定域名 [英] Could not reliably determine the server's fully qualified domain name

查看:34
本文介绍了无法可靠地确定服务器的完全限定域名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 Apache 2.2.17,我是第一次使用它.

I have just installed Apache 2.2.17, and I am using it first time.

现在,当我尝试使用命令 service httpd start 启动服务器时,它给了我消息:

Now when I try to start the server using the command service httpd start it gives me the message:

httpd:无法可靠地确定服务器的完全限定域名,使用 ::1 作为 ServerName

httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName

现在我想我必须在通过 Google 搜索时设置 ServerName 和 IP 地址.但是我不知道我必须在哪个文件中设置.

Now I think I have to set ServerName and the IP address as I search through Google. But I don't know in which file I have to set.

我该如何解决这个问题?

How can I fix this problem?

推荐答案

是的,你应该设置 ServerName:

Yes, you should set ServerName:

http://wiki.apache.org/httpd/CouldNotDetermineServerName

http://httpd.apache.org/docs/current/mod/core.html#服务器名称

您可以在此处找到有关各种 httpd 发行版使用的布局的信息:

You can find information on the layouts used by the various httpd distributions here:

http://wiki.apache.org/httpd/DistrosDefaultLayout

在您的情况下,要编辑的文件是/etc/httpd/conf/httpd.conf

In your case the file to edit is /etc/httpd/conf/httpd.conf

这篇关于无法可靠地确定服务器的完全限定域名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆