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

首頁 > 網站 > Apache > 正文

Linux+php+apache+oracle環境搭建之CentOS下安裝Apache

2024-08-27 18:26:35
字體:
來源:轉載
供稿:網友

CentOS系統安裝的是Basic Server。安裝apache之前所必須的缺少的組件比較多,下面羅列下本次需要安裝的組件

apache - aprapache - apr-utilperl - pcreapache

官網下載Apache,下載地址:http://httpd.apache.org/download.cgi

下載穩定版本httpd-2.4.9.tar.gz,上傳到服務器/usr/packages目錄下。

安裝Apache:

# tar -xvzf httpd-2.4.9.tar.gz# cd httpd-2.4.9# ./configure --prefix=/usr/local/apache --enable-module=so --enable-module=rewrite

檢查編譯環境報錯:

checking for APR... noconfigure: error: APR not found . Please read the documentation.

原因缺少APR(Apache Portable Runtime),需要下載apr與apr-util。

下載地址:http://apr.apache.org/download.cgi

下載apr-1.5.1.tar.gz、apr-util-1.5.3.tar.gz

安裝apr:

# tar -xvzf apr-1.5.1.tar.gz# cd apr-1.5.1# .configure# make# make install

安裝apr-util:

# tar -xvzf apr-util-1.5.3.tar.gz# cd apr-util-1.5.3# .configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr# make# make install

再次檢查編譯環境報錯:

configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/

缺少pcre,下載地址:http://sourceforge.net/projects/pcre/

安裝pcre:

# unzip -o pcre-8.35# cd pcre-8.35# ./configure --prefix=/usr/local/pcre# make# make install

再次檢查編譯環境時加上參數:

--with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre

沒有報錯:

# make# make install

安裝完畢。

這是我第一次安裝,缺少關聯關系的組件,下次安裝直接先安裝組件,最后安裝apache,這樣會順暢些吧。

啟動Apache

# cp /usr/local/apache/bin/apachectl /sbin/# apachectl start

配置隨系統啟動時啟動Apache服務

# vi /etc/rc.d/rc.local

在最后一行加上: /sbin/apachectl start

修改Apache默認站點目錄

修改/usr/local/apache/conf/httpd.conf文件


改成


執行命令
# apachectl restart

Apache的配置文件再續~~

您可能感興趣的文章:

CentOS 6.4下安裝Oracle 11gR2詳細步驟(多圖)Linux+php+apache+oracle環境搭建之CentOS下源碼編譯安裝PHPCentOS 6.3下安裝部署Oracle服務器圖文教程CentOS6.2上安裝Oracle10g報ins_emdb.mk錯誤處理方法Linux+php+apache+oracle環境搭建之CentOS下安裝Oracle數據庫CentOS下PHP安裝Oracle擴展CentOS系統上安裝配置Oracle數據庫的詳細教程CentOS命令行下裝oracle 12c的方法(命令行模式安裝)centos 6.5 oracle開機自啟動的環境配置詳解centos 6.5下安裝oracle 11gR2與Oracle自動啟動的配置
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 金门县| 赣榆县| 霍邱县| 江口县| 麻城市| 句容市| 西平县| 东明县| 通州区| 南江县| 五峰| 房山区| 靖州| 巫溪县| 石河子市| 万荣县| 金乡县| 福海县| 安庆市| 玉树县| 体育| 阳山县| 汤阴县| 博野县| 嵩明县| 崇文区| 佛教| 吉首市| 玉树县| 西畴县| 加查县| 西城区| 汕头市| 玉林市| 陕西省| 朝阳市| 仁怀市| 婺源县| 兰州市| 屏东市| 二连浩特市|