首先,强烈吐槽,百度上的教程,都左复制右复制的,乱七八糟,缺东缺西的。借此微凉大大我提供我苦心整理好的教程。以便各位小菜能顺利的使用Xcache加速php,如果看完了,也操作了,还是失败了的话,请联系微凉大大的QQ 496928838,微凉大大也想看看你是如何一步一步都装不上。
微凉大大原创资料,转载跪求你保留好我的信息。
#第一步,下载Xcache
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/xcachechmod 777 /tmp/xcache
[xcache-common]extension = xcache.so[xcache.admin]xcache.admin.enable_auth = Onxcache.admin.user = "admin"xcache.admin.pass = "21232f297a57a5a743894a0e4a801fc3"[xcache]xcache.shm_scheme = "mmap"xcache.size = 128Mxcache.count = 1xcache.slots = 8Kxcache.ttl = 0xcache.gc_interval = 0xcache.var_size = 4Mxcache.var_count = 1xcache.var_slots = 8Kxcache.var_ttl = 0xcache.var_maxttl = 0xcache.var_gc_interval = 300xcache.var_namespace_mode = 0xcache.var_namespace = ""xcache.readonly_protection = Offxcache.mmap_path = "/tmp/xcache"xcache.coredump_directory = ""xcache.coredump_type = 0xcache.disable_on_crash = Offxcache.experimental = Offxcache.cacher = Onxcache.stat = Onxcache.optimizer = Off[xcache.coverager]xcache.coverager = Offxcache.coverager_autostart = Onxcache.coveragedump_directory = ""
service httpd restart