我的系统是MagicLinux1.2beta2,下载的apache为apache_1.3.32.tar.gz,还有php-4.3.9.tar.bz2,先编译安装了apache,然后安装了php,启动apache
[code:1]
[root@MagicLinux soft]# /usr/local/apache/bin/apachectl start
[Sat Nov 6 18:09:39 2004] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
/usr/local/apache/bin/apachectl start: httpd started
[/code:1]
进程里面也有httd,可是在浏览器里面输入127.0.0.1却老是提示连接不上主机。我在安装apache之前曾经安装过httpd-2.0.52.tar.gz,也是安装在了/usr/local/apache目录下,能够正常显示apache的默认主页,后来编译apache的时候,没有卸载httpd,还是安装在了那个目录里,不知道是不是这个的影响。而且httpd包的make里面没有uninstal这个目标,不知道怎么卸载。请大家帮我出出主意,应该怎么做,谢了先 :-)
我找了好久,原来是这个命令,呵呵,多谢,真是奇怪,提示了启动了,可是没有监听端口
[code:1]
[root@MagicLinux bin]# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:901 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
tcp 0 0 :::6000 :::* LISTEN
[/code:1]
apache的errlog:
[code:1]
root@MagicLinux logs]# cat error_log
[Sat Nov 6 18:49:49 2004] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat Nov 6 18:49:49 2004] [crit] (98)Address already in use: make_sock: could not bind to port 8080
[Sat Nov 6 20:09:10 2004] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Sat Nov 6 20:09:10 2004] [crit] (98)Address already in use: make_sock: could not bind to port 8080
[/code:1]