目录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

CloudServer:$4/月KVM-2GB/50GB/5TB/三个数据中心

CloudServer是一家新的VPS主机商,成立了差不多9个月吧,提供基于KVM架构的VPS主机,支持Linux或者Windows操作系统,数据中心在美国纽约、洛杉矶和芝加哥机房,都是ColoCrossing的机器。目前商家在LEB提供了几款特价套餐,最低月付4美元(或者$23.88/年),购买更高级别套餐还能三个月费用使用6个月,等于前半年五折了。下面列出几款特别套餐配置信息。CPU:1cor...

GreenCloudVPS$20/年,新加坡/美国/荷兰vps/1核/1GB/30GB,NVMe/1TB流量/10Gbps端口/KVM

greencloudvps怎么样?greencloudvps是一家国外主机商,VPS数据中心多,之前已经介绍过多次了。现在有几款10Gbps带宽的特价KVM VPS,Ryzen 3950x处理器,NVMe硬盘,性价比高。支持Paypal、支付宝、微信付款。GreenCloudVPS:新加坡/美国/荷兰vps,1核@Ryzen 3950x/1GB内存/30GB NVMe空间/1TB流量/10Gbps...

妮妮云香港CTG云服务器1核 1G 3M19元/月

香港ctg云服务器香港ctg云服务器官网链接 点击进入妮妮云官网优惠活动 香港CTG云服务器地区CPU内存硬盘带宽IP价格购买地址香港1核1G20G3M5个19元/月点击购买香港2核2G30G5M10个40元/月点击购买香港2核2G40G5M20个450元/月点击购买香港4核4G50G6M30个80元/月点击购买香...

eaccelerator为你推荐
我的"点绛唇"路由器itunes仪器win7eaccelerator使用apmsevr中eAccelerator显示NO是什么问题ipadwifiipad的wifi打不开怎么办?itunes备份如何用iTunes备份iPhonex-routerX-TRAlL是什么意思xp系统关闭445端口xp中,如何关闭掉一些没有用的端口,请高手解答?google图片搜索如何使用google图片搜索引擎?迅雷快鸟用迅雷快鸟提示:您所在的网络暂不支持迅雷快鸟
东莞服务器租用 duniu 香港vps99idc fastdomain Vultr 免费主机 kddi 韩国电信 北京双线 秒杀汇 美国网站服务器 爱奇艺vip免费领取 服务器监测 移动服务器托管 阿里云免费邮箱 全能空间 工信部icp备案查询 免费稳定空间 认证机构 建站行业 更多