setup zend optimizer in linux centos

June 18th, 2009

今天,在我的项目模板的调试功能中集成了查看 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 最底部会新增参数:

[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

Continue reading »

Setup Avira AntiVir Personal for MSN

June 18th, 2009

我使用的 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=0

This 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%

    What I'm Doing...
    • 宿舍里面又新来了一位同事非标装配部的贾旭,至此在其他宿舍空着或只有两三人的情况下,我们宿舍再次达到满员6人,可能是因为我们宿舍本来就住的不同部门的人的原因吧,所以如果有新员工或其他原因的员工(包括我)都往此塞。 28 mins ago
    • 领导刚才正式给我布置了一个任务,用一周时间让我全力尝试破解公司加密系统,寻找漏洞,并随时汇报 8 hrs ago
    • 2010年8月19日,《检察日报》前记者谢朝平写了一部反映三门峡移民历史的书《大迁徙》,被陕西省渭南警方以涉嫌非法经营罪刑事拘留。 http://www.infzm.com/content/49610 9 hrs ago
    • 中国驻韩国大使馆领事部1日说,一艘中国渔船当天下午在韩国西部海域被一艘韩国货轮撞沉,船上船员全部失踪。 韩国佬是故意的。 9 hrs ago
    • 志愿服务活动招募通知:我们南城志愿服务中心组织大家参加“护文小卫士”——“牛皮癣”(街道乱张贴)大排查、大清洁活动,为我们美丽文明的南城贡献一份力量。活动时间:9月5日(星期日)早上9:00——11:00 9 hrs ago
    • 经常在食堂吃到啥海蜇丝之类的,我一直以为是粉丝的一种说法,没想到还真是动物组织的一部分,还不如给我吃粉丝。 1 day ago
    •  海蜇丝就是海蜇皮切成丝状,确切地说是沙蛰皮切的丝,一般是渔民用新鲜的沙蜇拖矾后切成丝,然后脱水加桶加盐。购买海蜇丝不是白的就好,海蜇丝一般来说白发黄的比较好吃,当然也要看脱水的时间。 1 day ago
    • More updates...

    Posting tweet...

    Creative Commons License

    Check Google Page Rank