1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      CentOS下安裝Apache并配置的方法

      這篇文章主要介紹了CentOS下安裝Apache并配置的方法的相關(guān)知識,內(nèi)容詳細(xì)易懂,操作簡單快捷,具有一定借鑒價值,相信大家閱讀完這篇CentOS下安裝Apache并配置的方法文章都會有所收獲,下面我們一起來看看吧。

      專注于為中小企業(yè)提供成都做網(wǎng)站、成都網(wǎng)站設(shè)計服務(wù),電腦端+手機端+微信端的三站合一,更高效的管理,為中小企業(yè)臨汾免費做網(wǎng)站提供優(yōu)質(zhì)的服務(wù)。我們立足成都,凝聚了一批互聯(lián)網(wǎng)行業(yè)人才,有力地推動了上1000+企業(yè)的穩(wěn)健成長,幫助中小企業(yè)通過網(wǎng)站建設(shè)實現(xiàn)規(guī)模擴充和轉(zhuǎn)變。

      centos系統(tǒng)安裝的是basic server。安裝apache之前所必須的缺少的組件比較多,下面羅列下本次需要安裝的組件

      apache - aprapache - apr-utilperl - pcreapache

      官網(wǎng)下載apache

      下載穩(wěn)定版本httpd-2.4.9.tar.gz,上傳到服務(wù)器/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

      檢查編譯環(huán)境報錯:

      checking for apr... no
      configure: 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

      再次檢查編譯環(huán)境報錯:

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

      缺少pcre

      安裝pcre:

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

      再次檢查編譯環(huán)境時加上參數(shù):

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

      沒有報錯:

      # make
      # make install

      安裝完畢。

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

      啟動apache

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

      配置隨系統(tǒng)啟動時啟動apache服務(wù)

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

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

      修改apache默認(rèn)站點目錄

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

      CentOS下安裝Apache并配置的方法

      改成

      CentOS下安裝Apache并配置的方法

      執(zhí)行命令
      # apachectl restart

      關(guān)于“CentOS下安裝Apache并配置的方法”這篇文章的內(nèi)容就介紹到這里,感謝各位的閱讀!相信大家對“CentOS下安裝Apache并配置的方法”知識都有一定的了解,大家如果還想學(xué)習(xí)更多知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道。


      分享題目:CentOS下安裝Apache并配置的方法
      網(wǎng)站網(wǎng)址:http://www.ef60e0e.cn/article/gseges.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        浦县| 井陉县| 怀远县| 辽阳县| 泰来县| 宝坻区| 苍山县| 罗平县| 绥阳县| 盐边县| 稷山县| 沾益县| 泰宁县| SHOW| 通山县| 故城县| 龙里县| 万州区| 白银市| 彭阳县| 大余县| 铜陵市| 盖州市| 志丹县| 南城县| 礼泉县| 扎赉特旗| 沁源县| 浦北县| 民县| 平山县| 平顶山市| 安阳县| 米林县| 奈曼旗| 孟津县| 安泽县| 体育| 阜宁县| 柏乡县| 霍州市|