订阅本站

kloxo上安装eaccelerator加速器[本站装上使用了]

漏网小鱼 发表于 2010-7-9 分类 个人随笔 | 3条评论

听说kloxo里面默认的xcache不稳定,于是我决定关闭xcache然后自己编译上eaccelerator,以下方法为半原创.
首先确定自己有否安装make模块
如果没有,请执行复制内容到剪贴板代码:

yum install make

接着执行下面的命令复制内容到剪贴板代码:
wget http://bart.eaccelerator.net/source/0.9.6/-0.9.6.tar.bz2
tar xjf -0.9.6.tar.bz2
cd -0.9.6
/usr/bin/phpize
./configure –enable-=shared –with-php-config=/usr/bin/php-config
make
make install
cd ..
rm -rf -0.9.6
rm -0.9.6.tar.bz2
mkdir /tmp/
chmod 777 /tmp/

然后在/etc/php.d/中创建一个.ini

命令: vim /etc/php.d/.ini

创建好之后编辑这个文件,开始编辑这个文件:

命令: i

进入编辑状态后根据你的VPS是openVZ还是XEN选择复制下面代码 1.OPENVZ复制内容到剪贴板代码:

extension=”.so”
.shm_size=”0″
.cache_dir=”/tmp/
.enable=”1″
.optimizer=”1″
.check_mtime=”1″
.debug=”0″
.log_file = “/var/log/eaccelerator_log”
.filter=””
.shm_max=”0″
.shm_ttl=”0″
.shm_prune_period=”0″
.shm_only=”0″
.compress=”1″
.compress_level=”9″
.keys = “disk_only”
.sessions = “disk_only”
.content = “disk_only”

2.Xen复制内容到剪贴板代码:

extension=”.so”
.shm_size=”64″
.cache_dir=”/tmp/
.enable=”1″
.optimizer=”1″
.check_mtime=”1″
.debug=”0″
.log_file = “/var/log/eaccelerator_log”
.filter=””
.shm_max=”0″
.shm_ttl=”0″
.shm_prune_period=”0″
.shm_only=”0″
.compress=”1″
.compress_level=”9″
.keys = “shm_and_disk”
.sessions = “shm_and_disk”
.content = “shm_and_disk”

然后ctrl+c 退出编辑模式。

Caps Lock进入大写模式,连按两下Z退出到SSH命令行。

7.然后重启apache生效:

service httpd restart

如果是你用的Lighttpd就重启Lighttpd:

service lighttpd restart

即可完美与kloxo现有zend兼容,无需一个个站点的php.ini文件修改过来.

声明: 本文采用 BY-NC-SA 协议进行授权 | 漏网小鱼博客
转载请注明转自《kloxo上安装eaccelerator加速器[本站装上使用了]

  1. 我爱你们往往是太多。这种巧妙的工作和覆盖!保持的好作品,我补充说:你们的网志串连的球员。

  2. 嘿!我可以发誓,我去过这个博客,但通过一些后检查后,我意识到它的新的给我。无论如何,我肯定高兴,我发现它,我将书标记和检查经常回来!

  3. Howdy I am so grateful I found your webpage, I really found you by error, while I was looking on Aol for something else, Anyways I am here now and would just like to say thank you for a marvelous post and a all round entertaining blog (I also love the theme/design), I don抰 have time to go through it all at the minute but I have book-marked it and also added your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the excellent work.

:wink: :twisted: :roll: :oops: :mrgreen: :lol: :idea: :evil: :cry: :arrow: :?: :-| :-x :-o :-P :-D :-? :( :!: 8-O 8)

[使用Ctrl+回车快速提交]

您也可以使用微博账号登陆


无觅相关文章插件,快速提升流量