Blog entry by 管理者 使用者

Picture of 管理者 使用者
by 管理者 使用者 - Saturday, 2 July 2016, 8:38 PM
Anyone in the world

Zend是十分常用用於php程式上加速的主機系統套件,在CentOS7上也可以安裝,原則上只要透過yum即可安裝成功!!

# yum install php-pecl-zendopcache

如果出現找不到套件,通常是因為CentOS上yum網站沒有這個套件,可以透過EPE: (Red hat提供的套件來安裝),首先先透過yum下載epel的repo設定,會出現詢問畫面,再按「y」即可!!

# yum install epel-release

f01

如果epel的repo安裝好了之後,再重新執行一次「yum install php-pecl-zendopcache」就ok了,然後簡單修改一下設定檔,依順序參考如下表格!!

# nano /etc/php.d/opcache.ini

opcache.memory_consumption=128

opcache.interned_strings_buffer=16

opcache.max_accelerated_files=20000 (original value is 4000)

opcache.validate_timestamps=0 (original value is 1)

opcache.revalidate_freq=0 (original value is 2)

opcache.fast_shutdown=1

 

 URL

URL2

Zend OPcache不可與Zend Guard一起安裝,會有問題!!

[ Modified: Monday, 1 August 2016, 2:04 PM ]

Comments