标签:
wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz
tar -zvxf xcache-3.1.0.tar.gz
cd xcache-3.1.0
#配置 ./configure --prefix=/php的路径/lib/php/extensions --with-php-config=/php的路径/bin/php-config --enable-xcache #编译 make #安装 make install
cp ./htdocs /www/web/xcache -r
cat xcache.ini >> /php的路径/etc/php.ini
touch /tmp/xcache chmod 777 /tmp/xcache
[xcache-common] extension = xcache.so [xcache.admin] xcache.admin.enable_auth = On xcache.admin.user = "admin" xcache.admin.pass = "21232f297a57a5a743894a0e4a801fc3" [xcache] xcache.shm_scheme = "mmap" xcache.size = 128M xcache.count = 1 xcache.slots = 8K xcache.ttl = 0 xcache.gc_interval = 0 xcache.var_size = 4M xcache.var_count = 1 xcache.var_slots = 8K xcache.var_ttl = 0 xcache.var_maxttl = 0 xcache.var_gc_interval = 300 xcache.var_namespace_mode = 0 xcache.var_namespace = "" xcache.readonly_protection = Off xcache.mmap_path = "/tmp/xcache" xcache.coredump_directory = "" xcache.coredump_type = 0 xcache.disable_on_crash = Off xcache.experimental = Off xcache.cacher = On xcache.stat = On xcache.optimizer = Off [xcache.coverager] xcache.coverager = Off xcache.coverager_autostart = On xcache.coveragedump_directory = ""
service httpd restart
微凉大大,教你一步一步在linux中正确的安装Xcache加速php。
标签:
原文地址:http://www.cnblogs.com/bhlsheji/p/4286934.html