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

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

问题描述

我刚刚安装了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:对于ServerName使用:: 1不能可靠地确定服务器的标准域名

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.

如何解决此问题?

推荐答案

是的,您应该设置ServerName:

Yes, you should set ServerName:

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

http://httpd.apache.org/docs/current/mod/core.html #servername

您可以在此处找到有关各种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天全站免登陆