准備工具
httpd_-2.4.4.tar.bz2
apr-1.4.6.tar.gz(apache的一個可移植的運行庫)
apr-util-1.5.1.tar.gz
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom/(建立光盤掛載點)
cd /mnt/cdrom/Server/
ll apr*
rpm -ivh apr-devel-1.2.7-11.e15_3.1.i386.rpm(安裝apr 開發包)
安裝apr-1.4.6運行庫
tar -zxvf apr-1.4.6.tar.gz -C/usr/local/src/
cd /usr/local/src/apr-1.4.6/
配置apr-1.4.6
ll
less README
./configure (默認安裝到/usr/local目錄下自動生成的apr目錄下)
make
make install
cd
安裝apr-util-1.5.1
tar -zxvf apr-util-1.5.1.tar.gz -C /usr/local/src/
cd /usr/local/src/apr-util-1.5.1/
ll
ls
./configure
./configure --with- apr=/usr/local/apr/bin/apr-1-config(要指定apr-config的完整路徑)
make
make install
Cd
安裝pcre 及其開發包(別問為什麼要裝這個,不裝會出問題的。。。)
ll /mnt/cdrom/Server/pcre*
rpm -ivh /mnt/cdrom/Server/pcre-6.6-2.el5_1.7.i386.rpm
rpm -ivh /mnt/cdrom/Server/pcre-devel-6.6-2.e15_1.7.i386.rpm
安裝http2.4.4
tar -jxvf httpd-2.4.4.tar.bz2 -C /usr/local/src/
cd /usr/local/src/httpd-2.4.4/
cd /usr/local/apr
vim /etc/ld.so.conf.d/apr.conf
寫入路徑/usr/local/apr/lib(讓系統調用運行庫)