|
Apache的启动经常看到这样一个警告[root@eygle conf]# apachectl start
httpd: Could not determine the server's fully qualified domainname, using 172.16.11.99 for ServerName
刚刚查了一下,找到了解决方法.
Your box's config does not allow Apache to find your server'sFQDN (Fully Qualified Domain Name).
原因是Apache无法找到服务器的FQDN(Fully Qualified Domain Name).
最简单的,修改httpd.conf文件,增加:
ServerName <server_name_or_ip_addr>
我的改为:
ServerName 192.168.203.132:8080
[root@vmserver conf]# ../bin/apachectl stop
../bin/apachectl stop: httpd (no pid file) not running
[root@vmserver conf]# ../bin/apachectl start
[Tue Oct 2 22:18:57 2007] [alert] httpd: Could not determinethe server's fully qualified domain name, using 127.0.0.1 forServerName
../bin/apachectl start: httpd started
[root@vmserver conf]# netstat -nltp |grep httpd
tcp 0 00.0.0.0:8080 0.0.0.0:* LISTEN 5996/httpd
[root@vmserver conf]# pwd
/usr/local/apache/conf
[root@vmserver conf]# grep-v "#" httpd.conf |grepServer
ServerType standalone
ServerRoot "/usr/local/apache"
MinSpareServers 5
MaxSpareServers 10
StartServers 5
ServerAdmin [email protected]
ServerName 192.168.203.132:8080
ServerSignature On
[root@vmserver conf]# ../bin/apachectl restart
../bin/apachectl restart: httpd restarted
[root@vmserver conf]# ../bin/apachectl stop
../bin/apachectl stop: httpd stopped
[root@vmserver conf]# ../bin/apachectl start
../bin/apachectl start: httpd started |
|