<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.1" -->
<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/"
	>

<channel>
	<title>流年飘飘</title>
	<link>http://www.askhua.com</link>
	<description>askhua 的个人Blog</description>
	<pubDate>Sun, 24 Feb 2008 01:13:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<item>
		<title>订阅部分</title>
		<link>http://www.askhua.com/html/y2008/23.html</link>
		<comments>http://www.askhua.com/html/y2008/23.html#comments</comments>
		<pubDate>Sun, 24 Feb 2008 01:12:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Memo||备忘录]]></category>

		<guid isPermaLink="false">http://www.askhua.com/html/y2008/23.html</guid>
		<description><![CDATA[/*

&#160;&#160;
&#160;&#160;&#60;li&#62;&#60;h2&#62;订阅&#60;/h2&#62;
&#160;&#160;&#160;
&#160;&#160;&#160;&#160; 
&#160;&#160;&#160;&#160; &#60;!&#8211; Feedsky FEED发布代码开始 &#8211;&#62;
&#60;!&#8211; FEED自动发现标记开始 &#8211;&#62;
&#60;link title=&#34;RSS 2.0&#34; type=&#34;application/rss+xml&#34; href=&#34;http://feed.feedsky.com/askhua&#34; rel=&#34;alternate&#34; /&#62;
&#60;!&#8211; FEED自动发现标记结束 &#8211;&#62;
&#60;script language=&#34;javascript&#34;&#62;&#60;!&#8211; 
main_sub=&#34;c1s15d&#34;;
more_subs=&#34;zhuaxia_01,google_01,yahoo_01,xianguo_01&#34;;
is_new=&#34;no&#34;;
&#8211;&#62; &#60;/script&#62;
&#60;script language=&#34;javascript&#34; src=&#34;http://www.feedsky.com/jsout/publishlist_v2.js?burl=askhua&#38;out_html=true&#34;&#62;&#60;/script&#62;
&#60;!&#8211; Feedsky FEED发布代码结束 &#8211;&#62;
&#160;&#160;&#160;&#160; 
&#160;&#60;/li&#62;
&#60;li&#62;&#160; &#160;
&#160;
*/
/*
&#60;li&#62;&#60;h2&#62;最近阅读网友&#60;/h2&#62;
&#60;script type=&#34;text/javascript&#34; src=&#34;http://pub.mybloglog.com/comm2.php?mblID=2007102100051260&#38;amp;c_width=180&#38;amp;c_sn_opt=n&#38;amp;c_rows=4&#38;amp;c_img_size=f&#38;amp;c_heading_text=MyBlogReaders&#38;amp;c_color_heading_bg=e5ecf9&#38;amp;c_color_heading=0082FF&#38;amp;c_color_link_bg=E3E3E3&#38;amp;c_color_link=005A94&#38;amp;c_color_bottom_bg=ffffff&#34;&#62;&#60;/script&#62;&#60;/li&#62;
&#60;li&#62;&#160;
*/
&#160;
其他文章2008-01-29 -- CentOs5下MRTG安装配置 (0)2007-12-26 -- 余世维的如何提升执行力ppt讲稿 (0)2007-12-24 -- 今天是平安夜，祝愿我的朋友一生平安 (0)2008-01-25 -- yum的非官方库 (0)2008-01-14 -- linux下tar参数exclude问题 (0)2007-12-30 -- 看今天晚上的国际辩论赛有感 (0)]]></description>
			<content:encoded><![CDATA[<p>/*</p>
<p>
&nbsp;&nbsp;<br />
&nbsp;&nbsp;&lt;li&gt;&lt;h2&gt;订阅&lt;/h2&gt;<br />
&nbsp;&nbsp;&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp; &lt;!&#8211; Feedsky FEED发布代码开始 &#8211;&gt;<br />
&lt;!&#8211; FEED自动发现标记开始 &#8211;&gt;<br />
&lt;link title=&quot;RSS 2.0&quot; type=&quot;application/rss+xml&quot; href=&quot;<a href="http://feed.feedsky.com/askhua">http://feed.feedsky.com/askhua</a>&quot; rel=&quot;alternate&quot; /&gt;<br />
&lt;!&#8211; FEED自动发现标记结束 &#8211;&gt;<br />
&lt;script language=&quot;javascript&quot;&gt;&lt;!&#8211; <br />
main_sub=&quot;c1s15d&quot;;<br />
more_subs=&quot;zhuaxia_01,google_01,yahoo_01,xianguo_01&quot;;<br />
is_new=&quot;no&quot;;<br />
&#8211;&gt; &lt;/script&gt;<br />
&lt;script language=&quot;javascript&quot; src=&quot;<a href="http://www.feedsky.com/jsout/publishlist_v2.js?burl=askhua&amp;out_html=true&quot;&gt;&lt;/script">http://www.feedsky.com/jsout/publishlist_v2.js?burl=askhua&amp;out_html=true&quot;&gt;&lt;/script</a>&gt;<br />
&lt;!&#8211; Feedsky FEED发布代码结束 &#8211;&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp; <br />
&nbsp;&lt;/li&gt;<br />
&lt;li&gt;&nbsp; &nbsp;<br />
&nbsp;<br />
*/</p>
<p>/*<br />
&lt;li&gt;&lt;h2&gt;最近阅读网友&lt;/h2&gt;</p>
<p>&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://pub.mybloglog.com/comm2.php?mblID=2007102100051260&amp;amp;c_width=180&amp;amp;c_sn_opt=n&amp;amp;c_rows=4&amp;amp;c_img_size=f&amp;amp;c_heading_text=MyBlogReaders&amp;amp;c_color_heading_bg=e5ecf9&amp;amp;c_color_heading=0082FF&amp;amp;c_color_link_bg=E3E3E3&amp;amp;c_color_link=005A94&amp;amp;c_color_bottom_bg=ffffff&quot;&gt;&lt;/script&gt;&lt;/li">http://pub.mybloglog.com/comm2.php?mblID=2007102100051260&amp;amp;c_width=180&amp;amp;c_sn_opt=n&amp;amp;c_rows=4&amp;amp;c_img_size=f&amp;amp;c_heading_text=MyBlogReaders&amp;amp;c_color_heading_bg=e5ecf9&amp;amp;c_color_heading=0082FF&amp;amp;c_color_link_bg=E3E3E3&amp;amp;c_color_link=005A94&amp;amp;c_color_bottom_bg=ffffff&quot;&gt;&lt;/script&gt;&lt;/li</a>&gt;</p>
<p>&lt;li&gt;&nbsp;</p>
<p>*/<br />
&nbsp;</p>
<h3>其他文章</h3><ul class="related_post"><li>2008-01-25 -- <a href="http://www.askhua.com/html/y2008/21.html" title="yum的非官方库">yum的非官方库 (0)</a></li><li>2008-01-29 -- <a href="http://www.askhua.com/html/y2008/22.html" title="CentOs5下MRTG安装配置">CentOs5下MRTG安装配置 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/3.html" title="今天是平安夜，祝愿我的朋友一生平安">今天是平安夜，祝愿我的朋友一生平安 (0)</a></li><li>2007-12-30 -- <a href="http://www.askhua.com/html/y2007/17.html" title="看今天晚上的国际辩论赛有感">看今天晚上的国际辩论赛有感 (0)</a></li><li>2007-12-26 -- <a href="http://www.askhua.com/html/y2007/13.html" title="余世维的如何提升执行力ppt讲稿">余世维的如何提升执行力ppt讲稿 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/4.html" title="没有一步登天 没有功德圆满">没有一步登天 没有功德圆满 (4)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2008/23.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>CentOs5下MRTG安装配置</title>
		<link>http://www.askhua.com/html/y2008/22.html</link>
		<comments>http://www.askhua.com/html/y2008/22.html#comments</comments>
		<pubDate>Tue, 29 Jan 2008 09:01:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux||Unix]]></category>

		<category><![CDATA[centos，mrtg]]></category>

		<guid isPermaLink="false">http://www.askhua.com/html/y2008/22.html</guid>
		<description><![CDATA[centos5的安装以及apache , gd ,zlib,freetype,libpng,libxml等的安装可以参考其他文章
下载mrtg包
#wget -c http://oss.oetiker.ch/mrtg/pub/mrtg-2.15.2.tar.gz
#tar -zxvf mrtg-2.15.2.tar.gz
#cd mrtg-2.15.2
#./configure &#8211;prefix=/usr/local/mrtg &#8211;with-gd=/usr/local/gd2/ &#8211;with-gd-lib=/usr/local/gd2/lib/ &#8211;with-gd-inc=/usr/local/gd2/include/ &#8211;with-z=/usr/local/zlib/ &#8211;with-z-lib=/usr/local/zlib/lib/ &#8211;with-z-inc=/usr/local/zlib/include/ &#8211;with-png=/usr/local/lib
#make &#38;&#38; make install
安装snmp
#yum -y install net-snmp*
#vi /etc/snmp/snmpd.conf
将
#view systemview included mib2
修改为：
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
access notConfigGroup &#34;&#34; any noauth exact systemview none none
修改为：
access notConfigGroup &#34;&#34; any noauth exact mib2 none none
保存,重起snmpd
&#160;
#/usr/local/mrtg/cfgmaker public@localhost &#62; /etc/mrtg/mrtg.cfg
&#160;
mrtg.cfg配置文件生成后,会默认包含本机所有网卡的监控信息,如不需要可以删除
vi /etc/mrtg.cfg
将
# for UNIX
# WorkDir: /home/http/mrtg
修改为
# [...]]]></description>
			<content:encoded><![CDATA[<p>centos5的安装以及apache , gd ,zlib,freetype,libpng,libxml等的安装可以参考其他文章</p>
<p>下载mrtg包</p>
<p><span style="color: #800000">#wget -c </span><a href="http://oss.oetiker.ch/mrtg/pub/mrtg-2.15.2.tar.gz"><span style="color: #800000">http://oss.oetiker.ch/mrtg/pub/mrtg-2.15.2.tar.gz</span></a></p>
<p><span style="color: #800000">#tar -zxvf mrtg-2.15.2.tar.gz</span></p>
<p><span style="color: #800000">#cd mrtg-2.15.2</span></p>
<p><span style="color: #800000">#./configure &#8211;prefix=/usr/local/mrtg &#8211;with-gd=/usr/local/gd2/ &#8211;with-gd-lib=/usr/local/gd2/lib/ &#8211;with-gd-inc=/usr/local/gd2/include/ &#8211;with-z=/usr/local/zlib/ &#8211;with-z-lib=/usr/local/zlib/lib/ &#8211;with-z-inc=/usr/local/zlib/include/ &#8211;with-png=/usr/local/lib</span></p>
<p><span style="color: #800000">#make &amp;&amp; make install</span></p>
<p>安装snmp</p>
<p>#yum -y install net-snmp*</p>
<p>#vi /etc/snmp/snmpd.conf</p>
<p>将<br />
#view systemview included mib2<br />
修改为：<br />
<span style="color: #800000">view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc</span></p>
<p><span style="color: #800000">access notConfigGroup &quot;&quot; any noauth exact systemview none none</span><br />
修改为：<br />
<span style="color: #800000">access notConfigGroup &quot;&quot; any noauth exact mib2 none none</span><br />
保存,重起snmpd</p>
<p>&nbsp;</p>
<p><span style="color: #800000">#/usr/local/mrtg/cfgmaker </span><a href="mailto:public@localhost"><span style="color: #800000">public@localhost</span></a><span style="color: #800000"> &gt; /etc/mrtg/mrtg.cfg</span></p>
<p>&nbsp;</p>
<p>mrtg.cfg配置文件生成后,会默认包含本机所有网卡的监控信息,如不需要可以删除</p>
<p>vi /etc/mrtg.cfg<br />
将<br />
# for UNIX<br />
# WorkDir: /home/http/mrtg<br />
修改为<br />
# for UNIX<br />
WorkDir: /var/www/mrtg<br />
此处为我们的mrtg主目录</p>
<p>加入<br />
Language: gb2312</p>
<p>Language:<font color="#333333">chinese</font><br />
指定页面显示语言为中文</p>
<p>&nbsp;</p>
<p>制作首页<br />
&nbsp;</p>
<p><span style="color: #800000">#/usr/local/mrtg/bin/indexmaker /etc/mrtg/mrtg.cfg &#8211;output=/web/data/mrtg/index.html&nbsp; &#8211;title=&quot;My MRTG&quot;</span></p>
<p>启动MRTG<br />
<span style="color: #800000">#env LANG=C /usr/local/mrtg/bin/mrtg /etc/mrtg/mrtg.cfg</span></p>
<p>执行三次，没有报错为止</p>
<p>#crontab -e <br />
添加如下一行<br />
<span style="color: #800000">*/3 * * * * env LANG=C /usr/local/mrtg/bin/mrtg /etc/mrtg/mrtg.cfg</span></p>
<p>安装完毕</p>
<p>&nbsp;</p>
<h3>其他文章</h3><ul class="related_post"><li>2007-12-25 -- <a href="http://www.askhua.com/html/y2007/6.html" title="在wordpress安装gravatar2插件">在wordpress安装gravatar2插件 (1)</a></li><li>2008-01-11 -- <a href="http://www.askhua.com/html/y2008/18.html" title="任何事一直坚持做下去都是不容易的事情">任何事一直坚持做下去都是不容易的事情 (0)</a></li><li>2007-12-28 -- <a href="http://www.askhua.com/html/y2007/14.html" title="也许是真的觉得疲惫了">也许是真的觉得疲惫了 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/4.html" title="没有一步登天 没有功德圆满">没有一步登天 没有功德圆满 (4)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/5.html" title="mysql同步复制master master模式">mysql同步复制master master模式 (0)</a></li><li>2008-01-14 -- <a href="http://www.askhua.com/html/y2008/19.html" title="linux下tar参数exclude问题">linux下tar参数exclude问题 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2008/22.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>yum的非官方库</title>
		<link>http://www.askhua.com/html/y2008/21.html</link>
		<comments>http://www.askhua.com/html/y2008/21.html#comments</comments>
		<pubDate>Fri, 25 Jan 2008 02:51:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux||Unix]]></category>

		<category><![CDATA[YUM]]></category>

		<guid isPermaLink="false">http://www.askhua.com/html/y2008/21.html</guid>
		<description><![CDATA[&#160;这里面有非常多的第三方linux软件包
[root@sam ~]# vi /etc/yum.repos.d/dag.repo　 
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

[root@sam ~]# rpm &#8211;import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt　 
－－EOF－－
其他文章2007-12-24 -- mysql同步复制master master模式 (0)2007-12-26 -- 余世维的如何提升执行力ppt讲稿 (0)2008-01-25 -- linux系统出现错误时root邮件的转送 (0)2007-12-25 -- 在wordpress安装gravatar2插件 (1)2007-12-28 -- 也许是真的觉得疲惫了 (0)2007-12-24 -- 没有一步登天 没有功德圆满 (4)]]></description>
			<content:encoded><![CDATA[<p>&nbsp;这里面有非常多的第三方linux软件包</p>
<p><span style="color: #0000ff"><span class="message">[root@sam ~]#</span> <span class="command">vi /etc/yum.repos.d/dag.repo</span>　 <br />
<span class="conffile">[dag]<br />
name=Dag RPM Repository for Red Hat Enterprise Linux<br />
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag<br />
gpgcheck=1<br />
enabled=1<br />
</span><br />
<span class="message">[root@sam ~]#</span> <span>rpm &#8211;import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt　 </span></span></p>
<p>－－EOF－－</p>
<h3>其他文章</h3><ul class="related_post"><li>2008-01-25 -- <a href="http://www.askhua.com/html/y2008/20.html" title="linux系统出现错误时root邮件的转送">linux系统出现错误时root邮件的转送 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/5.html" title="mysql同步复制master master模式">mysql同步复制master master模式 (0)</a></li><li>2007-12-28 -- <a href="http://www.askhua.com/html/y2007/14.html" title="也许是真的觉得疲惫了">也许是真的觉得疲惫了 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/3.html" title="今天是平安夜，祝愿我的朋友一生平安">今天是平安夜，祝愿我的朋友一生平安 (0)</a></li><li>2007-12-26 -- <a href="http://www.askhua.com/html/y2007/13.html" title="余世维的如何提升执行力ppt讲稿">余世维的如何提升执行力ppt讲稿 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/4.html" title="没有一步登天 没有功德圆满">没有一步登天 没有功德圆满 (4)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2008/21.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>linux系统出现错误时root邮件的转送</title>
		<link>http://www.askhua.com/html/y2008/20.html</link>
		<comments>http://www.askhua.com/html/y2008/20.html#comments</comments>
		<pubDate>Fri, 25 Jan 2008 02:32:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux||Unix]]></category>

		<guid isPermaLink="false">http://www.askhua.com/html/y2008/20.html</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160; 在系统出现错误或有重要通知发送邮件给root的时候，可以让系统自动转送到我们通常使用的邮箱中，这样方便查阅相关报告和日志，以便做出及时处理
[root@sam ~]# vi /etc/aliases 　
root:&#160;&#160;&#160;yourname ◎yourserver.com&#160;&#160; //加入自己的邮箱地址
[root@sam ~]# newaliases　//重建aliasesdb
/etc/aliases: 79 aliases, longest 19 bytes, 825 bytes total
[root@sam ~]# echo test &#124; mail root&#160; //发送测试邮件给root
如果成功的话，会在刚刚填入的 yourname@yourserver.com 的邮箱中收到测试的邮件。
&#8211;EOF&#8211;
其他文章2008-01-11 -- 任何事一直坚持做下去都是不容易的事情 (0)2007-12-30 -- 看今天晚上的国际辩论赛有感 (0)2008-01-29 -- CentOs5下MRTG安装配置 (0)2007-12-25 -- 在wordpress安装gravatar2插件 (1)2008-02-24 -- 订阅部分 (0)2007-12-28 -- 也许是真的觉得疲惫了 (0)]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在系统出现错误或有重要通知发送邮件给root的时候，可以让系统自动转送到我们通常使用的邮箱中，这样方便查阅相关报告和日志，以便做出及时处理</p>
<p><span style="color: #0000ff"><span class="message">[root@sam ~]#</span> <span class="command">vi /etc/aliases</span> 　</p>
<p><span class="after">root:&nbsp;</span></span><span style="color: #0000ff"><span>&nbsp;&nbsp;<span class="after"><span style="color: #0000ff">yourname ◎</span></span></span></span><span style="color: #0000ff"><span><span class="after"><a href="mailto:yourname@%20yourserver.com"><span style="color: #0000ff">yourserver.com</span></a>&nbsp;</span><span style="color: #0000ff"><span class="after">&nbsp;</span></span> //</span><span class="intro">加入</span><span class="att2">自己的邮箱地址</span></p>
<p><span class="message">[root@sam ~]#</span> <span class="command">newaliases</span>　//<span class="intro">重建aliasesdb</span><br />
<span class="message">/etc/aliases: 79 aliases, longest 19 bytes, 825 bytes total</p>
<p>[root@sam ~]#</span> <span class="command">echo test | mail root&nbsp; //</span><span class="intro">发送测试邮件给root</span></span></p>
<p>如果成功的话，会在刚刚填入的 yourname@yourserver.com 的邮箱中收到测试的邮件。</p>
<p>&#8211;EOF&#8211;</p>
<h3>其他文章</h3><ul class="related_post"><li>2007-12-30 -- <a href="http://www.askhua.com/html/y2007/17.html" title="看今天晚上的国际辩论赛有感">看今天晚上的国际辩论赛有感 (0)</a></li><li>2007-12-26 -- <a href="http://www.askhua.com/html/y2007/13.html" title="余世维的如何提升执行力ppt讲稿">余世维的如何提升执行力ppt讲稿 (0)</a></li><li>2008-02-24 -- <a href="http://www.askhua.com/html/y2008/23.html" title="订阅部分">订阅部分 (0)</a></li><li>2008-01-29 -- <a href="http://www.askhua.com/html/y2008/22.html" title="CentOs5下MRTG安装配置">CentOs5下MRTG安装配置 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/3.html" title="今天是平安夜，祝愿我的朋友一生平安">今天是平安夜，祝愿我的朋友一生平安 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/4.html" title="没有一步登天 没有功德圆满">没有一步登天 没有功德圆满 (4)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2008/20.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>linux下tar参数exclude问题</title>
		<link>http://www.askhua.com/html/y2008/19.html</link>
		<comments>http://www.askhua.com/html/y2008/19.html#comments</comments>
		<pubDate>Mon, 14 Jan 2008 08:41:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[WebApp||Web与应用]]></category>

		<category><![CDATA[exclude]]></category>

		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.askhua.com/html/y2008/19.html</guid>
		<description><![CDATA[
&#160;看到CU上一位兄弟遇到如下问题，不想加今天自己也遇到这个问题
需要备份/home/test下内容，
不包含里面的目录005
这样可以备份
#cd /home/test
# tar -cvzf&#160;&#160;test.tar.gz . &#8211;exclude=005
./
./001
./002
./003
./004
./008
./test.tar.gz
如果回到上一层目录，
cd ../就是在/home/software
# tar -cvzf test.tar.gz &#8211;exclude=test/005/&#160;&#160;test
test/
test/001
test/002
test/003
test/004
test/005/
test/005/006
test/005/007
test/008
test/test.tar.gz
exclude却没有作用？？？？
仔细查看了man，的确是这样的：
# tar -cvzf test.tar.gz &#8211;exclude=test/005/ test 
# tar -cvzf test.tar.gz &#8211;exclude=test/005&#160;&#160;test 
是不一样的 ，一个是目录名字路径，一个是目录名字


其他文章2007-12-28 -- 也许是真的觉得疲惫了 (0)2007-12-24 -- mysql同步复制master master模式 (0)2007-12-25 -- 在wordpress安装gravatar2插件 (1)2008-01-25 -- linux系统出现错误时root邮件的转送 (0)2007-12-24 -- 今天是平安夜，祝愿我的朋友一生平安 (0)2008-01-11 -- 任何事一直坚持做下去都是不容易的事情 (0)]]></description>
			<content:encoded><![CDATA[<div class="t_msgfont" id="message1429129">
<p><font style="background-color: #ffffff">&nbsp;</font><font style="background-color: #ffffff">看到CU上一位兄弟遇到</font><a href="http://bbs.chinaunix.net/viewthread.php?tid=215321"><font style="background-color: #ffffff" size="+0">如下问题</font></a><font style="background-color: #ffffff">，不想加今天自己也遇到这个问题</font></p>
<p><font style="background-color: #ffffff">需要备份/home/test下内容，<br />
不包含里面的目录005<br />
这样可以备份<br />
#cd /home/test<br />
# tar -cvzf&nbsp;&nbsp;test.tar.gz . &#8211;exclude=005<br />
./<br />
./001<br />
./002<br />
./003<br />
./004<br />
./008<br />
./test.tar.gz<br />
如果回到上一层目录，<br />
cd ../就是在/home/software<br />
# tar -cvzf test.tar.gz &#8211;exclude=test/005/&nbsp;&nbsp;test<br />
test/<br />
test/001<br />
test/002<br />
test/003<br />
test/004<br />
test/005/<br />
test/005/006<br />
test/005/007<br />
test/008<br />
test/test.tar.gz<br />
exclude却没有作用？？？？</font></p>
<p><font style="background-color: #ffffff">仔细查看了man，的确是这样的：</font></p>
<p><font style="background-color: #ffffff"># tar -cvzf test.tar.gz &#8211;exclude=test/005/ test <br />
# tar -cvzf test.tar.gz &#8211;exclude=test/005&nbsp;&nbsp;test </font></p>
<p><font style="background-color: #ffffff">是不一样的 ，一个是目录名字路径，一个是目录名字<br />
</font></p>
</div>
<h3>其他文章</h3><ul class="related_post"><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/3.html" title="今天是平安夜，祝愿我的朋友一生平安">今天是平安夜，祝愿我的朋友一生平安 (0)</a></li><li>2007-12-30 -- <a href="http://www.askhua.com/html/y2007/17.html" title="看今天晚上的国际辩论赛有感">看今天晚上的国际辩论赛有感 (0)</a></li><li>2008-01-11 -- <a href="http://www.askhua.com/html/y2008/18.html" title="任何事一直坚持做下去都是不容易的事情">任何事一直坚持做下去都是不容易的事情 (0)</a></li><li>2007-12-26 -- <a href="http://www.askhua.com/html/y2007/13.html" title="余世维的如何提升执行力ppt讲稿">余世维的如何提升执行力ppt讲稿 (0)</a></li><li>2008-02-24 -- <a href="http://www.askhua.com/html/y2008/23.html" title="订阅部分">订阅部分 (0)</a></li><li>2007-12-25 -- <a href="http://www.askhua.com/html/y2007/6.html" title="在wordpress安装gravatar2插件">在wordpress安装gravatar2插件 (1)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2008/19.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>任何事一直坚持做下去都是不容易的事情</title>
		<link>http://www.askhua.com/html/y2008/18.html</link>
		<comments>http://www.askhua.com/html/y2008/18.html#comments</comments>
		<pubDate>Fri, 11 Jan 2008 11:06:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MyLife||生活点滴]]></category>

		<category><![CDATA[无题]]></category>

		<guid isPermaLink="false">http://www.askhua.com/html/y2008/18.html</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 开博以来好久没更新了，也许有原因，也许是自己懒惰，真的发现做任何事情坚持都是件不容易的事情，原来打算一个礼拜写2-3篇文章，到现在似乎没有兑现，人往往是自己最容易原谅自己犯下的错误的。
