第一步:解压 httpd-2.2.22.tar.gz
[root@test02 software]# tar zxvf httpd-2.2.22.tar.gz
第二步:编译
[root@test02 software]# ./configure --prefix=/usr/local/httpd2.2.22
[root@test02 software]# make
[root@test02 software]# make install
最后运行
[root@test02 software]# cd /usr/local/httpd2.2.22
[root@test02 httpd2.2.22]# ./bin/apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[root@test02 httpd2.2.22]#