Archive for the '博客' Category

nginx如何添加子域名对应的网站?

Monday, March 1st, 2010

假设有一个www.blah.com了, 想把子域名网站xxx.blah.com指向另外一个完全不同的服务器目录.
其实很简单,完全跟添加一个新的域名差不多,只需要把server_name设为该子域名,其余完全类似.

How to tell your linux OS is 32 bit or 64 bit?

Friday, February 26th, 2010

uname is the command you need. It can also tell kernel version. If you used to compile VMWare tools, it needs to find the kernel headers that matches the kernel version.
The sampe output of uname is below:
Linux MachineName 2.6.22-14-generic #1 SMP Tue Feb 12 02:46:46 UTC 2008 x86_64 GNU/Linux

Wordpress Cache Plugin Performance

Wednesday, February 17th, 2010

Wordpress is known to be slow in performance. But a lot of people still like to use it because it has flexible design with a lot of plugins. To tackle the performance problem, people have created several cache plugins to turn the dynamic pages into static one so that it can boost the performance.  Some [...]

如何优化mysql的内存占用

Saturday, February 13th, 2010

如果你的服务器内存很小, 运行mysql怎么配置可以优化其内存使用呢? 根据我的经验,mysql在内存不足时极容易Hang或者死掉,因此内存配置十分重要.
通常可以做如下配置:(编辑/etc/mysql/my.cnf)

我喝过的红酒

Friday, February 12th, 2010

此帖记录本人喝过的红酒,希望能够用来培养品酒的能力和经验。:)
国产:
张裕

how to back up email accounts for outlook 2007

Wednesday, February 10th, 2010

非常遗憾, outlook 2007没有提供一个备份Email Accounts的方法。如果你有很多个Email帐户,想把帐户移动到一个新安装的机器上,手工添加是十分麻烦的。
outlook2007备份:

How to run OpenVPN client on Windows 7 x64

Monday, February 8th, 2010

OpenVpn can run on windows 7 64 bit as following step:
1. Run as admin
2. Install version after 2.1
Get release from here http://www.openvpn.net/release

onyx电子书,适合中国国情的电子书 

Sunday, February 7th, 2010

2009年似乎是电子书方兴未艾的一年,国外有Kindle,国内有汉王。我一直有想买个电子书的想法,这样便不用在发愁大摞的书本无处堆放了。在进行一番网络搜索之后,决定购买onyx电子书。
这个产品是广州的一家公司出的,其优点是支持的格式比较多,看PDF比较方便。对于扫描的PDF,可以用它的卷轴模式,横版阅读,虽然字还是有点小,但还算可以。

Test Twitter

Sunday, October 11th, 2009

Does it work?

人生如滚雪球。最重要之事是发现湿雪和长长的山坡

Monday, October 5th, 2009

Technorati 标签: 阅读,好书