********************
Apache安装
********************
http://httpd.apache.org/docs/2.4/ 官方文档
1.解压
[root@ocp u01]# tar zxf httpd-2.4.17.tar.gz
2.将包放到src下
[root@ocp u01]# mv httpd-2.4.17 /usr/local/src
3. 安装 apache 依赖关联包(共四个:apr,apr-iconv,apr-util,pcre)
(1)、安装apr
# tar zxvf apr-1.3.8.tar.gz
# cd apr-1.3.8
# ./configure --prefix=/usr/local/apr
# make
# make install
(2)、安装apr-iconv
# tar -zxvf apr-iconv-1.2.1.tar.gz
# cd apr-iconv-1.2.1
# ./configure --prefix=/usr/local/apr-iconv --with-apr=/usr/local/apr
# make
# make install
(3)、安装apr-util
# tar zxvf apr-util-1.3.9.tar.gz
# cd apr-util-1.3.9
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr --with-apr-iconv=/usr/local/apr-iconv/bin/apriconv
# make
# make install
(4)、安装pcre
下载地址:http://sourceforge.net/projects/pcre/files/
[root@ocp pcre-8.37]# tar zxf pcre-8.37.tar.gz
[root@ocp pcre-8.37]# cd pcre-8.37
[root@ocp pcre-8.37]# ./configure --prefix=/usr/local/pcre
# make
# make install
4.安装apahce
[root@ocp httpd-2.4.17]# ./configure --prefix=/usr/local/web/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
[root@ocp httpd-2.4.17]# make
[root@ocp httpd-2.4.17]# make install
5.查看是否安装成功
[root@ocp httpd-2.4.17]# /usr/local/web/apache/bin/apachectl -v
Server version: Apache/2.4.17 (Unix)
Server built: Sep 24 2015 10:16:05
出现版本信息,说明安装成功
6.启动apache
[root@ocp httpd-2.4.17]# /usr/local/web/apache/bin/apachectl start
Apache安装
********************
http://httpd.apache.org/docs/2.4/ 官方文档
1.解压
[root@ocp u01]# tar zxf httpd-2.4.17.tar.gz
2.将包放到src下
[root@ocp u01]# mv httpd-2.4.17 /usr/local/src
3. 安装 apache 依赖关联包(共四个:apr,apr-iconv,apr-util,pcre)
(1)、安装apr
# tar zxvf apr-1.3.8.tar.gz
# cd apr-1.3.8
# ./configure --prefix=/usr/local/apr
# make
# make install
(2)、安装apr-iconv
# tar -zxvf apr-iconv-1.2.1.tar.gz
# cd apr-iconv-1.2.1
# ./configure --prefix=/usr/local/apr-iconv --with-apr=/usr/local/apr
# make
# make install
(3)、安装apr-util
# tar zxvf apr-util-1.3.9.tar.gz
# cd apr-util-1.3.9
# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr --with-apr-iconv=/usr/local/apr-iconv/bin/apriconv
# make
# make install
(4)、安装pcre
下载地址:http://sourceforge.net/projects/pcre/files/
[root@ocp pcre-8.37]# tar zxf pcre-8.37.tar.gz
[root@ocp pcre-8.37]# cd pcre-8.37
[root@ocp pcre-8.37]# ./configure --prefix=/usr/local/pcre
# make
# make install
4.安装apahce
[root@ocp httpd-2.4.17]# ./configure --prefix=/usr/local/web/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
[root@ocp httpd-2.4.17]# make
[root@ocp httpd-2.4.17]# make install
5.查看是否安装成功
[root@ocp httpd-2.4.17]# /usr/local/web/apache/bin/apachectl -v
Server version: Apache/2.4.17 (Unix)
Server built: Sep 24 2015 10:16:05
出现版本信息,说明安装成功
6.启动apache
[root@ocp httpd-2.4.17]# /usr/local/web/apache/bin/apachectl start
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26937943/viewspace-1814531/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26937943/viewspace-1814531/