您的位置:首页 > 其它

源码编译方式给LAMP环境加个XCache扩展

2015-07-12 20:16 369 查看
1. 下载XCache

wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz[/code] 
2. 解压并进入XCache目录

tar -zxvf xcache-3.1.0.tar.gz
cd xcache-3.1.0


3. 执行phpize配置

/php路径/bin/phpize


4. 配置-->编辑-->安装

#配置
./configure --prefix=/php路径/lib/php/extensions --with-php-config=/php路径/bin/php-config --enable-xcache
#编译
make
#安装
make install


5. 如需管理页面(可选)

cp -r ./htdocs /www/xcache


6. 配置php.ini

cat xcache.ini >> /php路径/etc/php.ini


7. 上一步完成后

#创建目录并给予777权限
touch /tmp/xcache
chmod 777 /tmp/xcache

#修改php.ini文件,改该行值为如下
xcache.mmap_path = "/tmp/xcache"


8. 重启webserver
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: