免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: dingcic
打印 上一主题 下一主题

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

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

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

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
12 [报告]
发表于 2007-04-11 14:11 |只看该作者
难到 6.2 里 apache 的配置文件 由 httpd.conf 改成 http.conf 了?

论坛徽章:
0
13 [报告]
发表于 2007-04-11 15:15 |只看该作者
原帖由 大大狗 于 2007-4-11 14:11 发表
难到 6.2 里 apache 的配置文件 由 httpd.conf 改成 http.conf 了?


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

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
14 [报告]
发表于 2007-04-11 15:33 |只看该作者
原帖由 dingcic 于 2007-4-11 15:15 发表


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

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

论坛徽章:
0
15 [报告]
发表于 2007-04-11 15:42 |只看该作者
原帖由 大大狗 于 2007-4-11 15:33 发表

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


# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName 127.0.0.1

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/usr/local/www/apache22/data"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
/usr/local/etc/apache22/httpd.conf: 467 lines, 16738 characters.
power# apachectl start
power# apachectl stop
httpd (no pid file) not running
power#

还是老样子

论坛徽章:
0
16 [报告]
发表于 2007-04-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:80
no listening sockets available, shutting down
Unable to open logs
power#

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
17 [报告]
发表于 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 在试

论坛徽章:
0
18 [报告]
发表于 2007-04-11 23:52 |只看该作者
原帖由 大大狗 于 2007-4-11 20:01 发表

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

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

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


我的另一台机器的log权限和这个一样的,apache运行正常.

论坛徽章:
0
19 [报告]
发表于 2007-04-12 07:31 |只看该作者
  1. echo 127.0.0.1 localhost `hostname` >/etc/hosts
复制代码

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
20 [报告]
发表于 2007-04-12 10:22 |只看该作者
我的 hosts 是这样的

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

hosts.GIF
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP