注意要先确保/path-to-php/bin/php-config存在
下载链接:

http://pan.baidu.com/s/1hqh5pDM


#解压xcache源代码
tar -zvxf xcache-3.1.0.tar.gz

#进入安装目录
cd xcache-3.1.0

#安装前执行phpize配置
/path-to-php/bin/phpize

#安装配置

./configure --prefix=/path-to-php/lib/php/extensions \
--with-php-config=/path-to-php/bin/php-config \
--enable-xcache

#编译

make

#安装

make install

#拷贝xcache管理页面
cp ./htdocs /web-root/xcache -r

#追加配置文件xcache.ini至php.ini
cat xcache.ini >> /path-to-php/etc/php.ini

#配置管理xcache的帐号

vi /path-to-php/etc/php.ini

xcache.admin.user = "userName"

#这里的userPass 是md5后的字符串, md5('userPass')

xcache.admin.pass = "userPass"

#重启apache
/path-to-apache/bin/apachectl restart

#安装完成

附xcache官网配置文档链接地址:

http://xcache.lighttpd.net/wiki/XcacheIni

相关文章:

  • 2021-05-05
  • 2022-12-23
  • 2021-12-16
  • 2021-06-15
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
猜你喜欢
  • 2021-05-17
  • 2022-12-23
  • 2022-01-08
  • 2021-09-07
  • 2021-05-30
  • 2021-06-29
  • 2021-12-07
相关资源
相似解决方案