在centos6.2上安装好apache启动时的问题

赵Andy 2012-03-01 02:34:40
我启动服务器service httpd restart
会提示这个错误httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
这是怎么回事?
...全文
211 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵Andy 2012-03-05
  • 打赏
  • 举报
回复
大家帮帮忙好吗?
赵Andy 2012-03-04
  • 打赏
  • 举报
回复
我在浏览器里输入我的IP可以看到apache 2 test page什么的,但是我再在后面加上index.html,就找不到了。不知道为什么我查看了我的"htdocs"目录下有"index.html"。
赵Andy 2012-03-04
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 liv2005 的回复:]

命令行可以 curl "http://127.0.0.1/index.html"

会提示It Works,就ok了...

如果不行,检查apache的access_log 和 error_log
[/Quote]
我用这个的话会这样输出

<address>Apache/2.2.15 (CentOS) Server at 127.0.0.1 Port 80</address>
</body></html>

这是什么意思?
Liv2005 2012-03-01
  • 打赏
  • 举报
回复
命令行可以 curl "http://127.0.0.1/index.html"

会提示It Works,就ok了...

如果不行,检查apache的access_log 和 error_log




赵Andy 2012-03-01
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 wode_dream 的回复:]

引用 3 楼 lgxwqq111 的回复:

警告信息,不用太在意的。可以手动配置成ServerName xxx

直接http://localhost/index.html试试

建议多查看apache的文档

用localhost/index.html或用IP:prot也访问不到,httpd.conf里面要怎么配置?
我里面是

Listen 127.0.0.1:80
……
[/Quote]
把listen 也改为192.168.50.129:80 ;但怎么访问index.html
赵Andy 2012-03-01
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 lgxwqq111 的回复:]

警告信息,不用太在意的。可以手动配置成ServerName xxx

直接http://localhost/index.html试试

建议多查看apache的文档
[/Quote]
用localhost/index.html或用IP:prot也访问不到,httpd.conf里面要怎么配置?
我里面是

Listen 127.0.0.1:80
Listen 80

ServerName 192.168.50.129:80
freetstar 2012-03-01
  • 打赏
  • 举报
回复
警告信息,不用太在意的。可以手动配置成ServerName xxx

直接http://localhost/index.html试试

建议多查看apache的文档
赵Andy 2012-03-01
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 justkk 的回复:]

好像是个警告,进程是不是已经成功启动了?
[/Quote]
那怎么访问htdocs下的index.html页面?服务器的IP怎么查看和配置?
justkk 2012-03-01
  • 打赏
  • 举报
回复
好像是个警告,进程是不是已经成功启动了?

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