2016年3月21日 星期一

在CentOS7/RHEL7上安裝MariaDB設定Web Server

快速設定流程:
安裝 MySQL/MariaDB 套件:#yum -y install mariadb mariadb-server mariadb-bench
啟動 MySQL Server :#systemctl start mariadb.service
               #systemctl enable mariadb.service
查詢預設 root 密碼:#systemctl status mariadb -l
              #vim 
基本設定流程:
安裝 Web Server 套件:#yum -y install httpd
設定啟動 Web Server 服務:#systemctl enable httpd.service
                                          #systemctl start httpd.service
                                          #systemctl status httpd.service
設定開通防火牆:#firewall-cmd --permanent --add-service=http
            #firewall-cmd --reload
Apache 相關設定檔案:
主要設定檔:/etc/httpd/conf/httpd.conf
設定檔目錄:/etc/httpd/conf.d/
網頁放置目錄:/var/www/html

沒有留言:

張貼留言