&#160;&#160;&#160;&#160;&#160;&#160;&#160; 倒是非常佩服一些网友每天都能坚持写些东西，你们比我强多了，呵呵
成功源于坚持 持之以恒 坚持不懈
老天最后总会给你点什么收成。
其他文章2007-12-30 -- 看今天晚上的国际辩论赛有感 (0)2008-01-25 -- linux系统出现错误时root邮件的转送 (0)2007-12-24 -- 没有一步登天 没有功德圆满 (4)2007-12-26 -- 余世维的如何提升执行力ppt讲稿 (0)2008-01-14 -- linux下tar参数exclude问题 (0)2007-12-24 -- mysql同步复制master master模式 (0)]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 开博以来好久没更新了，也许有原因，也许是自己懒惰，真的发现做任何事情坚持都是件不容易的事情，原来打算一个礼拜写2-3篇文章，到现在似乎没有兑现，人往往是自己最容易原谅自己犯下的错误的。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 倒是非常佩服一些网友每天都能坚持写些东西，你们比我强多了，呵呵</p>
<p>成功源于坚持 持之以恒 坚持不懈</p>
<p>老天最后总会给你点什么收成。</p>
<h3>其他文章</h3><ul class="related_post"><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/3.html" title="今天是平安夜，祝愿我的朋友一生平安">今天是平安夜，祝愿我的朋友一生平安 (0)</a></li><li>2008-01-14 -- <a href="http://www.askhua.com/html/y2008/19.html" title="linux下tar参数exclude问题">linux下tar参数exclude问题 (0)</a></li><li>2007-12-26 -- <a href="http://www.askhua.com/html/y2007/13.html" title="余世维的如何提升执行力ppt讲稿">余世维的如何提升执行力ppt讲稿 (0)</a></li><li>2008-02-24 -- <a href="http://www.askhua.com/html/y2008/23.html" title="订阅部分">订阅部分 (0)</a></li><li>2007-12-30 -- <a href="http://www.askhua.com/html/y2007/17.html" title="看今天晚上的国际辩论赛有感">看今天晚上的国际辩论赛有感 (0)</a></li><li>2008-01-29 -- <a href="http://www.askhua.com/html/y2008/22.html" title="CentOs5下MRTG安装配置">CentOs5下MRTG安装配置 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2008/18.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>看今天晚上的国际辩论赛有感</title>
		<link>http://www.askhua.com/html/y2007/17.html</link>
		<comments>http://www.askhua.com/html/y2007/17.html#comments</comments>
		<pubDate>Sun, 30 Dec 2007 14:06:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MyLife||生活点滴]]></category>

		<category><![CDATA[国际大专辩论赛]]></category>

		<guid isPermaLink="false">http://www.askhua.com/html/y2007/17.html</guid>
		<description><![CDATA[&#160;&#160; 今天刚看完了央视播出的国际辩论赛，，辩题是 应不该应该送老人到养老院 ，比赛结果公布的时候，着实出乎我的意料，开始蛮以为澳门大学胜出，没想到最后宣布老家武汉的中南财经政法大学胜出，也许这就是专业评委和业余观众的区别吧，观众投票的结果也是澳门大学得票数多，不知道为什么最后还是把冠军颁给中南财经政法大学了，，我自己感觉澳门大学发挥还不错，嘿嘿，估计评为都有自己读到的看法吧，不过辩论赛已经结束，冠军和亚军已经不是最重要的了，最重要的是选手的都表现让人非常钦佩，都给人留下非常深刻的印象，最重要的是看到了一辩论牛人，蒋昌健，当年93年国际大专辩论赛的冠军，最佳辩手，如今复旦大学的教授，，真不容易，感慨万千！
其他文章2007-12-28 -- 也许是真的觉得疲惫了 (0)2008-01-14 -- linux下tar参数exclude问题 (0)2007-12-24 -- 没有一步登天 没有功德圆满 (4)2008-01-11 -- 任何事一直坚持做下去都是不容易的事情 (0)2007-12-24 -- 今天是平安夜，祝愿我的朋友一生平安 (0)2007-12-25 -- 在wordpress安装gravatar2插件 (1)]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp; 今天刚看完了央视播出的国际辩论赛，，辩题是 应不该应该送老人到养老院 ，比赛结果公布的时候，着实出乎我的意料，开始蛮以为澳门大学胜出，没想到最后宣布老家武汉的中南财经政法大学胜出，也许这就是专业评委和业余观众的区别吧，观众投票的结果也是澳门大学得票数多，不知道为什么最后还是把冠军颁给中南财经政法大学了，<img alt="" src="http://www.askhua.com/wp-content/plugins/fckeditor_for_wordpress/smiles/Face2/12.gif" />，我自己感觉澳门大学发挥还不错，嘿嘿，估计评为都有自己读到的看法吧，不过辩论赛已经结束，冠军和亚军已经不是最重要的了，最重要的是选手的都表现让人非常钦佩，都给人留下非常深刻的印象，最重要的是看到了一辩论牛人，蒋昌健，当年93年国际大专辩论赛的冠军，最佳辩手，如今复旦大学的教授，<img alt="" src="http://www.askhua.com/wp-content/plugins/fckeditor_for_wordpress/smiles/Face2/2.gif" />，真不容易，感慨万千！</p>
<h3>其他文章</h3><ul class="related_post"><li>2008-02-24 -- <a href="http://www.askhua.com/html/y2008/23.html" title="订阅部分">订阅部分 (0)</a></li><li>2008-01-25 -- <a href="http://www.askhua.com/html/y2008/21.html" title="yum的非官方库">yum的非官方库 (0)</a></li><li>2008-01-14 -- <a href="http://www.askhua.com/html/y2008/19.html" title="linux下tar参数exclude问题">linux下tar参数exclude问题 (0)</a></li><li>2008-01-29 -- <a href="http://www.askhua.com/html/y2008/22.html" title="CentOs5下MRTG安装配置">CentOs5下MRTG安装配置 (0)</a></li><li>2008-01-11 -- <a href="http://www.askhua.com/html/y2008/18.html" title="任何事一直坚持做下去都是不容易的事情">任何事一直坚持做下去都是不容易的事情 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/5.html" title="mysql同步复制master master模式">mysql同步复制master master模式 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2007/17.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>也许是真的觉得疲惫了</title>
		<link>http://www.askhua.com/html/y2007/14.html</link>
		<comments>http://www.askhua.com/html/y2007/14.html#comments</comments>
		<pubDate>Fri, 28 Dec 2007 03:00:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MyLife||生活点滴]]></category>

		<category><![CDATA[压力]]></category>

		<category><![CDATA[情感]]></category>

		<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.askhua.com/html/y2007/14.html</guid>
		<description><![CDATA[&#160;&#160; &#160; 日子还是象往常一样重复着过去，内心坚持的东西好像总是在摇摇晃晃，不知道在某个时候需要自己坚持什么，需要放弃什么，变的优柔寡断，好像越来越没底气做一个决定了，是自己真的累了吗？
&#160;&#160; 要如何才能让自己保持内心的宁静呢，我一直在寻找答案，不知道和我同年的兄弟是不是与我有着同样的生活感受，不过我相信，有大部分的人内心是不太可能宁静起来的，压力，情感，发展，事业&#8230;&#8230;太多的话题，太多的问题，抓不住主次了，生活的次序乱了，脾气不知不觉变的大了，受罪的总是我自己身边最亲最亲的人&#8230;&#8230;
&#160;&#160; 也许是真的累了，需要放松自己的神经了吧
其他文章2008-01-25 -- linux系统出现错误时root邮件的转送 (0)2007-12-26 -- 余世维的如何提升执行力ppt讲稿 (0)2007-12-25 -- 在wordpress安装gravatar2插件 (1)2008-01-11 -- 任何事一直坚持做下去都是不容易的事情 (0)2007-12-24 -- mysql同步复制master master模式 (0)2008-01-29 -- CentOs5下MRTG安装配置 (0)]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp; &nbsp; 日子还是象往常一样重复着过去，内心坚持的东西好像总是在摇摇晃晃，不知道在某个时候需要自己坚持什么，需要放弃什么，变的优柔寡断，好像越来越没底气做一个决定了，是自己真的累了吗？</p>
<p>&nbsp;&nbsp; 要如何才能让自己保持内心的宁静呢，我一直在寻找答案，不知道和我同年的兄弟是不是与我有着同样的生活感受，不过我相信，有大部分的人内心是不太可能宁静起来的，压力，情感，发展，事业&hellip;&hellip;太多的话题，太多的问题，抓不住主次了，生活的次序乱了，脾气不知不觉变的大了，受罪的总是我自己身边最亲最亲的人&hellip;&hellip;</p>
<p>&nbsp;&nbsp; 也许是真的累了，需要放松自己的神经了吧</p>
<h3>其他文章</h3><ul class="related_post"><li>2007-12-25 -- <a href="http://www.askhua.com/html/y2007/6.html" title="在wordpress安装gravatar2插件">在wordpress安装gravatar2插件 (1)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/4.html" title="没有一步登天 没有功德圆满">没有一步登天 没有功德圆满 (4)</a></li><li>2007-12-26 -- <a href="http://www.askhua.com/html/y2007/13.html" title="余世维的如何提升执行力ppt讲稿">余世维的如何提升执行力ppt讲稿 (0)</a></li><li>2008-02-24 -- <a href="http://www.askhua.com/html/y2008/23.html" title="订阅部分">订阅部分 (0)</a></li><li>2008-01-29 -- <a href="http://www.askhua.com/html/y2008/22.html" title="CentOs5下MRTG安装配置">CentOs5下MRTG安装配置 (0)</a></li><li>2008-01-14 -- <a href="http://www.askhua.com/html/y2008/19.html" title="linux下tar参数exclude问题">linux下tar参数exclude问题 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2007/14.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>余世维的如何提升执行力ppt讲稿</title>
		<link>http://www.askhua.com/html/y2007/13.html</link>
		<comments>http://www.askhua.com/html/y2007/13.html#comments</comments>
		<pubDate>Wed, 26 Dec 2007 13:09:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[MyLife||生活点滴]]></category>

		<category><![CDATA[ppt]]></category>

		<category><![CDATA[余世维]]></category>

		<guid isPermaLink="false">http://www.askhua.com/html/y2007/13.html</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160;&#160; 这个是余世维的如何提升执行力ppt电子讲稿，好东西，分享给大家
