x64架構下,使用apache

來源:互聯網
上載者:User
  1. 訪問 Blackdot.be
    :: Apache 64-bit Binaries,點擊下方的連結 httpd-2.2.13-win64.rar,下載 Apache
    64-bit 的壓縮包。
  2. https://blackdot.be/download-archive/
  3. 將壓縮包解壓到本地硬碟。例如我存放在 D:/dev/httpd-2.2-x64
  4. 以管理員身份運行 DOS Command (Run as administrator),進入 D:/Web/Tool/httpd-2.2-x64。
  5. 執行 httpd -k install:D:/dev/httpd-2.2-x64/bin/httpd
    -k install
    Installing the Apache2.2 service
    The Apache2.2 service is successfully installed.
    Testing httpd.conf....
    Errors reported here must be corrected before the service can be started.
    httpd: Syntax error on line 35 of
    D:/dev/httpd-2.2-x64/conf/httpd.conf:
    ServerRoot must be a valid directory在執行 httpd -k install 的時候,顯示 The Apache2.2 service is successfully installed 表明已經安裝成功。接下來的 Testing httpd.conf 有可能會出錯,例如我安裝時報了 ServerRoot must be a valid directory,不用理會。回頭自己手工編輯 httpd.conf, 將 ServerRoot 指向正確的目錄即可。
  6. 修改 httpd.conf 完成之後,執行 httpd -k start:D:/dev/httpd-2.2-x64/bin/httpd
    -k start如果沒有提示錯誤,則表明啟動成功。

    當然你也可以執行完第2步之後,先將 httpd.conf 檔案改好,再執行 httpd -k install 和 httpd -k start

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.