首先安装wget组件,可从网络下载源码包
[root@localhost ~]# yum install -y wget
wget下载源码包
[root@localhost ~]# wget http://apache.fayea.com/httpd/httpd-2.2.31.tar.bz2
或
[root@localhost ~]# wget "http://apache.fayea.com/httpd/httpd-2.2.31.tar.bz2"
解压源码包,不同的格式使用不同的解压参数
[root@localhost src]# tar -jxvf httpd-2.2.31.tar.bz2
进入解压目录
[root@localhost src]# cd httpd-2.2.31
一般情况下安装指引会写到以下这2个文件内INSTALL和README
configure可以加入编译选项
[root@localhost httpd-2.2.31]# ./configure
[root@localhost httpd-2.2.31]# make && make install