<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                >[success] ### 第八難 yum安裝Apache PHP MySQL * 要在CentOS 7 上安裝新軟件, 我們可以使用yum; yum 是 CentOS 套件管理軟件, 可以幫我們安裝及更新不同的套件, 如Apache, PHP, MariaDB (MySQL) 等(MariaDB 其實就是MySQL 的開源版本!) * 安裝新套件 ~~~txt yum install package-name ~~~ * 更新套件 ~~~txt yum update package-name ~~~ * 移除套件 ~~~txt yum remove package-name ~~~ >[info] ### 安裝Apache ~~~txt yum install -y httpd ~~~ >[info] ### 安裝PHP和想要組件 ~~~txt yum install -y php php-common php-gd php-xml php-mbstring php-mysqlnd php-mcrypt ~~~ >[info] ### 安裝MariaDB ~~~txt yum install -y mariadb-server mariadb ~~~ >[warning] ### 其它配置項 * 可以在 /etc/httpd/conf 和 /etc/httpd/conf.d 頁面找到apache配置 * 初始的項目路徑 : /var/www/html * 啟動服務 systemctl start [service-name] ~~~txt systemctl start mariadb.service systemctl start httpd.service ~~~ * 停止服務 systemctl stop [service-name] * 設置自啟 systemctl enable [service-name] * 查看服務狀態 systemctl status [service-name] ~~~txt firewall-cmd --permanent --add-service=http firewall-cmd --permanent --add-port=80/tcp firewall-cmd –reload ~~~ >[danger] ### 測試 ![](https://box.kancloud.cn/0b35cbec1c26c7ed60916b92fa825724_1043x822.png) ~~~txt [root@localhost /]# vim /var/www/html/index.php <?php echo phpinfo(); ?> ~~~ ![](https://box.kancloud.cn/6e36e93f2fa5eca2139ec1601c15f1b4_659x550.png) ~~~txt [root@localhost /]# mysql_secure_installation ~~~ ![](https://box.kancloud.cn/31d3e5b39131c1d1348377aa52afc9cf_815x236.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看