2016年3月21日 星期一

160223 - 在 CentOS7/RHEL7 上設定 Web Server

教得很清楚但有些指令還是不懂!!



基本設定流程: 
  1. 安裝 Web Server 套件: 
    #yum -y install httpd
  2. 設定啟動 Web Server 服務: 
    #systemctl enable httpd.service
    #systemctl start httpd.service
    #systemctl status httpd.service
  3. 設定開通防火牆: 
    #firewall-cmd --permanent --add-service=http
    #firewall-cmd --reload
Apache 相關設定檔案:
  1. 主要設定檔:/etc/httpd/conf/httpd.conf 
  2. 設定檔目錄:/etc/httpd/conf.d/ 
  3. 網頁放置目錄:/var/www/html 

沒有留言:

張貼留言