看板FreeBSD
标 题Re: [问题] 关於apache的设定
发信站大家来疯小栈 (Wed Jul 27 05:55:27 2005)
转信站ptt!ctu-reader!ctu-peer!Spring!news.nctu!news.ntu!news.au!a6Crazy
※ 引述《[email protected] (小豆)》之铭言:
> 今天刚灌了5.4
> 也灌了apache
> 设定的步骤都跟之前的版本设定的一样
> 但是一直出现
> httpd: Could not determine the server's fully qualified domain name,
> using 127.0.0.1 for ServerName apachectl start: httpd could not be started
> 请问一下是因为版本不同设定不一样
> 还是哪里有问题
> 看了前面一样的问题
> 也做了同样的设定
> 还是不行
> 麻烦帮忙解答
请看 /usr/local/etc/apache/httpd.conf ServerName 的部份
#
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g.,
http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
另外讯息应该够明险了吧?
httpd: Could not determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName apachectl start: httpd could not be started
[乱乱中译]
httpd:不可以判定 Server 的 FQDN( server's fully qualified domain name ),
请为 ServervName (注1) 使用 127.0.0.1
apachectl start:httpd 不能被启动
注1:httpd.conf 内有个 ServerName 的设定区块
--
╭┼ Or
igin:
a6's˙大家来疯小栈 BBS.a6Crazy.twbbs.org
┼┘ A
uthor:
a6530466 从 localhost.a6crazy.twbbs.org 发表