帮我看看我的重起apache是否正常

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
头像
relaxssl
帖子: 1448
注册时间: 2007-01-30 7:13

帮我看看我的重起apache是否正常

#1

帖子 relaxssl » 2008-05-08 3:10

linux@linux-desktop:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]
linux@linux-desktop:~$
头像
yangcheng
帖子: 498
注册时间: 2005-09-27 18:24
来自: 杭州

#2

帖子 yangcheng » 2008-05-08 4:30

正常阿
因为没有server name就用127.0.0.1作为名字
你不能访问?
头像
relaxssl
帖子: 1448
注册时间: 2007-01-30 7:13

#3

帖子 relaxssl » 2008-05-08 4:52

yangcheng 写了:正常阿
因为没有server name就用127.0.0.1作为名字
你不能访问?
谢谢你,可以正常访问,我只是想知道那个‘不能’的提示的原因。
veryhard
帖子: 7
注册时间: 2006-04-05 12:16

#4

帖子 veryhard » 2008-05-08 11:35

这个提示无所谓。忽略。

也可以在配置文件里面写上 ServerName
头像
RegentW
帖子: 1486
注册时间: 2007-02-27 21:47
来自: NN

#5

帖子 RegentW » 2008-05-08 11:48

写上server name好像也没用
不是fully qualified还是有这个提示
Core i5, 512G + SSD 20G, DDRIII 8G
njuptsoz
帖子: 164
注册时间: 2007-09-03 18:30
联系:

#6

帖子 njuptsoz » 2008-05-11 19:58

好像是在 /etc/service 里面加上名称
就可以显示服务名称了
panyue0411
帖子: 5
注册时间: 2008-05-12 10:47

#7

帖子 panyue0411 » 2008-05-12 11:02

这是一个 warning,出现在apache2启动或重起时。主要是因为在配置 apache2 时,没有指定相应的主机名,即 ServerName。修改 /etc/apache2/httpd.conf , 在最前加入 ServerName localhost:80 即可。 :D

我网上找的, 说是这个原因, 我也碰到了, 还没有彻底得解决…………

HELP!!! 我用的ubuntu 8.04
回复