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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                CentOS 7.0(64位)安裝配置LAMP服務器(Apache+PHP+MariaDB) 一、配置防火墻,開啟80端口、3306端口 CentOS 7.0默認使用的是firewall作為防火墻,這里改為iptables防火墻。 1、關閉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安裝即可成功安裝 systemctl start httpd.service #啟動apache systemctl stop httpd.service #停止apache systemctl restart httpd.service #重啟apache systemctl enable httpd.service #設置apache開機啟動 二、安裝MariaDB CentOS 7.0中,已經使用MariaDB替代了MySQL數據庫 1、安裝MariaDB 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 #設置開機啟動 cp /usr/share/mysql/my-huge.cnf /etc/my.cnf #拷貝配置文件(注意:如果/etc目錄下面默認有一個my.cnf,直接覆蓋即可) 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 php-mcrypt #這里選擇以上安裝包進行安裝,根據提示輸入Y回車 systemctl restart mariadb.service #重啟MariaDB systemctl restart httpd.service #重啟apache 四、安裝ZendGuardLoader 1.下載:ZendGuardLoader(64位操作系統) http://www.yuanfengtest.com/php5.4/ZendGuardLoader.so 2.安裝 Zend Guard Loader 解壓后將 ZendGuardLoader.so 上傳到服務器 /usr/lib64/php/modules 目錄 3.配置ZendGuardLoader 編輯 php配置文件. vi /etc/php.ini 在 php.ini 文件末尾添加幾行配置項. zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so zend_loader.enable=1 zend_loader.disable_licensing=0 zend_loader.obfuscation_level_support=3 :wq保存退出。 完成后重啟apache:systemctl restart httpd.service 配置篇 一、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) #Options Indexes FollowSymLinks #修改為 Options FollowSymLinks(不在瀏覽器上顯示樹狀目錄結構) DirectoryIndex index.html #修改為:DirectoryIndex index.html index.php(設置默認首頁文件,增加index.php) MaxKeepAliveRequests 500 #添加MaxKeepAliveRequests 500 (增加同時連接數) :wq! #保存退出 systemctl restart httpd.service #重啟apache rm -f /etc/httpd/conf.d/welcome.conf /var/www/error/noindex.html #刪除默認測試頁 二、php配置 vi /etc/php.ini #編輯 expose_php = Off #禁止顯示php版本的信息 short_open_tag = ON #支持php短標簽 :wq! #保存退出 systemctl restart mariadb.service #重啟MariaDB systemctl restart httpd.service #重啟apache 測試篇 cd /var/www/html vi index.php #輸入下面內容 :wq! #保存退出 在客戶端瀏覽器輸入服務器IP地址,可以看到相關的配置信息! 注意:apache默認的程序目錄是/var/www/html 權限設置:chown apache.apache -R /var/www/html 至此,CentOS 7.0安裝配置LAMP服務器(Apache+PHP+MariaDB)教程完成!
                  <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>

                              哎呀哎呀视频在线观看