准备工具
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(让系统调用运行库)