最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

CentOS 6.3 安裝配置Apache2.2.6的方法(源碼編譯安裝)

 更新時(shí)間:2014年11月27日 15:02:35   投稿:mdxy-dxy  
這篇文章主要介紹了CentOS 6.3 安裝配置Apache2.2.6的方法,需要的朋友可以參考下

安裝說(shuō)明
安裝環(huán)境:CentOS-6.3
安裝方式:源碼編譯安裝
軟件:httpd-2.2.6.tar.gz | pcre-8.32.tar.gz | apr-1.4.6.tar.gz | apr-util-1.5.1.tar.gz
下載地址:http://mirror.bjtu.edu.cn/apache/httpd/
http://apr.apache.org/download.cgi
http://jaist.dl.sourceforge.net/project/pcre/pcre
安裝位置:/urs/local/apache

安裝前提
系統(tǒng)已安裝了gcc和cmake,如果沒(méi)有安裝請(qǐng)參考《CentOS-6.3安裝配置Cmake》。
執(zhí)行以下操作:

復(fù)制代碼 代碼如下:

#檢查是否安裝了apache
[root@localhost /]# rpm -qa | grep httpd
httpd-2.2.15-15.el6.centos.1.x86_64
httpd-tools-2.2.15-15.el6.centos.1.x86_64
#卸載系統(tǒng)自帶的apache
[root@localhost /]# rpm -e --nodeps httpd-2.2.15-15.el6.centos.1.x86_64
[root@localhost /]# rpm -e --nodeps httpd-tools-2.2.15-15.el6.centos.1.x86_64
#使用yum卸載
[root@localhost apache]# yum remove apache

#檢驗(yàn)apr版本,卸載安裝新版本
[root@localhost apache]# rpm -qa | grep apr
apr-1.3.9-5.el6_2.x86_64
apr-util-1.3.9-3.el6_0.1.x86_64
apr-util-ldap-1.3.9-3.el6_0.1.x86_64
#卸載apr
[root@localhost apache]# yum remove apr
yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs
#安裝pcre
[root@localhost local]#  tar -zxv -f pcre-8.32.tar.gz
[root@localhost local]#  cd pcre-8.32
[root@localhost apr-1.4.6]# ./configure
[root@localhost apr-1.4.6]# make
[root@localhost apr-1.4.6]# make install

#安裝新版本apr
[root@localhost local]#  tar -zxv -f apr-1.4.6.tar.gz
[root@localhost local]#  cd apr-1.4.6
[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

#安裝apr-util
[root@localhost local]#  tar -zxv -f apr-util-1.5.1.tar.gz
[root@localhost local]# cd apr-util-1.5.1
[root@localhost apr-util-1.5.1]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
[root@localhost apr-util-1.5.1]# make
[root@localhost apr-util-1.5.1]# make install

安裝apache
將httpd-2.4.3.tar.gz上傳到/usr/local中,執(zhí)行以下操作:

復(fù)制代碼 代碼如下:

#執(zhí)行安裝
[root@localhost local]# cd /usr/local
[root@localhost local]# tar -zxv -f httpd-2.4.3.tar.gz           #解壓壓縮包
[root@localhost local]# rm -rf httpd-2.4.3.tar.gz            #刪除壓縮包
[root@localhost local]# mv httpd-2.4.3 apache
[root@localhost local]# cd apache
#設(shè)置參數(shù)安裝
[root@localhost php5.4]# ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/
[root@localhost php5.4]# make
[root@localhost php5.4]# make install

驗(yàn)證安裝
啟動(dòng)apache服務(wù)器:

[root@localhost /]# /usr/local/apache/bin/apachectl start 

使用瀏覽器訪問(wèn):http://192.168.15.239/ 出現(xiàn)以下信息:

恭喜,安裝成功?。?/p>

相關(guān)文章

最新評(píng)論

蒙山县| 容城县| 枣阳市| 大田县| 三江| 辉县市| 化州市| 连南| 翁牛特旗| 石首市| 汶川县| 布尔津县| 道真| 邻水| 灌阳县| 上蔡县| 长垣县| 鄱阳县| 万全县| 渭南市| 溆浦县| 襄垣县| 大姚县| 芜湖县| 宝坻区| 罗江县| 河东区| 遂宁市| 应用必备| 马关县| 固镇县| 田东县| 绥中县| 深圳市| 宕昌县| 龙南县| 惠水县| 长岭县| 翁源县| 米易县| 盐池县|