DirectAdmin配置Zend Opitimizer与eAccelerator0.9.6.1,VPS使用,VPS配置,微评马 - VPS主机点评

DirectAdmin配置Zend Opitimizer与eAccelerator0.9.6.1


admin 发布于 2013-10-15 16:49     评论:0    浏览:1994

安装Zend Opitimizer

#Centos 32bit
cd /tmp
mkdir zend
cd zend
wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
tar -xzvf ZendOptimizer-3.3.9-linux-glibc23-i386.tar.gz
mkdir /usr/local/lib/Zend
mv ZendOptimizer-3.3.9-linux-glibc23-i386/data/5_2_x_comp/ZendOptimizer.so mkdir /usr/local/lib/Zend/
echo “zend_extension=/usr/local/lib/Zend/ZendOptimizer.so” >> /usr/local/lib/php.ini
echo “zend_optimizer.optimization_level=15″ >> /usr/local/lib/php.ini
/etc/init.d/httpd restart
php -m
php -i | grep Zend
php -v
#64bit
cd /tmp/
wget http://downloads.zend.com/optimizer/3.3.9/ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz
tar xvfz ZendOptimizer-3.3.9-linux-glibc23-x86_64.tar.gz
cd ZendOptimizer-3.3.9-linux-glibc23-x86_64/data/5_2_x_comp/
mkdir /usr/local/lib/Zend
mv ZendOptimizer.so /usr/local/lib/Zend/
echo “zend_extension=/usr/local/lib/Zend/ZendOptimizer.so” >> /usr/local/lib/php.ini
echo “zend_optimizer.optimization_level=15″ >> /usr/local/lib/php.ini
/etc/init.d/httpd restart
php -m
php -i | grep Zend
php -v
安装eAccelerator0.9.6.1

yum install autoconf
yum install automake
mkdir -p /usr/local/src/eAccelerator
cd /usr/local/src/eAccelerator
wget -c http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2 #这个地址不行,请用下面的地址
wget http://soft.vpser.net/web/eaccelerator/eaccelerator-0.9.6.1.tar.bz2
tar jxvf eaccelerator-0.9.6.1.tar.bz2
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 -p /tmp/eaccelerator
chmod 0777 /tmp/eaccelerator
vi /usr/local/lib/php.ini
[eaccelerator]
extension=”/usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so”
eaccelerator.shm_size=”32″
eaccelerator.cache_dir=”/tmp/eaccelerator”
eaccelerator.enable=”1″
eaccelerator.optimizer=”1″
eaccelerator.check_mtime=”1″
eaccelerator.debug=”0″
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″

0 顶一下
如果您要进行评论信息,请先 登录 或者 快速注册 。