<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                CentOS 7版本配置lamp服務器和其他版本命令有變動。centos7以上版本也可按照這個文檔安裝配置。 關閉firewall:CentOS 7.0 7.2默認使用的是firewall作為防火墻 systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall開機啟動 關閉SELINUX vi /etc/selinux/config #SELINUX=enforcing #注釋掉 #SELINUXTYPE=targeted #注釋掉 SELINUX=disabled #增加 :wq! #保存退出 setenforce 0 #使配置立即生效 一、安裝Apache yum install httpd #根據提示,輸入Y安裝即可成功安裝或者yum install httpd -y systemctl start httpd.service #啟動apache systemctl stop httpd.service #停止apache systemctl restart httpd.service #重啟apache systemctl enable httpd.service #設置apache開機啟動 二、安裝MariaDB 也就是MySQL yum install mariadb mariadb-server #詢問是否要安裝,輸入Y即可自動安裝,直到安裝完成 systemctl start mariadb.service #啟動MariaDB systemctl stop mariadb.service #停止MariaDB systemctl restart mariadb.service #重啟MariaDB systemctl enable mariadb.service #設置開機啟動 2、為root賬戶設置密碼 mysql\_secure\_installation 回車,根據提示輸入Y 輸入2次密碼,回車 根據提示一路輸入Y 最后出現:Thanks for using MySQL! MariaDB密碼設置完成,重新啟動 MariaDB: systemctl restart mariadb.service #重啟MariaDB 三、安裝PHP 1、安裝PHP yum install php #根據提示輸入Y直到安裝完成 2、安裝PHP組件,使PHP支持 MariaDB yum install php-mysql php-gd libjpeg\* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash #這里選擇以上安裝包進行安裝,根據提示輸入Y回車 systemctl restart mariadb.service #重啟MariaDB systemctl restart httpd.service #重啟apache 配置 一、Apache配置 vi /etc/httpd/conf/httpd.conf #編輯文件 ServerSignature On #添加,在錯誤頁中顯示Apache的版本,Off為不顯示 Options Indexes FollowSymLinks #修改為:Options Includes ExecCGI FollowSymLinks(允許服務器執行CGI及SSI,禁止列出目錄) AllowOverride None #修改為:AllowOverride All (允許.htaccess) MaxKeepAliveRequests 500 #添加MaxKeepAliveRequests 500 (增加同時連接數) :wq! #保存退出 systemctl restart httpd.service #重啟apache 二、php配置 vi /etc/php.ini #編輯 expose\_php = Off #禁止顯示php版本的信息 short\_open\_tag = ON #支持php短標簽 open\_basedir = .:/tmp/ #設置表示允許訪問當前目錄(即PHP腳本文件所在之目錄)和/tmp/目錄,可以防止php木馬跨站,如果改了之后安裝程序有問題(例如:織夢內容管理系統),可以注銷此行,或者直接寫上程序的目錄/data/yunwei/:/tmp/ :wq! #保存退出 systemctl restart mariadb.service #重啟MariaDB systemctl restart httpd.service #重啟apache 擴展安裝 [需要安裝ZendGuardLoader.so](http://xn--ZendGuardLoader-zn81au837cw0ct96g.so) 至此環境已經配置完成。
                  <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>

                              哎呀哎呀视频在线观看