setup zend optimizer in linux centos
今天,在我的项目模板的调试功能中集成了查看 phpinfo() 的文件,发现竟然没有安装 zend optimizer 插件。
zend optimizer 的作用:
主要有两个功能,一个为加速php脚本的执行,第二为给用zend加密的文件解密
所以一般来说,如果php的脚本没有经过加密,那么zend optimizer可以不用安装!
关于zend optimizer的加速功能,一般可以让php的执行速度提高到30%左右!
所以如果是独立主机用户,最好是将zend optimizer安装上,这样不仅可以起到加速的作用,而且可以使你的空间完全
我的安装指令:
wget http://mostproject.googlecode.com/files/ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz
tar zxvf ZendOptimizer*
cd ZendOptimizer*
./install.sh
注:安装程序会自动修改 /etc/php.ini 文件和重启apache,我所做的只是在安装的字符界面不停地点击回车确认。
安装完成后, php.ini 最底部会新增参数:
Filed under Live - Work and Struggle | Tags: apache, centos, linux, php, xcache, zend | Comment (0)[Zend]
zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
zend_optimizer.version=3.3.3
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
Setup Avira AntiVir Personal for MSN
我使用的 MSN 版本为 Window Live Messenger Version 2009 (Build 14.0.8064.206).
一般来说,MSN 在传输文件后会要求扫描病毒,但之前我只是简单的把 “C:\Program Files\Avira\AntiVir Desktop\avscan.exe” 加入到了 MSN 的 Tools/Options/File Transfer 中,实际上由于我不知道该如何设置扫描常数,导致这一反病毒功能形同虚设。
今天,在 Avira 官方论坛 上找到了解决方法:
You could do this by creating a configuration file and specify the following command in MSN Messenger:
“c:\Program Files\AntiVir PersonalEdition Classic\avscan.exe” /CFG=”c:\profile.txt” /PATH=%file%
Where c:\profile.txt would contain the following lines:
[CFG]
GuiMode=3
ExitMode=3[SEARCH]
Parameter=0×00000002
Parameter=0×00000020
Parameter=0×00000100
Parameter=0×00000400
Parameter=0×00010000
Parameter=0×00000080[SCANNER]
BootsektorStart=0
Memory=0
ScanRootkits=0This way avscan will only scan the running processes and the transferred file. No registry, no bootsectors, etc.
I hope this will work for you, but when I tested this MSN 7.5 stopped the transfer at “0 KB left” ?(
There is also another option: scan with the command-line scanner (avcmd.exe). But I think this wouldn’t be better because you always get a command prompt window and you need to press Enter to close it at the end of the scan.
You can specify an input file (for example, c:\input.txt that would contain only an Enter) so that you don’t need to press Enter to close the command prompt window. So the command will look like this:
“c:\Program Files\AntiVir PersonalEdition Classic\avcmd.exe” -allfiles -noboot -nombr -e < c:\input.txt
But this didn't work either on MSN Messenger 7.5, so I would still have to press Enter. Maybe my test machine wasn't in a good mood today
根据上述方法,我在的 msn 上的命令行参数设置如下:
“C:\Program Files\Avira\AntiVir Desktop\avscan.exe” /CFG=”D:\Backup\My Dropbox\My\MyPC\AntiVir\profile.txt” /PATH=%FILE%