&#160;
电子讲稿
其他文章2007-12-25 -- 在wordpress安装gravatar2插件 (1)2007-12-30 -- 看今天晚上的国际辩论赛有感 (0)2008-02-24 -- 订阅部分 (0)2007-12-28 -- 也许是真的觉得疲惫了 (0)2007-12-24 -- mysql同步复制master master模式 (0)2007-12-24 -- 没有一步登天 没有功德圆满 (4)]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这个是余世维的如何提升执行力ppt电子讲稿，好东西，<img alt="" src="http://www.askhua.com/wp-content/plugins/fckeditor_for_wordpress/smiles/Face2/0.gif" />分享给大家</p>
<p>&nbsp;</p>
<p><a href="http://www.askhua.com/wp-content/uploads/2007/12/yushiwei.zip ">电子讲稿</a></p>
<h3>其他文章</h3><ul class="related_post"><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/3.html" title="今天是平安夜，祝愿我的朋友一生平安">今天是平安夜，祝愿我的朋友一生平安 (0)</a></li><li>2007-12-28 -- <a href="http://www.askhua.com/html/y2007/14.html" title="也许是真的觉得疲惫了">也许是真的觉得疲惫了 (0)</a></li><li>2007-12-25 -- <a href="http://www.askhua.com/html/y2007/6.html" title="在wordpress安装gravatar2插件">在wordpress安装gravatar2插件 (1)</a></li><li>2008-01-14 -- <a href="http://www.askhua.com/html/y2008/19.html" title="linux下tar参数exclude问题">linux下tar参数exclude问题 (0)</a></li><li>2008-01-25 -- <a href="http://www.askhua.com/html/y2008/21.html" title="yum的非官方库">yum的非官方库 (0)</a></li><li>2008-01-11 -- <a href="http://www.askhua.com/html/y2008/18.html" title="任何事一直坚持做下去都是不容易的事情">任何事一直坚持做下去都是不容易的事情 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2007/13.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>在wordpress安装gravatar2插件</title>
		<link>http://www.askhua.com/html/y2007/6.html</link>
		<comments>http://www.askhua.com/html/y2007/6.html#comments</comments>
		<pubDate>Tue, 25 Dec 2007 07:19:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Memo||备忘录]]></category>

		<guid isPermaLink="false">http://www.askhua.com/?p=6</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160; Gravatar是 http://www.gravatar.com/ 推出的一种头像身份标识服务。只要你在Gravatar上注册过你邮箱并且上传头像图片，然后当你在支持Gravatar的博客上留言的时候可以显示你的头像。而Gravatars2这个插件是在Gravatars基础上改进的，功能比之更加强大，好用。 &#160;&#160;&#160; 到http://zenpax.com/gravatars2/ 下载最新的插件，安装说明可以参考它里面的文档，这个文档和详细的，使用前确认你没有使用别的 Gravatar插件。 下载后解压，按照这个压缩包里的文件组织结构把文件依次上传到wordpress的相应文件目录里，并确保/wp-content/gravatar/这个目录是可以被读写的，然后在后台启用这个这个插件，编辑style.css，一般的话，在结尾添加 .gravatar { float:left; padding: 3px; border: 1px solid #000; background: #fff; } .postgrav { float: left; padding: 3px; margin-right: 5px; margin-left: 5px; border: 1px solid #000; background: #fff; } 这段代码即可，如果显示不正常，则需要按照自己的修改这个css文件。 然后在后台修改评论comments.php文件，在正确的位置添加 &#60;?php if (function_exists('gravatar')) { gravatar_image_link(); } ?&#62; 即可。&#160;&#160;
