国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網(wǎng)站 > Apache > 正文

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

2024-08-27 18:27:32
字體:
來源:轉載
供稿:網(wǎng)友

安裝說明
安裝環(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,如果沒有安裝請參考《CentOS-6.3安裝配置Cmake》。
執(zhí)行以下操作:

代碼如下:
#檢查是否安裝了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

#檢驗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í)行以下操作:

代碼如下:
#執(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ù)安裝
[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

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 施甸县| 胶南市| 石狮市| 辽宁省| 泰来县| 金堂县| 永德县| 盐边县| 泸溪县| 桂东县| 兰西县| 英德市| 文山县| 吉首市| 和平区| 绥中县| 广丰县| 芒康县| 铜川市| 天柱县| 麟游县| 云霄县| 元朗区| 宣武区| 合阳县| 锦州市| 萨迦县| 贵溪市| 徐闻县| 宝山区| 巴东县| 云霄县| 永济市| 秦安县| 濉溪县| 岫岩| 泸西县| 唐河县| 长治市| 通道| 青浦区|