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

Hostodo,美国独立日特价优惠,四款特价VPS云服务器7折,KVM虚拟架构,NVMe阵列,1核512M内存1Gbps带宽3T月流量,13.99美元/月,赠送DirectAdmin授权

Hostodo近日发布了美国独立日优惠促销活动,主要推送了四款特价优惠便宜的VPS云服务器产品,基于KVM虚拟架构,NVMe阵列,1Gbps带宽,默认分配一个IPv4+/64 IPv6,采用solusvm管理,赠送收费版DirectAdmin授权,服务有效期内均有效,大致约为7折优惠,独立日活动时间不定,活动机型售罄为止,有需要的朋友可以尝试一下。Hostodo怎么样?Hostodo服务器好不好?...

Gcorelabs:美国GPU服务器,8路RTX2080Ti;2*Silver-4214/256G内存/1T SSD,1815欧/月

gcorelabs怎么样?gcorelabs是创建于2011年的俄罗斯一家IDC服务商,Gcorelabs提供优质的托管服务和VPS主机服务,Gcorelabs有一支强大的技术队伍,对主机的性能和稳定性要求非常高。Gcorelabs在 2017年收购了SkyparkCDN并提供全球CDN服务,目标是进入全球前五的网络服务商。G-Core Labs总部位于卢森堡,在莫斯科,明斯克和彼尔姆设有办事处。...

Spinservers:美国独立服务器(圣何塞),$111/月

spinservers是Majestic Hosting Solutions,LLC旗下站点,主营美国独立服务器租用和Hybrid Dedicated等,spinservers这次提供的大硬盘、大内存服务器很多人很喜欢。TheServerStore自1994年以来,它是一家成熟的企业 IT 设备供应商,专门从事二手服务器和工作站业务,在德克萨斯州拥有40,000 平方英尺的仓库,库存中始终有数千台...

eaccelerator为你推荐
AppleTVapple思科ipad支持ipad责任编辑:纪春南京医科大学合同管理系统xp如何关闭445端口Windows XP 怎么关闭445端口,我是电脑小白,求各位讲详细点canvas2动漫cv井口裕香,都有哪些作品?联通版iphone4s苹果4s是联通版,或移动版,或全网通如何知道?谷歌sbgoogle一下"SB",虽然显示的是baidu排第一,链接的不是baidu.谷歌sb在谷歌里搜SB为什么结果中第一个是百度
主机屋 wordpress主机 raksmart cpanel主机 免费ftp空间 有益网络 ca187 申请免费空间和域名 新睿云 登陆空间 上海电信测速网站 丽萨 主机管理系统 中国联通宽带测速 空间申请 电信主机托管 学生机 godaddyssl 最新优惠 reboot 更多