1、下载apache
使用wget下载:
wget http://mirrors.cnnic.cn/apache//httpd/httpd-2.2.32.tar.gz
解压以及安装:
[root@localhost httpd-2.2.32]# tar zxvf httpd-2.2.32.tar.gz
[root@localhost httpd-2.2.32]# cd httpd-2.2.32
[root@localhost httpd-2.2.32]# ./configure --prefix=/usr/local/httpd
[root@localhost httpd-2.2.32]# make && make install
[root@localhost httpd-2.2.32]# service httpd status
httpd (pid 25733) is running...
[root@localhost httpd-2.2.32]# service httpd stop
Stopping httpd: [ OK ]
[root@localhost httpd-2.2.32]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[ OK ]
[root@localhost httpd-2.2.32]# service httpd stop
Stopping httpd: [ OK ]
[root@localhost httpd-2.2.32]# service httpd status
httpd is stopped
[root@localhost httpd-2.2.32]#