LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 681|回复: 6

我无法使用apache ??? 不能启动

[复制链接]
发表于 2004-7-22 22:58:26 | 显示全部楼层 |阅读模式
我的系统是 freebsd 4.10 stable

我ports 安装了 apache13

然后我修改了 httpd.conf 里面的 servername = 127.0.0.1

#apachectl start

然后我 ps -aux |grep www  什么都没有
除了 grep www

别的计算机 也不能访问  这是怎么回事 那?
发表于 2004-7-23 09:22:16 | 显示全部楼层
127.0.0.1
问题出现这里
换成你机器的ip
例:192.168.1.2
发表于 2004-7-23 11:19:55 | 显示全部楼层

sometime ,you grep httpd ,then can give you other message.

the command
#sockstat -4
will tell you whether the apache is started  or not.
发表于 2004-7-23 14:18:51 | 显示全部楼层
apache13中ServerName不更改也没关系,或者改成与你的/etc/rc.conf中的IP地址,或你的hostname名称相同的字串,如果你的BSD网络没有配置,你可以如下:
/stand/sysinstall
选择 configure
选择 network
选择 网络接口配置
剩下的很简单了,祝你好运
 楼主| 发表于 2004-7-23 20:17:55 | 显示全部楼层
我改过了 但是不行

#/usr/local/sbin/apachectl start
/usr/local/sbin/apachectl start:httpd could not be started
#

大家能指点我下 是哪里出了问题嘛?
发表于 2004-7-24 02:02:50 | 显示全部楼层

so!

/etc/hosts
文件
202.98.26.225 dd.xxx.xx.com   dd   localhost
------------
添加自己的ip和dns映射
my hosts: x隐去了.
::1                     localhost
127.0.0.1               localhost
127.0.0.1               localhost.x.x.x     localhost
21x.x1.115.12          netbsd.x.x.x netbsd   localhost
21x.x.115.12           localhost       netbsd

------------------------
其实应该多看看日志就知道了什么原因。
-------------------------
还有就是有些模块有错。最好贴出你的httpd log
 楼主| 发表于 2004-7-24 09:17:17 | 显示全部楼层
启动起来了  thanks
你说的 日志 是都放在 var/log里面嘛?
以前我没有 这种习惯 惭愧:(
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表