centos如何安裝Zend Optimizer

來源:互聯網
上載者:User

標籤:rac   and   strong   windows   一般來說   res   網站   glib   path   

如果您的centos系統需要安裝Zend Optimizer,請用root賬戶執行下面命令即可完成安裝(32位、64位的linux系統都支援!):

wget http://www.CTOHome.com/linux-vps-pack/zend.sh;sh ./zend.sh;

一般來說,不需要另外編輯php.ini檔案就可以正常工作了。

如果您是64位的contos/linux系統,那麼要注意安裝64位的zend optimizer:

http://downloads.zend.com/optimizer/3.3.3/ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gz  (64位)

Zend optimizer 3.3.9有一些新的改動,不需要安裝了,直接在php.ini檔案裡面引用.so檔案即可:

http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz  (32位)

http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x386.tar.gz  (64位)

Zend optimizer 3.3.9使用說明:

1. Extract the Zend Optimizer package.
2. Locate the ZendOptimizer.so (Unix) or ZendOptimizer.dll (Windows) file in the directory which
   corresponds to your version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x).
3. Add the following line to your php.ini file:
   Linux and Mac OS X:     zend_extension=<full_path_to_ZendOptimizer.so>
   Windows:                zend_extension_ts=<full_path_to_ZendOptimizer.dll>
   Windows non-thread safe: zend_extension=<full_path_to_ZendOptimizer.dll>
   (*) The Windows non-thread safe binary is only used with Zend Core 2.0.
4. Restart your Web server.

如果您需要修改某些參數,請參考下面的資訊:

編輯/etc/php.ini

vi /etc/php.ini

找到:zend.ze1_compatibility_mode = Off

修改為:zend.ze1_compatibility_mode = On

儲存退出!

編輯/etc/ispcp/fcgi/parts/php5/php.ini

找到:zend.ze1_compatibility_mode = Off 

修改為:zend.ze1_compatibility_mode = On

在最後位置添加如下內容:

[Zend]zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3zend_optimizer.version=3.3.3zend_extension=/usr/local/Zend/lib/ZendExtensionManager.sozend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so

儲存退出。然後同樣以編輯/etc/ispcp/fcgi/parts/php5/php.ini的方式編輯/var/www/fcgi /domain.ltd/php5/php.ini以及/var/www/fcgi/master/php5/php.ini。至 此,zendoptimizer安裝完成了!!所有的網站都可以使用ZendOptimizer!!!

備忘:將zend.ze1_compatibility_mode設定成 On僅在PHP4下,如果您只安裝了PHP5,建議不要修改,仍保持zend.ze1_compatibility_mode為Off狀態, 即:zend.ze1_compatibility_mode = Off

centos如何安裝Zend Optimizer

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.