免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1979 | 回复: 2
打印 上一主题 下一主题

[Web] freebsd apache安装问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-05 21:22 |只看该作者 |倒序浏览
在自己的本本上(freebsd)测试apache,
用package安装,
[~]$apachectl -v
Server version: Apache/2.2.9 (FreeBSD)
Server built:   Sep  8 2008 13:27:11
对配置没有进行更改。
[~]$sudo apachectl start
httpd: apr_sockaddr_info_get() failed for
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Wed Aug 05 07:45:45 2009] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
在firefox中输入http://127.0.0.1/
Failed to Connect
Firefox can't establish a connection to the server at 127.0.0.1.

这是为什么?

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
2 [报告]
发表于 2009-08-10 17:36 |只看该作者
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[Wed Aug 05 07:45:45 2009] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter



ServerName---看你的配置文件中这个参数是怎么设置的?设置成FQDN的形式最好
httpready----这个问题没有遇到过,看你的配置文件中有没?

论坛徽章:
0
3 [报告]
发表于 2009-08-10 17:56 |只看该作者
原帖由 ruochen 于 2009-8-10 17:36 发表
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

[Wed Aug 05 07:45:45 2009] [warn] (2)No such file or directory: Failed to enable th ...


servername那个错误,在/etc/hosts中加入你的hostname 得到的值
  1. 127.0.0.1   hostname
复制代码


下面那个.freebsd上面/boot/default/loader.conf

  1. accf_http_load="YES"
复制代码


即可解决上述两个问题。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP