欢迎光临
我们一直在努力

Directadmin安装Xcache

1.cd /usr/local/src/
 
2.wget http://xcache.lighttpd.net/pub/Releases/3.0.3/xcache-3.0.3.tar.gz
 
3.tar –zxvf xcache-3.0.3.tar.gz
4.cd xcache-3.0.3
5.export PHP_PREFIX="/usr/local"
6.$PHP_PREFIX/php5/bin/phpize
7. ./configure --enable-xcache -with-php-config=$PHP_PREFIX/php5/bin/php-config
8.
make && make install
9.把下面的代码放到php.ini

[xcache-common]
extension_dir = “/usr/local/php5/lib/php/extensions/no-debug-non-zts-20060613/”
extension = xcache.so
[xcache.admin]
xcache.admin.user = “admin”
xcache.admin.pass = “”
; xcache.admin.pass = md5($your_password)
xcache.admin.enable_auth = On
[xcache]
xcache.cacher =               On
xcache.size  =               64M
xcache.count =                 1
xcache.slots =                8K
xcache.ttl   =              3600
xcache.gc_interval =         300
xcache.var_size  =            0M
xcache.var_count =             1
xcache.var_slots =            8K
xcache.var_ttl   =             0
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300
xcache.readonly_protection = Off
xcache.mmap_path =    “/dev/zero”

 
10。重启下apache 加载一下。已经完成
赞(0) 打赏
未经允许不得转载:优惠吧 » Directadmin安装Xcache
分享到: 更多 (0)

评论 229

评论前必须登录!