1. 下载apache源码包
下载地址:http://www.apache.org/dist/httpd/
2. 下载apr-1.4.6 和apr-util-1.4.1 具体原因可查看2.4以上版本的发布报告
下载地址:http://apr.apache.org/download.cgi 3. 下载pcre-8.31
下载地址:http://sourceforge.net/projects/pcre/ 安装步骤:
自己的操作方法:
1. 将所有的文件拷贝到/home/wucq 2. 解压httpd-2.4.3.tar
解压命令:tar zxvf httpd-2.4.3.tar.gz mv httpd-2.4.3 apache 3.
解压:[root@localhost apache]# tar zxvf apr-1.4.6.tar.gz 配置环境:
[root@localhost apr-1.4.6]# ./configure --prefix=/usr/local/apr/ 编译和安装:
[root@localhost apr-1.4.6]#make [root@localhost apr-1.4.6]#make install 4.
解压: [root@localhost apache]# tar zxvf apr-util-1.4.1.tar.gz 配置环境:
[root@localhost apr-1.4.6]# ./configure
--prefix=/usr/local/apr-util-httpd/ --with-apr=/usr/local/apr/
编译和安装:
[root@localhost apr-1.4.6]#make [root@localhost apr-1.4.6]#make install
5.
接着在apache下配置环境: ./configure --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util-httpd/ 然后 编译:make
安装:make install
此时运行httpd(service httpd start),在浏览器上输入127:0:0:1,就能看到下面的了 This page is used to test the proper operation of the Apache HTTP server after it has been installed. If you can read this page, it means that the Apache HTTP server installed at this site is working properly.
因篇幅问题不能全部显示,请点此查看更多更全内容