安装Xcache,配置管理页面

发布时间:2019-08-08 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了安装Xcache,配置管理页面脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

安装:

# tar xf xcache-3.0.1.tar.gz
# cd xcache-3.0.1
# /usr/local/php/bin/phpize
# ./configure --enable-xcache --wITh-php-config=/usr/local/php/bin/php-config
# make && make install
Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-zts-20131226/

提供配置文件:

# cp xcache.ini /etc/php.d

PS:旧版本需要在配置文件中用zend_extension引擎启用:

zend_extension = /usr/local/php/lib/php/extensions/no-debug-zts-20131226/

启用zcache管理页面:复制 /usr/src/xcache-3.2.0/htdocs/目录到web目录下,并在配置文件中设置访问密码

[xcache.admin]
xcache.admin.enable_auth = On
 
; use http://xcache.lighttpd.net/demo/cacher/mkpassword.php to generate your encrypted password
xcache.admin.user = "shiina"
xcache.admin.pass = "b2e0162266097dc4f2f72baa77977357"
 
[xcache]
; ini only settings, all the values here is default unless explained
 
; select low level shm implemenation
xcache.shm_scheme =        "mmap"
; to disable: xcache.size=0  #关闭xcache只需将缓存大小设为0即可
; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
xcache.size  =               60M

脚本宝典总结

以上是脚本宝典为你收集整理的安装Xcache,配置管理页面全部内容,希望文章能够帮你解决安装Xcache,配置管理页面所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。