linux下eaccelerator,memcache,memcached安装

 #1 安装eaccelerator

Shell代码  
export PHP_PREFIX="/usr/local/webserver/php"  
$PHP_PREFIX/bin/phpize  
./configure --prefix=/usr/local/webserver/ --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config  
make  
make install  
 #2 安装memcache
Shell代码  
/usr/local/webserver/php/bin/phpize  
./configure –enable-memcache –with-php-config=/usr/local/webserver/php/bin/php-config –with-zlib-dir  
make  
make install  
#3 安装memcached
memcached扩展:
http://pecl.php.net/package/memcached
(summary:PHP extension for interfacing with memcached via libmemcached library)通过libmemcached 库与memcached服务交互的php扩展
 
Shell代码  
tar -zxvf libmemcached-1.0.4.tar.gz  
cd libmemcached-1.0.4  
./configure  
make && make install   
 安装memcached
Shell代码  
tar -xf memcached-2.0.1.tgz  
cd memcached-2.0.1 /  
usr/local/webserver/php/bin/phpize   
./configure  --with-php-config=/usr/local/webserver/php/bin/php-config  
make && make install   

你可能感兴趣的:(linux,memcached,memcache,安装eAccelerator)