<?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>刘华栋的博客 &#187; linux</title>
	<atom:link href="http://www.liuhuadong.com/archives/tag/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.liuhuadong.com</link>
	<description>Thinking different</description>
	<lastBuildDate>Mon, 06 Feb 2012 09:14:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>linux下自动校准服务器时间</title>
		<link>http://www.liuhuadong.com/archives/297/index.html</link>
		<comments>http://www.liuhuadong.com/archives/297/index.html#comments</comments>
		<pubDate>Mon, 01 Dec 2008 14:00:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[ntp]]></category>
		<category><![CDATA[同步时间]]></category>

		<guid isPermaLink="false">http://www.liuhuadong.com/?p=297</guid>
		<description><![CDATA[服务器时间一直不准，只是没太注意，积累时间长了，才发现原来服务器时间与北京时间已经错了半个小时了。于是无论如何也要把这个问题搞定，查阅了相关资料，简单而完美解决。 在root下输入：crontab -e，在打开的窗口中输入以内容： 30 7 * * * /usr/sbin/ntpdate time.nist.gov > /dev/null 2>&#038;1 意思是每天的7点30分自动与ntp服务器同步，当然ntp服务器很多，可以自由选择。 2010.2.22更新：新发现教育网ntp服务器地址：time.edu.cn]]></description>
			<content:encoded><![CDATA[<p>服务器时间一直不准，只是没太注意，积累时间长了，才发现原来服务器时间与北京时间已经错了半个小时了。于是无论如何也要把这个问题搞定，查阅了相关资料，简单而完美解决。<br />
在root下输入：crontab -e，在打开的窗口中输入以内容：</p>
<blockquote><p>30 7 * * * /usr/sbin/ntpdate time.nist.gov > /dev/null 2>&#038;1</p></blockquote>
<p>意思是每天的7点30分自动与ntp服务器同步，当然ntp服务器很多，可以自由选择。</p>
<p>2010.2.22更新：新发现教育网ntp服务器地址：time.edu.cn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liuhuadong.com/archives/297/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下如何进行释放内存</title>
		<link>http://www.liuhuadong.com/archives/119/index.html</link>
		<comments>http://www.liuhuadong.com/archives/119/index.html#comments</comments>
		<pubDate>Sat, 23 Feb 2008 17:20:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[caches]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[PHP/Mysql]]></category>
		<category><![CDATA[内存释放]]></category>

		<guid isPermaLink="false">http://www.liuhuadong.com/archives/119/index.html</guid>
		<description><![CDATA[这一阵子对linux学习不少，因为遇到了不少的问题&#8212;-都是一个相对相互的过程。所以我在哪里好像写过一句话：我们无非是遇到些问题，然后解决它罢了。 通过对discuz的二次开发，渐渐领悟了不少mvc的思想，虽然有质的飞跃，但我肯定这只是开始，还有很多东西需要学习和探讨才能明白。打算开始漫长的zf之旅。谁再说php没有开发模式，那只是大部分php programer对开发模式的了解甚少罢了，毕竟平凡的占多数。 谈谈主题：linux下如何释放内存？ 这一段调试php程序总是见服务器内存占用98%左右，很少下降，心里就范迷惑，莫非内存太小不够用么，服务器可是4G内存啊，两个4核cpu怎么可能出现这么高的内存占用？后来查了一下，发现linux与win的内存方法使用相差很大。windows下内存是使用多少就拿来多少内存用；linux是先把内存尽可能占用，然后再重新分配给各个应用，分配完后剩下的内存用来存放各种缓存，例如grep这样的查询（我正迷惑前几天的大目录grep速度超快）就可以利用内存缓存大大提高系统文件交换速度。这样以来就豁然开朗了。完全不用担心内存被占用完。 如果你很无聊的想释放内存，可以使用这个命令： echo 1 &#62; /proc/sys/vm/drop_caches 对比下释放前后内存占用情况，很爽哦~。释放前最好使用下sync命令以防数据丢失。]]></description>
			<content:encoded><![CDATA[<p>这一阵子对linux学习不少，因为遇到了不少的问题&#8212;-都是一个相对相互的过程。所以我在哪里好像写过一句话：我们无非是遇到些问题，然后解决它罢了。</p>
<p>通过对discuz的二次开发，渐渐领悟了不少mvc的思想，虽然有质的飞跃，但我肯定这只是开始，还有很多东西需要学习和探讨才能明白。打算开始漫长的zf之旅。谁再说php没有开发模式，那只是大部分php programer对开发模式的了解甚少罢了，毕竟平凡的占多数。</p>
<p>谈谈主题：linux下如何释放内存？</p>
<p>这一段调试php程序总是见服务器内存占用98%左右，很少下降，心里就范迷惑，莫非内存太小不够用么，服务器可是4G内存啊，两个4核cpu怎么可能出现这么高的内存占用？后来查了一下，发现linux与win的内存方法使用相差很大。windows下内存是使用多少就拿来多少内存用；linux是先把内存尽可能占用，然后再重新分配给各个应用，分配完后剩下的内存用来存放各种缓存，例如grep这样的查询（我正迷惑前几天的大目录grep速度超快）就可以利用内存缓存大大提高系统文件交换速度。这样以来就豁然开朗了。完全不用担心内存被占用完。</p>
<p>如果你很无聊的想释放内存，可以使用这个命令：</p>
<p>echo 1 &gt; /proc/sys/vm/drop_caches</p>
<p>对比下释放前后内存占用情况，很爽哦~。释放前最好使用下sync命令以防数据丢失。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.liuhuadong.com/archives/119/index.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

