黑基网 首页 服务器 Linux 查看内容

XCache安装配置

2011-3-9 14:31| 投稿: Linux

摘要:   安装XCache模块  # phpize  # ./configure --with-php-config=/usr/local/php/bin/php-config --enable-xcach...
  安装XCache模块  # phpize  # ./configure --with-php-config=/usr/local/php/bin/php-config --enable-xcache --enable-xcache-optimizer  # make  # make install  算出密码的MD5字串  # echo -n “123456″ | md5sum  配置XCache  # vi /etc/php.ini  [xcache-common]  zend_extension = /usr/local/php/lib/php/extensions/xcache.so  [xcache.admin]  ; Change xcache.admin.user to your preferred login name  xcache.admin.user = "admin"  ; Change xcache.admin.pass to the MD5 fingerprint of your password  ; Use md5 -s "your_secret_password" to find the fingerprint  xcache.admin.pass = "e10adc3949ba59abbe56e057f20f883e"  [xcache]  ; Change xcache.size to tune the size of the opcode cache  xcache.size = 24M  xcache.shm_scheme = "mmap"  xcache.count = 2  xcache.slots = 8K  xcache.ttl = 0  xcache.gc_interval = 0  ; Change xcache.var_size to adjust the size of variable cache  xcache.var_size = 8M  xcache.var_count = 1  xcache.var_slots = 8K  xcache.var_ttl = 0  xcache.var_maxttl = 0  xcache.var_gc_interval = 300  xcache.test = Off  xcache.readonly_protection = On  xcache.mmap_path = "/tmp/xcache"  xcache.coredump_directory = ""  xcache.cacher = On  xcache.stat = On  xcache.optimizer = Off  [xcache.coverager]  xcache.coverager = On  xcache.coveragedump_directory = ""  重启PHP模块  正常load之后,  在phpinfo显出的信息内  Zend这快应该会加上XCache的内容  This program makes use of the Zend Scripting Language Engine:  Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies  with XCache v1.2.1, Copyright (c) 2005-2007, by mOo
小编推荐:欲学习电脑技术、系统维护、网络管理、编程开发和安全攻防等高端IT技术,请 点击这里 注册黑基账号,公开课频道价值万元IT培训教程免费学,让您少走弯路、事半功倍,好工作升职加薪!



免责声明:本文由投稿者转载自互联网,版权归原作者所有,文中所述不代表本站观点,若有侵权或转载等不当之处请联系我们处理,让我们一起为维护良好的互联网秩序而努力!联系方式见网站首页右下角。


鲜花

握手

雷人

路过

鸡蛋

相关阅读

最新评论


新出炉

返回顶部