LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 687|回复: 7

启动httpd出错!为什么?

[复制链接]
发表于 2003-7-15 21:37:17 | 显示全部楼层 |阅读模式
[root@test root]# service httpd restart
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
发表于 2003-7-15 21:48:35 | 显示全部楼层
好想是ip地址有关的
在network里把ip和主机明填上试一试
 楼主| 发表于 2003-7-15 21:55:21 | 显示全部楼层
楼上的建议试过了。不行
原来是可以的,但我做mrtg后就不行了。现在mrtg没成功,http也down了。巨郁闷!
 楼主| 发表于 2003-7-15 22:00:14 | 显示全部楼层
刚才又ps -aux看了一下,发现如下不正常的进程:
apache    1260  0.0  7.0 18368 8896 ?        S    21:55   0:00 /usr/sbin/httpd -k start
apache    1261  0.0  7.0 18368 8896 ?        S    21:55   0:00 /usr/sbin/httpd -k start
apache    1262  0.0  7.0 18368 8896 ?        S    21:55   0:00 /usr/sbin/httpd -k start
apache    1263  0.0  7.0 18368 8896 ?        S    21:55   0:00 /usr/sbin/httpd -k start
apache    1264  0.0  7.0 18368 8896 ?        S    21:55   0:00 /usr/sbin/httpd -k start
apache    1265  0.0  7.0 18368 8896 ?        S    21:55   0:00 /usr/sbin/httpd -k start
apache    1266  0.0  7.0 18368 8896 ?        S    21:55   0:00 /usr/sbin/httpd -k start
apache    1267  0.0  7.0 18368 8896 ?        S    21:55   0:00 /usr/sbin/httpd -k start
发表于 2003-7-15 22:04:57 | 显示全部楼层
httpd.conf中ServerName修改为你配置的机器名,
 楼主| 发表于 2003-7-15 22:19:28 | 显示全部楼层
mapple说得不错。谢了!
发表于 2003-7-16 13:47:26 | 显示全部楼层

我碰到过,解决了,你试试把httpd.conf里面的ServerName后面加自己的ip地址

ex:
ServerName 192.168.17.30
发表于 2003-7-16 13:50:08 | 显示全部楼层

然后在etc/hosts里面加入自己的ip和名称

ex:
192.168.17.30 linux
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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