eaccelerator1.0
[root@vps ~]#wget wget https://codeload.github.com/eaccelerator/eaccelerator/legacy.tar.gz/master [root@vps ~]#tar -zxvf eaccelerator-eaccelerator-42067ac.tar.gz [root@vps ~]#cd eaccelerator-eaccelerator-42067ac [root@vps eaccelerator-eaccelerator-42067ac]#phpize [root@vps eaccelerator-eaccelerator-42067ac]#./configure --enable-eaccelerator=shared --with-php-config=/usr/bin/php-config [root@vps eaccelerator-eaccelerator-42067ac]#make && make install [root@vps ~]#cd .. [root@vps ~]#find / -name eaccelerator.so /usr/lib/php/modules/eaccelerator.so [root@vps ~]#mkdir /tmp/eaccelerator [root@vps ~]#chmod 0777 /tmp/eaccelerator [root@vps ~]#vi /etc/php.d/eaccelerator.ini
输入以下内容
[eaccelerator] extension="/usr/lib/php/modules/eaccelerator.so" eaccelerator.shm_size="64" eaccelerator.cache_dir="/tmp/eaccelerator" eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.check_mtime="1" eaccelerator.debug="0" eaccelerator.log_file = "/var/log/eaccelerator_log" eaccelerator.filter="" eaccelerator.shm_max="0" eaccelerator.shm_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0" eaccelerator.compress="1" eaccelerator.compress_level="9" eaccelerator.keys = "shm_and_disk" eaccelerator.sessions = "shm_and_disk" eaccelerator.content = "shm_and_disk"
[root@vps ~]#service httpd restart [root@vps ~]# php -v PHP 5.4.24 (cli) (built: Jan 10 2014 18:37:23) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
Xcache-3.1.0
#wget https://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz #tar -zxvf xcache-3.1.0.tar.gz #cd xcache-3.1.0 #phpize #./configure -with-php-config=/usr/bin/php-config -enable-xcache -enable-xcache-coverager -enable-inline-optimization -disable-debug #make && make install #vi /etc/php.d/xcache.ini
增加或修改以下内容
[xcache-common] zend_extension = /usr/lib/php/modules/xcache.so [xcache.admin] xcache.admin.enable_auth = On xcache.admin.user = "admin" xcache.admin.pass = md5($pass)
#cp -ar htdocs /www/root/ #service php-fpm restart #service httpd restart #php -v PHP 5.4.24 (cli) (built: Jan 10 2014 18:37:23) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies with XCache v3.1.0, Copyright (c) 2005-2013, by mOo with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo
sicnature ---------------------------------------------------------------------
I P 地 址: 3.133.146.246
区 域 位 置: 美国
系 统 信 息:
Original content, please indicate the source:
同福客栈论坛 | 蟒蛇科普 | 海南乡情论坛 | JiaYu Blog
sicnature ---------------------------------------------------------------------
Welcome to reprint. Please indicate the source https://myzhenai.com.cn/post/1761.html
没有评论