zhengpl 发表于 2003-6-10 10:48:18

请教大侠,为何httpd起动不了?

我把apache和php安装完后,可以看到apache的 测试页面. 看不到我创建的别的页面.
我用命令 #/usr/local/apache/bin/apachectl restart
时,显示httpd not runing ,
然后#/usr/local/apache/bin/apachectl stop
显示 httpd(no pid file) not running
在httpd.conf 中有一个命令

PidFile /usr/local/apache/logs/httpd.pid

但我没有发现此文件,只有
access_log 和 error_log


:?:

樱家冢 发表于 2003-6-10 12:49:28

Re: 请教大侠,为何httpd起动不了?

我把apache和php安装完后,可以看到apache的 测试页面. 看不到我创建的别的页面.
我用命令 #/usr/local/apache/bin/apachectl restart
时,显示httpd not runing ,
然后#/usr/local/apache/bin/apachectl stop
显示 httpd(no pid file) not running
在httpd.conf 中有一个命令

PidFile /usr/local/apache/logs/httpd.pid

但我没有发现此文件,只有
access_log 和 error_log


:?:
既然有error_log就贴出来啊。

mozilla 发表于 2003-6-10 13:19:38

/etc/init.d/httpd restart

zhengpl 发表于 2003-6-10 19:13:36

error_log 的内容

(98)Address already in use: make_sock: could not bind to port 80
我用/etc/init.d/httpd restart 后,显示httpd 停止和运行都正常.

用chkconfig --list httpd 监查发现6级都启用.

但后来什么也没该,又可流览了,不只是何原因?此时error_log地 内容为
Apache/1.3.27 (Unix) configured -- resuming
normal operations
Accept mutex: sysvsem (Default: sysvsem)
页: [1]
查看完整版本: 请教大侠,为何httpd起动不了?