论坛风格切换
  • 3337阅读
  • 1回复

memcache,apc,ea安装 [复制链接]

上一主题 下一主题
离线mgarfield
 

发帖
520
金币
0
威望
62
只看楼主 倒序阅读 使用道具 楼主  发表于: 2011-07-25



------------------- memcache --------------------


pecl安装法


/alidata/server/php/bin/pecl install memcache


########################
编译安装法


wget http://pecl.php.net/get/memcache-2.2.6.tgz
tar zxvf memcache-2.2.6.tgz
cd memcache-2.2.6
/alidata/server/php/bin/phpize
./configure --enable-memcache --with-php-config=/alidata/server/php/bin/php-config
make
make install


php配置文件加入以下内容:
extension=memcache.so


------------------- apc ---------------------
pecl安装法
/alidata/server/php/bin/pecl install apc


########################
编译安装法


wget http://pecl.php.net/get/APC-3.1.9.tgz
tar zxvf APC-3.1.9.tgz
cd APC-3.1.9
/alidata/server/php/bin/phpize
./configure --enable-apc --enable-apc-mmap --with-php-config=/alidata/server/php/bin/php-config
make
make install


php配置文件加入以下内容:
extension=apc.so
[apc]
apc.enabled = 1
apc.shm_segments = 1
apc.shm_size = 30M
apc.optimization = 0
apc.num_files_hint = 0
apc.ttl = 0
apc.gc_ttl = 0
apc.cache_by_default = 1
apc.filters =
apc.mmap_file_mask =
apc.slam_defense = 0
apc.file_update_protection = 2
apc.enable_cli = 0








------------------- ea ---------------------


wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2
#wget http://public.157.img1001.com/web/eaccelerator-0.9.6.1.zip
unzip eaccelerator-0.9.6.1.zip
cd eaccelerator-0.9.6.1
/alidata/alidata/server/php/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=/alidata/alidata/server/php/bin/php-config
mkdir -p /alidata/server/eaccelerator_cache
make
make install


php配置文件加入以下内容:
extension=eaccelerator.so
[eaccelerator]
zend_extension="/alidata/server/php/lib/php/extensions/no-debug-zts-20060613/eaccelerator.so"
eaccelerator.shm_size="64"
eaccelerator.cache_dir="/alidata/server/eaccelerator_cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

离线prisk

发帖
278
金币
0
威望
59
只看该作者 沙发  发表于: 2011-07-25
[img]http://appimg.veryapp.com/pbar/img.php?barhash=4b7ee90840c62e74d81ca326e43bb302d7b460c4[/img]
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
提到某人:
选择好友
上一个 下一个