CentOS安裝php加速軟體Zend Optimizer 3.3.9(轉)

來源:互聯網
上載者:User

標籤:

(尚未驗證)

PHP5.3以上的版本不再支援Zend Optimizer,已經被全新的 Zend Guard Loader 取代,下面是安裝Zend Guard具體步驟,以下操作均在終端命令列執行

1、下載Zend Guardcd /home

1.  wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz    #32位 
2.  wget http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz  #64位  

2、安裝Zend Guard

1.  mkdir /usr/zend       #建立Zend Guard安裝目錄 
2.  tar xvfz ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz    #解壓安裝檔案 
3.  cp ZendGuardLoader-php-5.3-linux-glibc23-i386/php-5.3.x/ZendGuardLoader.so     /usr/zend/   #拷貝檔案到安裝目錄 
4.  rm -rf /home/ZendGuardLoader-php-5.3-linux-glibc23-i386*   #刪除安裝包  

3、配置Zend Guard

       cp  /etc/php.ini    /etc/php.inibak   #修改之前先備份

       vi /etc/php.ini    #編輯檔案

       在最後位置添加以下內容

1.  [Zend Guard] 
2.  zend_extension=/usr/zend/ZendGuardLoader.so 
3.  zend_loader.enable=1 
4.  zend_loader.disable_licensing=0 
5.  zend_loader.obfuscation_level_support=3 
6.  zend_loader.license_path=  

4、重啟web伺服器

       /etc/init.d/httpd restart

至此,Zend Guard安裝完成。

CentOS安裝php加速軟體Zend Optimizer 3.3.9(轉)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.