httpd 安裝詳解(待更新)

來源:互聯網
上載者:User

標籤:httpd 安裝詳解


httpd 安裝詳解


安裝httpd:

 rpm包:CentOS發行版中直接提供

 編譯安裝:定製新功能,或其它原因

安裝方式:

yum install httpd


CentOS 6:httpd-2.2

 程式環境:

  設定檔:

   /etc/httpd/conf/httpd.conf/httpd

   /etc/httpd/conf.d/*.conf

  服務指令碼:

   /etc/rc.d/init.d/httpd

   指令碼設定檔:/etc/sysconfig/httpd

  主程式檔案:

   /usr/sbin/httpd

   /usr/sbin/httpd.event

   /usr/sbin/http.worker

  記錄檔:

   /var/log/httpd

    access_log:訪問日誌

    error_log:錯誤記錄檔

  網站文檔:

   /var/www/html

  模組檔案路徑:

   /usr/lib64/httpd/modules

  註:查看httpd的安裝檔案及路徑的方式:

   rpm -ql httpd |less

  服務控制和啟動:

   chkconfig httpd on|off

   service {start|stop|restart|status|configtest|reload} httpd


CentOS 7:

 程式環境:

  設定檔:

   /etc/httpd/conf/httpd.conf

   /etc/httpd/conf.d/*.conf

   模組相關的設定檔:/etc/httpd/conf.modules.d/*.conf

  systemd unit file:

   /usr/lib/systemd/system/httpd.service

  主程式檔案:

   /usr/sbin/httpd

    httpd-2.4支援MPM的動態切換

  記錄檔:

   /var/log/httpd

    access_log:訪問日誌

    error_log:錯誤記錄檔

  網站文檔:

   /var/www/html 

  模組檔案路徑:

   /usr/lib64/httpd/modules

  服務控制:

   systemctl enable|disable httpd.service

   systemctl {start|stop|restart|status} httpd.service

httpd-2.2的常用配置:


   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   

   


httpd 安裝詳解(待更新)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.