2010/06/08

Varnish Setup in Steps

配置与编译
./autogen.sh
./configure
make

测试
cd bin/varnishtest && ./varnishtest tests/*.vtc

安装
make install

启动
/data/varnish/sbin/varnishd -a 0.0.0.0:80 -s file,/data/vcache/varnish_cache.data,20g -f /data/varnish/etc/vcl.conf -p thread_pool_max=1500 -p thread_pools=8 -p listen_depth=512 -P /data/varnish/sbin/varnish.pid
重新载入
kill -HUP `cat /data/varnish/sbin/varnish.pid`

关闭
killall varnishd

--
Liu Lantao
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/ .

2010/06/02

Flex Hello-world example.

Flex开发与普通的页面开发之间,道理基本相通:
网页有html,Flex有mxml,并且都有相应的可视化设计工具(Dreamweaver和Flash Builder,有趣的是这两个工具现在都归Adobe公司);
网页开发有<script>标签,Flex开发有<mx:Script>标签;
网页开发的产物通过浏览器进行工作,Flex开发的产物通过flash插件工作;
网页开发中有ajax的模式,Flex开发使用了RPC调用。

reference: http://learn.adobe.com/wiki/display/Flex/2d.+Tutorial

--
Liu Lantao
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/ .