找回密码
 注册
搜索
热搜: java php web
查看: 593|回复: 3

[系统管理] Could not determine the server's fully qualified domain name

[复制链接]
发表于 2009-6-10 10:05:47 | 显示全部楼层 |阅读模式
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
发表于 2009-8-17 13:45:31 | 显示全部楼层
学习了,谢谢
回复

使用道具 举报

发表于 2009-8-26 00:08:41 | 显示全部楼层
回复

使用道具 举报

发表于 2009-9-7 15:13:11 | 显示全部楼层
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|软晨网(RuanChen.com)

GMT+8, 2024-11-26 02:44

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

快速回复 返回顶部 返回列表