Directadmin如何安裝eAccelerator

2024-04-16    分類(lèi): 網(wǎng)站建設(shè)

首先安裝一些基本的組件

yum -y install autoconf automake

去eAccelerator官方下載最新版的源碼包:eaccelerator- 0.9.6.1.zip并解壓

http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.zip

unzip eaccelerator-0.9.6.1.zip

cd eaccelerator-0.9.6.1

export PHP_PREFIX="/usr/local"

$PHP_PREFIX/bin/phpize

./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config

make

make install

mkdir /tmp/eaccelerator

chmod 777 /tmp/eaccelerator

然后編輯PHP.INI,并放置到Zend之前

[eAccelerator]

zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"

eaccelerator.shm_size="16"

eaccelerator.cache_dir="/tmp/eaccelerator"

eaccelerator.enable="1"

eaccelerator.optimizer="1"

eaccelerator.check_mtime="1"

eaccelerator.debug="0"

eaccelerator.log_file = "/var/log/eaccelerator_log"

eaccelerator.filter=""

eaccelerator.shm_max="0"

eaccelerator.shm_ttl="0"

eaccelerator.shm_prune_period="0"

eaccelerator.shm_only="0"

eaccelerator.compress="1"

eaccelerator.compress_level="9"

重啟apache服務(wù)即可在phpinfo()中看到

service httpd restart

網(wǎng)站題目:Directadmin如何安裝eAccelerator
本文路徑:http://www.bm7419.com/news24/323824.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站收錄定制開(kāi)發(fā)、網(wǎng)站維護(hù)域名注冊(cè)、App開(kāi)發(fā)、網(wǎng)站制作

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)