免费注册 查看新帖 |

Chinaunix

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

[FreeBSD] httpd (no pid file) not running[结贴] [复制链接]

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
1 [报告]
发表于 2007-04-11 12:36 |显示全部楼层
这个还是要配置一个你的 httpd.conf 里面servername

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2007-04-11 13:07 |显示全部楼层
原帖由 dingcic 于 2007-4-11 12:43 发表
这是http.conf:
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName 127.0.0.1:80

这是hosts:
#
#
::1                     localhost localhost.power.loca ...

httpd.conf

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2007-04-11 13:17 |显示全部楼层
servername  127.0.0.1                  这样试试

你的是什么系统  APACHE 是ports 安的还是其它

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
4 [报告]
发表于 2007-04-11 14:04 |显示全部楼层
原帖由 dingcic 于 2007-4-11 14:03 发表
将ServerName改为servername还是不行.

我的意思不是改大小写  是改成 127.0.0.1  试一下

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
5 [报告]
发表于 2007-04-11 14:11 |显示全部楼层
难到 6.2 里 apache 的配置文件 由 httpd.conf 改成 http.conf 了?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
6 [报告]
发表于 2007-04-11 15:33 |显示全部楼层
原帖由 dingcic 于 2007-4-11 15:15 发表


我写错了;还有我改成127.0.0.1也不行

改成127.0.0.1以后 现在是不能启动 还是不能访问

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
7 [报告]
发表于 2007-04-11 20:01 |显示全部楼层
原帖由 dingcic 于 2007-4-11 17:18 发表
这是刚才执行的结果,连续2次apachectl start才出现:
power# pkill httpd
power# apachectl start
power# apachectl start
(4Address already in use: make_sock: could not bind to address 192.168.3.90:8 ...

连两次start 当然会出现端口被占用的提示了

你看一下你的日志文件是不是没有可写的权限

把你的ServerName 那里改成  ServerName 192.168.3.90:80 在试

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
8 [报告]
发表于 2007-04-12 10:22 |显示全部楼层
我的 hosts 是这样的

hosts.GIF (2.23 KB, 下载次数: 54)

hosts.GIF

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
9 [报告]
发表于 2007-04-12 23:30 |显示全部楼层
原帖由 dingcic 于 2007-4-12 14:43 发表


我按你的方式:
::1                     localhost localhost.power.local
127.0.0.1           localhost localhost.power.local

::1                     power.local power
127.0.0.1           power ...


红色部分改成 127.0.0.1 localhost.power.local localhost
                   ::1            localhost.power.local localhost

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
10 [报告]
发表于 2007-04-12 23:44 |显示全部楼层
实在不行就 make reinstall
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP