<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Farmer的博客</title>
	<atom:link href="http://www.it-farmer.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.it-farmer.com</link>
	<description>关于软件, 技术, 生活的点滴记录</description>
	<lastBuildDate>Mon, 01 Mar 2010 15:32:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>nginx如何添加子域名对应的网站?</title>
		<link>http://www.it-farmer.com/nginx-add-subdomain-website.html</link>
		<comments>http://www.it-farmer.com/nginx-add-subdomain-website.html#comments</comments>
		<pubDate>Mon, 01 Mar 2010 15:32:09 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[博客]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=470</guid>
		<description><![CDATA[假设有一个www.blah.com了, 想把子域名网站xxx.blah.com指向另外一个完全不同的服务器目录.
其实很简单,完全跟添加一个新的域名差不多,只需要把server_name设为该子域名,其余完全类似. 
Related Posts:小技巧: Linux上查找文件中包含的文字Powered by Contextual Related Posts]]></description>
		<wfw:commentRss>http://www.it-farmer.com/nginx-add-subdomain-website.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx + Django Setup</title>
		<link>http://www.it-farmer.com/nginx-django-setup.html</link>
		<comments>http://www.it-farmer.com/nginx-django-setup.html#comments</comments>
		<pubDate>Sun, 28 Feb 2010 10:03:18 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=468</guid>
		<description><![CDATA[Follow the below articles, it should be able to work:
http://wiki.nginx.org/NginxDjangoFastCGI
http://code.djangoproject.com/wiki/InitdScriptForLinux
http://stackoverflow.com/questions/605173/how-to-nginx-virtual-servers-fcgi-for-django
Notice fast CGI config in nginx:
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;

fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_SOFTWARE &#8220;nginx&#8221;;
fastcgi_param GATEWAY_INTERFACE &#8220;CGI/1.1&#8243;;
fastcgi_param UID_SET $uid_set;
fastcgi_param UID_GOT $uid_got;
Related [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/nginx-django-setup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>皮皮书屋</title>
		<link>http://www.it-farmer.com/%e7%9a%ae%e7%9a%ae%e4%b9%a6%e5%b1%8b.html</link>
		<comments>http://www.it-farmer.com/%e7%9a%ae%e7%9a%ae%e4%b9%a6%e5%b1%8b.html#comments</comments>
		<pubDate>Sat, 27 Feb 2010 06:32:09 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[皮皮书屋]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=454</guid>
		<description><![CDATA[http://www.ppurl.com/
不错的电子书网站，很有特色，注册用户的Captcha是一段程序，问你输出是什么。
#include 

int n[]={0&#215;48,                                                     [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/%e7%9a%ae%e7%9a%ae%e4%b9%a6%e5%b1%8b.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to remote logon to linux X Desktop</title>
		<link>http://www.it-farmer.com/how-to-remote-logon-to-linux-x-desktop.html</link>
		<comments>http://www.it-farmer.com/how-to-remote-logon-to-linux-x-desktop.html#comments</comments>
		<pubDate>Sat, 27 Feb 2010 01:06:20 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[freenx]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vnc]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=452</guid>
		<description><![CDATA[There are several options.  
1. VNC 
http://markus.revti.com/2009/08/installing-vnc-remote-desktop-on-ubuntu-linux-vps/
2. FreeNx
https://help.ubuntu.com/community/FreeNX

The second one is more secure because it is based on SSH.  
Related Posts:Run Ubuntu x86_64 under VMwareVista的奇怪问题Compile Praat on linuxWine 1.0 releasedUbuntu 8发布了Powered by Contextual Related Posts]]></description>
		<wfw:commentRss>http://www.it-farmer.com/how-to-remote-logon-to-linux-x-desktop.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to tell your linux OS is 32 bit or 64 bit?</title>
		<link>http://www.it-farmer.com/how-to-tell-your-linux-os-is-32-bit-or-64-bit.html</link>
		<comments>http://www.it-farmer.com/how-to-tell-your-linux-os-is-32-bit-or-64-bit.html#comments</comments>
		<pubDate>Fri, 26 Feb 2010 02:48:13 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[博客]]></category>
		<category><![CDATA[杂谈]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[uname]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=448</guid>
		<description><![CDATA[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
Related Posts:Firefox 3, GTK and [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/how-to-tell-your-linux-os-is-32-bit-or-64-bit.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>poor landing page quality?</title>
		<link>http://www.it-farmer.com/poor-landing-page-quality.html</link>
		<comments>http://www.it-farmer.com/poor-landing-page-quality.html#comments</comments>
		<pubDate>Wed, 24 Feb 2010 07:11:26 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[杂谈]]></category>
		<category><![CDATA[adwords]]></category>
		<category><![CDATA[landing page]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=443</guid>
		<description><![CDATA[If google adwords complains that your landing page quality is poor, your google ads may not be shown. 
But then how to debug and fix this? Unfortunately, google doesn&#8217;t provide a tool to help validate the fix.
They just provides some guidelines. 

Here are some resource I found online: 
http://www.adwordshelpexperts.com/2009/12/adwords-frequently-asked-questions-faq/#whydoihaveapoorlandingpagequalityscore
Related Posts:Firefox 3.0 Beta 5 打开Google Reader的问题google [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/poor-landing-page-quality.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howtos: 管理员如何登陆Debian Linux的GUI界面</title>
		<link>http://www.it-farmer.com/how-to-log-on-to-gui-of-debian-linux-as-root.html</link>
		<comments>http://www.it-farmer.com/how-to-log-on-to-gui-of-debian-linux-as-root.html#comments</comments>
		<pubDate>Tue, 23 Feb 2010 08:12:11 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[杂谈]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[root log on]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=422</guid>
		<description><![CDATA[方法有两种，一是图形界面方式设置，一是命令行设置：
A. 图形界面方式：
GNOME桌面下：打开“系统主菜单“，选择”系统＞系统管理＞登录窗口”，在弹出的窗口中点“安全”选项页，选择“允许本地管理员登录“，点确定即可。完成。

B. 命令行方式：（未测试过，不推荐新手用）
# grep &#8216;AllowRoot&#8217; /etc/kde3/kdm/kdmrc
AllowRootLogin=true
# grep &#8216;AllowRoot&#8217; /etc/gdm/gdm.conf
AllowRoot=true
Related Posts:如何优化mysql的内存占用小技巧: Linux上查找文件中包含的文字网上听音乐的好去处mysql的缺省配置文件cron job doesn&#8217;t runPowered by Contextual Related Posts]]></description>
		<wfw:commentRss>http://www.it-farmer.com/how-to-log-on-to-gui-of-debian-linux-as-root.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTos: 在Debian 5 (Lenny) 上编译firefox</title>
		<link>http://www.it-farmer.com/how-to-compile-firefox-or-iceweasel-on-debian-5-lenny.html</link>
		<comments>http://www.it-farmer.com/how-to-compile-firefox-or-iceweasel-on-debian-5-lenny.html#comments</comments>
		<pubDate>Mon, 22 Feb 2010 05:49:38 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[开源]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=415</guid>
		<description><![CDATA[刚安装了Debian 5,试一下编译Firefox. 有如下要点：(注意命令在root下执行）. 基本上参看官方指南，　https://developer.mozilla.org/en/Linux_Build_Prerequisites，　但也有些不同．
1. 安装编译工具

sudo apt-get install build-essential
2. 安装firefox的依赖库：
sudo apt-get install iceweasel
iceweasel是firefox在Debian的发布版．我运行sudo apt-get install firefox，会报找不到包的错误
sudo apt-get install libdbus-glib-1-dev curl
apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13
在编译中遇到个奇怪的错误 &#8220;Your compiler does not follow the C++ specification for temporary object destruction order.&#8221;
但删除configure重新生成后，错误消失了．我估计是autoconf的问题．　
Related Posts:Compile Praat on linuxBuild firefox 3 trunk on ubuntuUbuntu很不错Ubuntu：如何安装开发工具在Ubuntu 64下运行32位程序的方法Powered by Contextual Related Posts]]></description>
		<wfw:commentRss>http://www.it-farmer.com/how-to-compile-firefox-or-iceweasel-on-debian-5-lenny.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to create symbolic link on linux</title>
		<link>http://www.it-farmer.com/how-to-create-symbolic-link-on-linux.html</link>
		<comments>http://www.it-farmer.com/how-to-create-symbolic-link-on-linux.html#comments</comments>
		<pubDate>Sun, 21 Feb 2010 04:19:13 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[开源]]></category>
		<category><![CDATA[杂谈]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ln]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=412</guid>
		<description><![CDATA[Q. How do I create a soft link (symbolic link) under UNIX or Linux operating system?
A. To make links between files you need to use ln command. A symbolic link (also known as a soft link or symlink) consists of a special type of file that serves as a reference to another file or directory. [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/how-to-create-symbolic-link-on-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare虚拟磁盘映像</title>
		<link>http://www.it-farmer.com/vmware-virtual-disk-downloa.html</link>
		<comments>http://www.it-farmer.com/vmware-virtual-disk-downloa.html#comments</comments>
		<pubDate>Sat, 20 Feb 2010 01:57:39 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[杂谈]]></category>
		<category><![CDATA[vmdk]]></category>
		<category><![CDATA[Vmware]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=410</guid>
		<description><![CDATA[常玩虚拟机的人都知道安装一个虚拟机也是很费时间的事情. 网上也有一些热心人提供了安装好的VMWare磁盘映象可用下载.
1. Windows98, Me, Windows XP, Windows 2003的磁盘映像：

http://www.verycd.com/topics/191003/
2. Mac OS Leopard
http://www.verycd.com/topics/2746139/
Related Posts:How to run OpenVPN client on Windows 7 x64Vista的奇怪问题Firefox Build on x64 linux and windows开源的虚拟机软件VirtualBoxWindows Workflow Foundation学习笔记 (1)Powered by Contextual Related Posts]]></description>
		<wfw:commentRss>http://www.it-farmer.com/vmware-virtual-disk-downloa.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install a new disk on Solaris</title>
		<link>http://www.it-farmer.com/how-to-install-a-new-disk-on-solaris.html</link>
		<comments>http://www.it-farmer.com/how-to-install-a-new-disk-on-solaris.html#comments</comments>
		<pubDate>Fri, 19 Feb 2010 03:22:46 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=446</guid>
		<description><![CDATA[Just a bookmark: 
http://blogs.sun.com/harcey/entry/solaris_x86_vmware_adding_a
1. Add a VMware Disk to a Solaris image
    * Shut down the VM
    * Edit the VMware configuration: Select Virtual Machines -> Settings
    * Add a new hard disk device
    * start the Solaris image 

2.  After boot, [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/how-to-install-a-new-disk-on-solaris.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nginx, 很不错的Web服务器</title>
		<link>http://www.it-farmer.com/nginx-very-nice-lightweight-web-server.html</link>
		<comments>http://www.it-farmer.com/nginx-very-nice-lightweight-web-server.html#comments</comments>
		<pubDate>Fri, 19 Feb 2010 01:31:46 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[开源]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=406</guid>
		<description><![CDATA[nginx（发音同 engine x）是一款俄罗斯的程式设计师Igor Sysoev所开发轻量级的网页服务器、反向代理服务器以及电子邮件（IMAP/POP3）代理服务器，并在BSD-like协议下发行，可以在UNIX, GNU/Linux, BSD, Mac OS X, Solaris, 以及 Microsoft Windows等操作系统中运行。
nginx相较于Apache,lighttpd具有占有内存少，稳定性高等优势，并且依靠并发能力强，丰富的模块库以及友好灵活的配置而闻名。

目前中国大陆使用nginx网站用户有：新浪、网易、腾讯
安装教程可以参见http://library.linode.com/web-servers/nginx/
本人使用发现,确实该软件占用内存比Apache要好得多. Apache运行中会创建很多进程,而nginx的进程数是固定可配置的.
ngnix在网站配置上和Apache类似. 这里提一下Wordpresss的配置问题. 往往wordpress网站会使用Permanent Link，而该功能是需要Apache rewrite模块支持的．对于nginx，也需要设置对应的rewrite规则．
其实设置也很简单，只需要在网站配置文件中加入如下规则，wordpress的permanent link便可以工作了．
        index  index.html index.htm index.php;
        if (!-f $request_filename){
           rewrite (.*) /index.php;
        }
Related Posts:Nginx + Django SetupHow to create symbolic link on linuxonyx电子书，适合中国国情的电子书　Linux上安装OpenVPN几个主机概念Powered by Contextual Related Posts]]></description>
		<wfw:commentRss>http://www.it-farmer.com/nginx-very-nice-lightweight-web-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress Cache Plugin Performance</title>
		<link>http://www.it-farmer.com/wordpress-cache-plugin-performance.html</link>
		<comments>http://www.it-farmer.com/wordpress-cache-plugin-performance.html#comments</comments>
		<pubDate>Wed, 17 Feb 2010 00:45:24 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[博客]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=401</guid>
		<description><![CDATA[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 [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/wordpress-cache-plugin-performance.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source Project: Debian</title>
		<link>http://www.it-farmer.com/open-source-project-debian.html</link>
		<comments>http://www.it-farmer.com/open-source-project-debian.html#comments</comments>
		<pubDate>Tue, 16 Feb 2010 08:26:41 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[开源]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=430</guid>
		<description><![CDATA[Debian，是一种自由操作系统，全称Debian GNU/Linux，采用Linux作为内核，由Debian计划（Debian Project）组织维护。Debian是一个纯粹由自由软件所组合而成的作业环境，而其背后并没有任何的营利组织支持，它的开发团队全部来自世界各地的志愿者，官方开发者的总数就将近1000名，而非官方的开发者亦为数众多。
Debian以其坚守Unix和自由软件的精神，以及其给予用家的众多选择（现时Debian包括了超过25,000个软件包并支持12个计算机系统结构）而闻名。其他众多Linux发行版，例如Ubuntu、Knoppix和Linspire及Xandros都建基于Debian。

版本 代号 发布日期 玩具总动员的对应角色 脚注
1.1 Buzz 1996年6月17日 巴斯光年，电影主角之一的太空人 使用Linux内核2.0
1.2 Rex 1996年12月12日 抱抱龙  
1.3 Bo 1997年6月2日 放羊的女孩“宝贝”  
2.0 Hamm 1998年7月24日 小猪储蓄罐“火腿”  
2.1 Slink 1999年3月9日 弹簧狗 APT面世
2.2 Potato 2000年8月15日 蛋头先生  
3.0 Woody 2002年7月19日 胡迪，电影主角之一的牛仔  
3.1 Sarge 2005年6月6日 绿色塑胶玩具士兵的首领“队长”  
4.0 Etch 2007年4月8日 画板 上一个稳定版本
5.0 Lenny 2009年2月14日 望远镜 目前的稳定版本
6.0 Squeeze 2010年春季 三只眼的外星人 目前的测试版本
  Sid TBA 阿薛/席德，隔壁的男孩，玩具终结者 Sid也是英语Still In Development（仍在开发）的缩写
Related Posts:门头沟妙峰山用VS2008制作安装程序门头沟戒台寺我的Inspiron 1520小技巧：Ubuntu访问Vista的共享目录Powered by Contextual [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/open-source-project-debian.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to make openvpn run at system startup</title>
		<link>http://www.it-farmer.com/make-openvpn-run-at-startup.html</link>
		<comments>http://www.it-farmer.com/make-openvpn-run-at-startup.html#comments</comments>
		<pubDate>Tue, 16 Feb 2010 02:42:12 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[开源]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[杂谈]]></category>
		<category><![CDATA[openvpn]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=397</guid>
		<description><![CDATA[Recently I met a small problem about openvpn. It cannot start automatically on Ubuntu server.
But it can be manually launched with /etc/init.d/openvpn start
After some digging, here is the trick to make openvpn can run automatically:

1. delete the openvpn symbol link in /etc/rc2.d, rc3.d,&#8230;
2. ln -s /etc/init.d/openvpn /etc/rc2.d/S99openvpn
bascailly this makes openvpn run at last when booting [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/make-openvpn-run-at-startup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>常用Linux命令</title>
		<link>http://www.it-farmer.com/%e5%b8%b8%e7%94%a8linux%e5%91%bd%e4%bb%a4.html</link>
		<comments>http://www.it-farmer.com/%e5%b8%b8%e7%94%a8linux%e5%91%bd%e4%bb%a4.html#comments</comments>
		<pubDate>Mon, 15 Feb 2010 01:46:48 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=393</guid>
		<description><![CDATA[*检查当前进程
top    用M可以按占用内存排序
*检查free内存
free -m
*配置服务
chkconfig  适用于Redhat
update-rc.d 适用Unbuntu
*设置清空文件缓存 (Linux下文件缓存page cache可能吃掉你很多的RAM)
sync; echo 3 &#62; /proc/sys/vm/drop_caches
Related Posts:CVS学习笔记(1)优化Apache的内存使用如何优化mysql的内存占用批处理一个目录的文件Anti Notepad++？Powered by Contextual Related Posts]]></description>
		<wfw:commentRss>http://www.it-farmer.com/%e5%b8%b8%e7%94%a8linux%e5%91%bd%e4%bb%a4.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips：屏幕反转了，怎么办？</title>
		<link>http://www.it-farmer.com/tips%ef%bc%9a%e5%b1%8f%e5%b9%95%e5%8f%8d%e8%bd%ac%e4%ba%86%ef%bc%8c%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f.html</link>
		<comments>http://www.it-farmer.com/tips%ef%bc%9a%e5%b1%8f%e5%b9%95%e5%8f%8d%e8%bd%ac%e4%ba%86%ef%bc%8c%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f.html#comments</comments>
		<pubDate>Mon, 15 Feb 2010 01:00:38 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[杂谈]]></category>
		<category><![CDATA[invert]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[shortcut]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=403</guid>
		<description><![CDATA[今天用电脑的时候，不知道按了什么键，屏幕上下颠倒，反转了。
我估计是不小心出发了系统的反转功能， 但是不知道如何恢复。在网上搜索后，才知道这个快捷键是Ctrl+Alt+Up/Down Arrow。
这个功能可能再看一些上下颠倒的图片时有用，赫赫
Related Posts:Wordpress的安全TipZT: When and How to Use Dispose and Finalize in C#0day介绍Powered by Contextual Related Posts]]></description>
		<wfw:commentRss>http://www.it-farmer.com/tips%ef%bc%9a%e5%b1%8f%e5%b9%95%e5%8f%8d%e8%bd%ac%e4%ba%86%ef%bc%8c%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>优化Apache的内存使用</title>
		<link>http://www.it-farmer.com/%e4%bc%98%e5%8c%96apache%e7%9a%84%e5%86%85%e5%ad%98%e4%bd%bf%e7%94%a8.html</link>
		<comments>http://www.it-farmer.com/%e4%bc%98%e5%8c%96apache%e7%9a%84%e5%86%85%e5%ad%98%e4%bd%bf%e7%94%a8.html#comments</comments>
		<pubDate>Sun, 14 Feb 2010 10:32:06 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[开源]]></category>
		<category><![CDATA[技术]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=387</guid>
		<description><![CDATA[Apache也是一个内存老虎, 在我的Ubuntu上,每个进程占用60M左右的内存.  如果服务器内存比较小, 就需要对Apache的进程数作一些控制.  比如说在一个400M内存的机器上,比较有价值的参数如下:　
KeepAliveTimeout 1

StartServers 1
MinSpareServers 1
MaxSpareServers 5
MaxClients 20
MaxRequestsPerChild 20
这里面的原理有如下解释：
Reduce wasted processes by tweaking KeepAlive
This is a tradeoff. KeepAliveTimeout is the amount of time a process sits around doing nothing but taking up space. Those seconds add up in a HUGE way. But using KeepAlive can increase speed for both you and the client [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/%e4%bc%98%e5%8c%96apache%e7%9a%84%e5%86%85%e5%ad%98%e4%bd%bf%e7%94%a8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何优化mysql的内存占用</title>
		<link>http://www.it-farmer.com/%e5%a6%82%e4%bd%95%e4%bc%98%e5%8c%96mysql%e7%9a%84%e5%86%85%e5%ad%98%e5%8d%a0%e7%94%a8.html</link>
		<comments>http://www.it-farmer.com/%e5%a6%82%e4%bd%95%e4%bc%98%e5%8c%96mysql%e7%9a%84%e5%86%85%e5%ad%98%e5%8d%a0%e7%94%a8.html#comments</comments>
		<pubDate>Sat, 13 Feb 2010 10:10:36 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=385</guid>
		<description><![CDATA[如果你的服务器内存很小, 运行mysql怎么配置可以优化其内存使用呢？　根据我的经验，mysql在内存不足时极容易Hang或者死掉，因此内存配置十分重要．
通常可以做如下配置：（编辑/etc/mysql/my.cnf）

把mysqld下的参数作如下设置：
key_buffer = 16K
max_allowed_packet = 1M
thread_stack = 64K
table_cache = 4
sort_buffer = 64K
net_buffer_length = 2K
不要用Inno数据引擎,因为它很耗内存. mysql自带的myiasm就很不错.
skip-innodb = 1
如果你的数据表已经是inno格式的,可以考虑转换引擎. 以下代码可以参考:　
#!/bin/bash
MYSQLCMD=mysql
for db in `echo show databases &#124; $MYSQLCMD &#124; grep -v Database`; do
        for table in `echo show tables &#124; $MYSQLCMD $db &#124; grep -v Tables_in_`; do
                TABLE_TYPE=`echo show create table $table &#124; $MYSQLCMD $db &#124; sed -e&#8217;s/.*ENGINE=\([[:alnum:]\]\+\)[[:space:]].*/\1/&#8217;&#124;grep [...]]]></description>
		<wfw:commentRss>http://www.it-farmer.com/%e5%a6%82%e4%bd%95%e4%bc%98%e5%8c%96mysql%e7%9a%84%e5%86%85%e5%ad%98%e5%8d%a0%e7%94%a8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我喝过的红酒</title>
		<link>http://www.it-farmer.com/%e6%88%91%e5%96%9d%e8%bf%87%e7%9a%84%e7%ba%a2%e9%85%92.html</link>
		<comments>http://www.it-farmer.com/%e6%88%91%e5%96%9d%e8%bf%87%e7%9a%84%e7%ba%a2%e9%85%92.html#comments</comments>
		<pubDate>Fri, 12 Feb 2010 15:51:42 +0000</pubDate>
		<dc:creator>ITFramer</dc:creator>
				<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://www.it-farmer.com/?p=382</guid>
		<description><![CDATA[此帖记录本人喝过的红酒，希望能够用来培养品酒的能力和经验。：）
国产：
张裕

长城干红赤霞珠
龙徽博物馆馆藏5年 (Dragon Seal)
进口：
杰卡斯 (Jacob&#8217;s Creek)  2007,  Australia
托雷斯干红 (Chevalier des Tuileries)  2008, France
澳罗　戴蒙督赤霞珠 (Oro del mundo) 2008, Chile
舒特家族赤霞珠 (Sutter Home) 2005, U.S.A.
Related Posts:行车教训：汽车底盘与树枝的磨擦CentOS简介博客赚钱高手网络流量分析也是一个行业了Hyper-VPowered by Contextual Related Posts]]></description>
		<wfw:commentRss>http://www.it-farmer.com/%e6%88%91%e5%96%9d%e8%bf%87%e7%9a%84%e7%ba%a2%e9%85%92.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
