Chinaunix

标题: 关于apache的问题。。 [打印本页]

作者: crisman    时间: 2008-08-23 16:22
标题: 关于apache的问题。。
我把httpd.conf里的 servername改成了我的IP 但是 执行
sudo /usr/local/apache/bin/httpd

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

我已经保存了。并且能够使用我的ip访问index.html.
作者: 萍水e相逢    时间: 2008-08-23 16:26
原帖由 crisman 于 2008-8-23 16:22 发表
我把httpd.conf里的 servername改成了我的IP 但是 执行
sudo /usr/local/apache/bin/httpd

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerN ...


是本机测试吗?

用 别 的机器试试看!

不会 网络上 ip 有冲突?
作者: crisman    时间: 2008-08-23 16:35
是本机测试。
还有我发现不能停止apache服务了。
执行 /usr/local/apache/bin/httpd  graceful-stop 和stop
都没有回显。而且刷新页面还是正常显示。服务并没停止。
作者: 萍水e相逢    时间: 2008-08-23 16:43
原帖由 crisman 于 2008-8-23 16:35 发表
是本机测试。
还有我发现不能停止apache服务了。
执行 /usr/local/apache/bin/httpd  graceful-stop 和stop
都没有回显。而且刷新页面还是正常显示。服务并没停止。



实在不行,kill 吧!
作者: vermouth    时间: 2008-08-24 00:06
这条信息不影响服务的启动,只要端口已开启就可用 http://服务器ip/index.html 访问。
作者: vermouth    时间: 2008-08-24 00:07
记得源码包应该是用 bin/apachetl start 启动吧?
作者: cuci    时间: 2008-08-24 00:21
那条信息是因为servername设置问题,启动停止最好用apachetl控制
作者: 飞哥2005    时间: 2008-08-26 22:54
停止httpd我喜欢pkill httpd




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2