欢迎来到天天文库
浏览记录
ID:24708812
大小:112.89 KB
页数:4页
时间:2018-11-16
《linux安装eaccelerator加速器vps优化》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、时尚新品www.shop365x.com时尚导购雪纺衫牛仔裤秋季新款www.shop365x.com性能优化(根据需要,自己选择,可不做)安装eAccelerator1.sudo apt-get install php5-dev 2. 下载eAcceleratorwgethttp://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.tar.bz2tarjxvfeaccelerator-0.9.6.1.tar.bz2cdeaccelerator-0.9.6.1phpize1.sud
2、o ./configure -enable-eaccelerator=shared sudo make qii@ubuntu:~/tmp/eaccelerator-0.9.6.1___FCKpd___1nbsp;sudo make install Installing shared extensions: /usr/lib/php5/20060613+lfs/ 2. 修改php.ini文件,安装为Zend扩展,最好放在开头,放到[zend]之前,免的出莫名其妙的问题:1.sudo vi /etc/php5/apache2/php.ini 2. [
3、eaccelerator]1.zend_extension="/usr/lib/php5/20060613+lfs/eaccelerator.so" 2. 3.eaccelerator.shm_size="16" 4. 5.eaccelerator.cache_dir="/tmp/eaccelerator" 6. 7.eaccelerator.enable="1" 8. 9.eaccelerator.optimizer="1" 10. 11.eaccelerator.check_mtime="1" 12. 时尚新品www.shop365x.com
4、时尚导购雪纺衫牛仔裤秋季新款www.shop365x.com1.eaccelerator.debug="0" 2. 3.eaccelerator.filter="" 4. 5.eaccelerator.shm_max="0" 6. 7.eaccelerator.shm_ttl="0" 8. 9.eaccelerator.shm_prune_period="0" 10. 11.eaccelerator.shm_only="0" 12. 13.eaccelerator.compress="1" 14. 15.eaccelerator.compress
5、_level="9" 16. 17.eaccelerator.allowed_admin_path="/var/www/control.php" 18. 创建cache缓存目录eaccelerator.cache_dir="/var/cache/eaccelerator"这里定义cache路径默认值是/tmp/eaccelerator,这非常简单因为任何人都对该目录可写,但是并不明智,因为重启后系统会自动清理该目录。一个更好的地方是/var/cache/eaccelerator。创建该目录并确保它对eAccelerator的使用者可写(通常该用户
6、是你的网络伺服器运行者,可能是www-data)。使用默认值的话这样继续:1.mkdir /tmp/eaccelerator 2. 3.chmod 777 /tmp/eaccelerator 4. 改成/var/cache/eaccelerator的话这样继续,先改php.inieaccelerator.cache_dir="/var/cache/eaccelerator"1.sudo mkdir /var/cache/eaccelerator 2. 3.sudo chown root:www-data /var/cache/eaccelerat
7、or 4. 5.sudo chmod u=rwx,g=rwx,o= /var/cache/eaccelerator 6. 时尚新品www.shop365x.com时尚导购雪纺衫牛仔裤秋季新款www.shop365x.com复製控制文件control.php到网站根目录1.sudo cp control.php /var/www/htdocs/ 2. 修改control.php的$user和$pw,默认是admin和eAccelerator1.sudo vi /var/www/htdocs/control.php 2. 重启apache1.sudo
8、 /etc/init.d/apache2 restart 2. 打开http://localhost/control.php eAc
此文档下载收益归作者所有