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

TmhHost暑假活动:高端线路VPS季付8折优惠,可选洛杉矶CN2 GIA/日本软银/香港三网CN2 GIA/韩国双向CN2等

tmhhost怎么样?tmhhost正在搞暑假大促销活动,全部是高端线路VPS,现在直接季付8折优惠,活动截止时间是8月31日。可选机房及线路有美国洛杉矶cn2 gia+200G高防、洛杉矶三网CN2 GIA、洛杉矶CERA机房CN2 GIA,日本软银(100M带宽)、香港BGP直连200M带宽、香港三网CN2 GIA、韩国双向CN2。点击进入:tmhhost官方网站地址tmhhost优惠码:Tm...

易探云香港vps主机价格多少钱?香港云服务器主机租用价格

易探云香港vps主机价格多少钱?香港vps主机租用费用大体上是由配置决定的,我们选择香港vps主机租用最大的优势是免备案vps。但是,每家服务商的机房、配置、定价也不同。我们以最基础配置为标准,综合比对各大香港vps主机供应商的价格,即可选到高性能、价格适中的香港vps主机。通常1核CPU、1G内存、2Mbps独享带宽,价格在30元-120元/月。不过,易探云香港vps主机推出四个机房的优惠活动,...

Boomer.host:$4.95/年-512MB/5GB/500GB/德克萨斯州(休斯顿)

部落曾经在去年分享过一次Boomer.host的信息,商家自述始于2018年,提供基于OpenVZ架构的VPS主机,配置不高价格较低。最近,主机商又在LET发了几款特价年付主机促销,最低每年仅4.95美元起,有独立IPv4+IPv6,开设在德克萨斯州休斯顿机房。下面列出几款VPS主机配置信息。CPU:1core内存:512MB硬盘:5G SSD流量:500GB/500Mbps架构:KVMIP/面板...

eaccelerator为你推荐
主机route三星iphone支持ipad支持ipadwindows键是哪个Windows键是哪个键啊?win7telnet怎样开启Windows7系统中的Telnet服务google图片搜索谁能教我怎么在手机用google的图片搜索啊!!!firefoxflash插件安装火狐浏览器后,老是提示安装flash player?联通合约机iphone5我想问下,我想入手iphone5的联通合约机, 会被坑吗联通合约机iphone5联通合约机iphone5能用移动卡吗
国内最好的虚拟主机 域名是什么 ip反查域名 wordpress主机 香港bgp机房 linode代购 sugarsync 宕机监控 双11抢红包攻略 云图标 国外免费空间 免费网络电视 网站被封 最好看的qq空间 52测评网 宁波服务器 gspeed 怎么测试下载速度 hkt raid10 更多