其他文章2007-12-28 -- 也许是真的觉得疲惫了 (0)2007-12-26 -- 余世维的如何提升执行力ppt讲稿 (0)2007-12-24 -- [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp; Gravatar是 <a href="http://www.gravatar.com/">http://www.gravatar.com/</a> 推出的一种头像身份标识服务。只要你在Gravatar上注册过你邮箱并且上传头像图片，然后当你在支持Gravatar的博客上留言的时候可以显示你的头像。而Gravatars2这个插件是在Gravatars基础上改进的，功能比之更加强大，好用。 &nbsp;&nbsp;&nbsp; 到<a href="http://zenpax.com/gravatars2/">http://zenpax.com/gravatars2/</a> 下载最新的插件，安装说明可以参考它里面的文档，这个文档和详细的，使用前确认你没有使用别的 Gravatar插件。 下载后解压，按照这个压缩包里的文件组织结构把文件依次上传到wordpress的相应文件目录里，并确保/wp-content/gravatar/这个目录是可以被读写的，然后在后台启用这个这个插件，编辑style.css，一般的话，在结尾添加 <span style="color: #0000ff"><code>.gravatar { float:left; padding: 3px; border: 1px solid #000; background: #fff; }</code> <code>.postgrav { float: left; padding: 3px; margin-right: 5px; margin-left: 5px; border: 1px solid #000; background: #fff; }</code> </span>这段代码即可，如果显示不正常，则需要按照自己的修改这个css文件。 然后在后台修改评论comments.php文件，在正确的位置添加 <span style="color: #800000"><code>&lt;?php if (function_exists('gravatar')) { gravatar_image_link(); } ?&gt;</code> </span>即可。&nbsp;&nbsp;</p>
<h3>其他文章</h3><ul class="related_post"><li>2008-01-11 -- <a href="http://www.askhua.com/html/y2008/18.html" title="任何事一直坚持做下去都是不容易的事情">任何事一直坚持做下去都是不容易的事情 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/5.html" title="mysql同步复制master master模式">mysql同步复制master master模式 (0)</a></li><li>2007-12-26 -- <a href="http://www.askhua.com/html/y2007/13.html" title="余世维的如何提升执行力ppt讲稿">余世维的如何提升执行力ppt讲稿 (0)</a></li><li>2007-12-24 -- <a href="http://www.askhua.com/html/y2007/4.html" title="没有一步登天 没有功德圆满">没有一步登天 没有功德圆满 (4)</a></li><li>2007-12-30 -- <a href="http://www.askhua.com/html/y2007/17.html" title="看今天晚上的国际辩论赛有感">看今天晚上的国际辩论赛有感 (0)</a></li><li>2008-01-29 -- <a href="http://www.askhua.com/html/y2008/22.html" title="CentOs5下MRTG安装配置">CentOs5下MRTG安装配置 (0)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.askhua.com/html/y2007/6.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
