- 论坛徽章:
- 0
|
开始用的是原码安装,装完后,在rc.d目录下没看到apache2.sh文件,只有用apachectl -k start启动,没有任何错误提示,但是进程里没有httpd进程。用apachectl -k stop提示httpd (no pid file) not running。转到/var/run/没有看到httpd.pid文件。
没办法,改用ports方法安装,安装完成后在rc.d目录,apache2.sh start启动,也是没有任何提示,但进程依然没有httpd进程,找到apachectl文件,apachectl -t 显示ok,apachectl -k start,没有错误提示,用apachectl -k stop提示httpd (no pid file) not running,/var/run/下依然没有httpd.pid文件。郁闷死了,我怎样才能启动我的apache服务器呢!不要说是版本的问题,用同样的版本,前两天成功过,因为换了机器,重新装了系统。
另外,我每次运行apachectl -k start的时候,httpd-error.log里就会加一条
[Tue Jun 22 11:59:03 2004] [alert] (EAI hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "www.swandy.cn"
Configuration Failed
我的主机名是:www.swandy.cn,我在httpd.conf文件里也改成:
ServerName www.swandy.cn:80了啊,为什么还有错误提示呢? |
|