目录LINUX安装eAccelerator加速器VPS优化

eaccelerator  时间:2021-04-17  阅读:()

性能优化(根据需要 自己选择可不做)

安装eAccelerator

1. sudo apt-get install php5-dev

2.

下载eAcceleratorwgethttp://bart.eaccelerator.net/source/0.9.6. 1/eaccelerator-0.9.6. 1. tar.bz2tar jxvf eaccelerator-0.9.6. 1. tar.bz2cd eaccelerator-0.9.6. 1phpize

1. sudo ./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.

[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.

13. eaccelerator.debug="0"

14.

15.eaccelerator.filter=""

16.

17. eaccelerator. shm_max="0"

18.

19. eaccelerator. shm_ttl="0"

20.

21. eaccelerator. shm_prune_period="0"

22.

23. eaccelerator. shm_only="0"

24.

25. eaccelerator.compress="1"

26.

27. eaccelerator.compress_level="9"

28.

29.eaccelerator.allowed_admin_path="/var/www/control.php"

30.

创建cache缓存目录eaccelerator.cache_dir="/var/cache/eaccelerator"这里定义cache路径默认值是/tmp/eaccelerator这非常简单因为任何人都对该目录可写但是并不明智 因为重启后系统会自动清理该目录。一个更好的地方是

/var/cache/eaccelerator。创建该目录并确保它对eAccelerator的使用者可写(通常该用户是你的网络伺服器运行者 可能是www-d a t a) 。使用默认值的话这样继续

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/eaccelerator

4.

5. sudo chmod u=rwx,g=rwx,o= /var/cache/eaccelerator

6.

复製控制文件control.php到网站根目录

1. sudo cp control.php /var/www/htdocs/

2.

修改control.php的$user和$pw默认是admin和eAccelerator

1. sudo vi /var/www/htdocs/control.php

2.

重启apache

1. sudo /etc/init.d/apache2 restart

2.

打开http://localhost/control.php

eAccelerator control.php页面

查看之前的info.php页面有下列字段

This program makes use of the Zend Scripting Language Engine:Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologieswith eAccelerator v0.9.6. 1, Copyright (c) 2004-2010 eAccelerator, byeAccelerator

【IT狗】在线ping,在线tcping,路由追踪

IT狗为用户提供 在线ping、在线tcping、在线路由追踪、域名被墙检测、域名被污染检测 等实用工具。【工具地址】https://www.itdog.cn/【工具特色】1、目前同类网站中,在线ping 仅支持1次或少量次数的测试,无法客观的展现目标服务器一段时间的网络状况,IT狗Ping工具可持续的进行一段时间的ping测试,并生成更为直观的网络质量柱状图,让用户更容易掌握服务器在各地区、各线...

georgedatacenter39美元/月$20/年/洛杉矶独立服务器美国VPS/可选洛杉矶/芝加哥/纽约/达拉斯机房/

georgedatacenter这次其实是两个促销,一是促销一款特价洛杉矶E3-1220 V5独服,性价比其实最高;另外还促销三款特价vps,georgedatacenter是一家成立于2019年的美国VPS商家,主营美国洛杉矶、芝加哥、达拉斯、新泽西、西雅图机房的VPS、邮件服务器和托管独立服务器业务。georgedatacenter的VPS采用KVM和VMware虚拟化,可以选择windows...

趣米云月付460元,香港CN2云服务器VPS月付低至18元

趣米云早期为做技术起家,为3家IDC提供技术服务2年多,目前商家在售的服务有香港vps、香港独立服务器、香港站群服务器等,线路方面都是目前最优质的CN2,直连大陆,延时非常低,适合做站,目前商家正在做七月优惠活动,VPS低至18元,价格算是比较便宜的了。趣米云vps优惠套餐:KVM虚拟架构,香港沙田机房,线路采用三网(电信,联通,移动)回程电信cn2、cn2 gia优质网络,延迟低,速度快。自行封...

eaccelerator为你推荐
精馏搜狗拼音输入法4Integratedfastreport2支持ipaditunes备份怎么使用iTunes备份win7telnet怎样在win7下打开telnet 命令x-routerX-TRAlL是什么意思ms17-010win1038度古贝春珍藏10价格?卡巴斯基好用吗卡巴斯基 好用吗ios8.1.3ipad 升级ios8.1.3 升级了多久webmessengerMSN无法登陆怎么办啊?
成都虚拟主机 如何申请域名 php主机 payoneer 42u机柜尺寸 unsplash panel1 777te 本网站在美国维护 合租空间 admit的用法 asp免费空间申请 可外链相册 服务器合租 卡巴斯基破解版 江苏双线服务器 腾讯总部在哪 网页提速 linode支付宝 supercache 更多