﻿<?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>Vi`blog · 唯音 &#187; √文章精选</title>
	<atom:link href="http://www.viyin.net/category/article/feed" rel="self" type="application/rss+xml" />
	<link>http://www.viyin.net</link>
	<description>千金难买好人生%%%！！！</description>
	<lastBuildDate>Wed, 08 Sep 2010 15:48:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>xen依赖的两个系统服务</title>
		<link>http://www.viyin.net/2010/08/xen-2.html</link>
		<comments>http://www.viyin.net/2010/08/xen-2.html#comments</comments>
		<pubDate>Thu, 12 Aug 2010 06:17:46 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[haldaemon]]></category>
		<category><![CDATA[messagebus]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=943</guid>
		<description><![CDATA[xen依赖的两个系统服务 messagebus，haldaemon 这两个服务要启用。不然，XEN网卡桥接不能使用。 我试了好久。唉%]]></description>
			<content:encoded><![CDATA[<p>xen依赖的两个系统服务</p>
<p>messagebus，<a href="http://www.viyin.net/tag/haldaemon" class="st_tag internal_tag" rel="tag" title="Posts tagged with haldaemon">haldaemon</a> 这两个服务要启用。不然，XEN网卡桥接不能使用。</p>
<p>我试了好久。唉%</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/08/xen-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>caca代理</title>
		<link>http://www.viyin.net/2010/08/caca-proxy-2.html</link>
		<comments>http://www.viyin.net/2010/08/caca-proxy-2.html#comments</comments>
		<pubDate>Sun, 08 Aug 2010 03:48:40 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[caca]]></category>
		<category><![CDATA[caca proxy]]></category>
		<category><![CDATA[caca代理]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[me代理]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[代理]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=934</guid>
		<description><![CDATA[哈哈哈。百度搜 CACA代理，真给面子。第一名和第二名都是我的。 GOOGLE也差不多。 Vi`blog · 唯音 caca代理 倒卖CACA代理 (6月18号更新)QQ:80082450 ,QQ :395441236 若栩2010年6月18日 vi 4 条评论 6月18号更新： 再次发现一个SB人倒卖我的代理！ 公布如下：QQ:&#8230; www.viyin.net/tag/caca代理 2010-7-24 - 百度快照 CACA代理登陆 温馨提醒：caca代理列表时时更新，每分钟就会更新一次!您在我站购买的CACA不限吸附次数,不限下载速度，但您要保证帐号只有您一人使用！&#8230; caca.viyin.net/ 2010-8-7 - 百度快照 Vi`blog · 唯音» 出售CACA代理 2010年5月6日 &#8230; 支持PE吸附。和CACA同步更新。质量保证！每天有效代理3-8W &#8230; 分类: √文章精选 标签: caca, caca代理, caca代理购买, caca购买, 代理购买 &#8230; www.viyin.net/2010/05/caca.html &#8211; 网页快照 Vi`blog · 唯音» 陈锦涛！qq529417702! 倒卖CACA代理(6月18号更新 &#8230; 倒卖CACA代理(6月18号更新)QQ:80082450. [...]]]></description>
			<content:encoded><![CDATA[<p>哈哈哈。百度搜 <a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">CACA</a>代理，真给面子。第一名和第二名都是我的。</p>
<p><a href="http://www.viyin.net/wp-content/uploads/2010/08/bcaca.jpg"><img class="alignnone size-full wp-image-937" title="bcaca" src="http://www.viyin.net/wp-content/uploads/2010/08/bcaca.jpg" alt="" width="586" height="265" /></a></p>
<p>GOOGLE也差不多。</p>
<p><a href="http://www.viyin.net/wp-content/uploads/2010/08/gcaca.jpg"><img class="alignnone size-full wp-image-938" title="gcaca" src="http://www.viyin.net/wp-content/uploads/2010/08/gcaca.jpg" alt="" width="819" height="547" /></a></p>
<table id="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><a onmousedown="return c({'fm':'as','F':'77B717EA','F1':'9D73F1E4','F2':'4CB63E6B','F3':'54E5243F','T':'1281239147','title':this.innerHTML,'url':this.href,'p1':1,'y':'BFDF997A'})" href="http://www.viyin.net/tag/caca%E4%BB%A3%E7%90%86" target="_blank"><span style="font-size: small;">Vi`blog · 唯音 <em>caca代理</em></span></a><br />
<span>倒卖<em><a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">CACA</a>代理</em> (6月18号更新)QQ:80082450 ,QQ :395441236 若栩2010年6月18日 vi 4 条评论 6月18号更新： 再次发现一个SB人倒卖我的代理！ 公布如下：QQ:&#8230;<br />
<span style="color: #008000;">www.viyin.net/tag/<strong><a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">caca</a>代理</strong> 2010-7-24 </span>- <a href="http://cache.baidu.com/c?m=9f65cb4a8c8507ed4fece763105392230e54f727679c8b4968d4e414c42246071433feea74734313a4c36b1771b83a5dfd8733653c0137bd9fdccd179ded9d797cd97423716c913114c46ddcdc3727d657e6&amp;p=8b2a9404cc8014ff57eb9e365850&amp;user=baidu" target="_blank">百度快照</a><br />
</span></td>
</tr>
</tbody>
</table>
<table id="2" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><a onmousedown="return c({'fm':'as','F':'77B717EA','F1':'9D73F1E4','F2':'4CB63E6B','F3':'54E5243F','T':'1281239147','title':this.innerHTML,'url':this.href,'p1':2,'y':'FF6CCEFF'})" href="http://caca.viyin.net/" target="_blank"><span style="font-size: small;"><em>CACA代理</em>登陆</span></a><br />
<span>温馨提醒：<em><a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">caca</a>代理</em>列表时时更新，每分钟就会更新一次!您在我站购买的<a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">CACA</a>不限吸附次数,不限下载速度，但您要保证帐号只有您一人使用！&#8230;<br />
<span style="color: #008000;"><strong><a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">caca</a></strong>.viyin.net/ 2010-8-7 </span>- <a href="http://cache.baidu.com/c?m=9d78d513d99212fe0bfa950e1a66d1716d2797123ec0a7636b93d3169c3e1d070571e2c83a3f415782966b6776eb1217b1ac2172405f77f186&amp;p=8f60c54ad5c015b90be29724524a&amp;user=baidu" target="_blank">百度快照</a><br />
</span></p>
<li>
<h3><a onmousedown="return clk(0,'','','','2','','0CBsQFjAB')" href="http://www.viyin.net/2010/05/caca.html" target="_blank">Vi`blog · 唯音» 出售<em>CACA代理</em></a></h3>
<div>2010年5月6日 <strong>&#8230;</strong> 支持PE吸附。和<a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">CACA</a>同步更新。质量保证！每天有效代理3-8W <strong>&#8230;</strong> 分类: √文章精选 标签: <a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">caca</a>, <em><a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">caca</a>代理</em>, <em><a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">caca</a>代理</em>购买, <a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">caca</a>购买, 代理购买 <strong>&#8230;</strong><br />
<cite>www.viyin.net/2010/05/<strong><a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">caca</a></strong>.html</cite> &#8211; <a onmousedown="return clk(0,'','','','2','','0CB0QIDAB')" href="http://webcache.googleusercontent.com/search?q=cache:pCI3BnJLduIJ:www.viyin.net/2010/05/caca.html+caca%E4%BB%A3%E7%90%86&amp;cd=2&amp;hl=zh-CN&amp;ct=clnk" target="_blank">网页快照</a></div>
</li>
<li>
<h3><a onmousedown="return clk(0,'','','','3','','0CB4QFjAC')" href="http://www.viyin.net/2010/06/qq529417702-caca-qq80082450-qq-395441236.html" target="_blank">Vi`blog · 唯音» 陈锦涛！qq529417702! 倒卖<em>CACA代理</em>(6月18号更新 <strong>&#8230;</strong></a></h3>
<div id="mbb3">倒卖<em><a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">CACA</a>代理</em>(6月18号更新)QQ:80082450. 2010年6月18日 vi 发表评论 阅读评论. 6月18号更新： 再次发现一个SB人倒卖我的代理！ 公布如下：QQ:80082450 , ┯唯爱荭 <strong>&#8230;</strong><br />
<cite>www.viyin.net/&#8230;/qq529417702-<strong><a href="http://www.viyin.net/tag/caca" class="st_tag internal_tag" rel="tag" title="Posts tagged with caca">caca</a></strong>-qq80082450-qq-395441236.html</cite> &#8211; <a onmousedown="return clk(0,'','','','3','','0CCAQIDAC')" href="http://webcache.googleusercontent.com/search?q=cache:0MoRG97EB7kJ:www.viyin.net/2010/06/qq529417702-caca-qq80082450-qq-395441236.html+caca%E4%BB%A3%E7%90%86&amp;cd=3&amp;hl=zh-CN&amp;ct=clnk" target="_blank">网页快照</a></div>
</li>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/08/caca-proxy-2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nginx+php-fcgi出现kernel: TCP: time wait bucket table overflow解决方法</title>
		<link>http://www.viyin.net/2010/08/time-wait-bucket-table-overflow.html</link>
		<comments>http://www.viyin.net/2010/08/time-wait-bucket-table-overflow.html#comments</comments>
		<pubDate>Fri, 06 Aug 2010 03:31:14 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√nginx]]></category>
		<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpcgi]]></category>
		<category><![CDATA[table overflow]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=929</guid>
		<description><![CDATA[[root@viyin etc]# tail /var/log/messages Aug 6 11:29:26 viyin kernel: printk: 640 messages suppressed. Aug 6 11:29:26 viyin kernel: TCP: time wait bucket table overflow Aug 6 11:29:31 viyin kernel: printk: 299 messages suppressed. Aug 6 11:29:31 viyin kernel: TCP: time wait bucket table overflow Aug 6 11:29:37 viyin kernel: printk: 590 messages suppressed. Aug 6 [...]]]></description>
			<content:encoded><![CDATA[<p>[root@viyin etc]# tail /var/log/messages<br />
Aug  6 11:29:26 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: printk: 640 messages suppressed.<br />
Aug  6 11:29:26 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: TCP: time wait bucket <a href="http://www.viyin.net/tag/table-overflow" class="st_tag internal_tag" rel="tag" title="Posts tagged with table overflow">table overflow</a><br />
Aug  6 11:29:31 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: printk: 299 messages suppressed.<br />
Aug  6 11:29:31 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: TCP: time wait bucket <a href="http://www.viyin.net/tag/table-overflow" class="st_tag internal_tag" rel="tag" title="Posts tagged with table overflow">table overflow</a><br />
Aug  6 11:29:37 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: printk: 590 messages suppressed.<br />
Aug  6 11:29:37 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: TCP: time wait bucket <a href="http://www.viyin.net/tag/table-overflow" class="st_tag internal_tag" rel="tag" title="Posts tagged with table overflow">table overflow</a><br />
Aug  6 11:29:41 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: printk: 711 messages suppressed.<br />
Aug  6 11:29:41 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: TCP: time wait bucket <a href="http://www.viyin.net/tag/table-overflow" class="st_tag internal_tag" rel="tag" title="Posts tagged with table overflow">table overflow</a><br />
Aug  6 11:29:46 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: printk: 290 messages suppressed.<br />
Aug  6 11:29:46 viyin <a href="http://www.viyin.net/tag/kernel" class="st_tag internal_tag" rel="tag" title="Posts tagged with kernel">kernel</a>: TCP: time wait bucket <a href="http://www.viyin.net/tag/table-overflow" class="st_tag internal_tag" rel="tag" title="Posts tagged with table overflow">table overflow</a></p>
<p>查看80连接状态<br />
[root@viyin ~]# netstat -an | grep 80 | awk &#8216;{print $6}&#8217; | sort | uniq -c | sort -rn<br />
   5539 ESTABLISHED<br />
    768 TIME_WAIT<br />
    321 FIN_WAIT1<br />
    165 FIN_WAIT2<br />
     56 LAST_ACK<br />
     32 CONNECTED<br />
     22 SYN_RECV<br />
      5 STREAM<br />
      3 LISTEN<br />
      1 33410680<br />
修改 /etc/sysctl.conf<br />
sysctl net.ipv4.tcp_max_tw_buckets=10000</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/08/time-wait-bucket-table-overflow.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intel主板开启VT</title>
		<link>http://www.viyin.net/2010/08/intel-vt-cpu.html</link>
		<comments>http://www.viyin.net/2010/08/intel-vt-cpu.html#comments</comments>
		<pubDate>Mon, 02 Aug 2010 04:05:26 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[bios]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[vmx]]></category>
		<category><![CDATA[vt]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=925</guid>
		<description><![CDATA[工作原理： 　　带有虚拟技术的处理器具有额外的指令集，叫做Virtual Machine Extensions，简称VMX。VMX给CPU带来了10个新的虚拟专用指令：VMPTRLD, VMPTRST, VMCLEAR, VMREAD, VMWRITE, VMCALL, VMLAUCH, VMRESUME, VMXOFF and VMXON。 在虚拟状态下有两种工作模式：root操作和非root操作。通常只有虚拟操作软件——Virtual Machine Monitor (VMM)能够运行在root操作模式下，而操作系统在虚拟机的顶层运行在非root操作模式下。运行在虚拟机顶层的软件同时也叫做“guest software”。 　　要进入虚拟模式，VMM需要执行VMXON指令来调入VMM软件，VMM软件使用VMLAUNCH指令来进入每一个虚拟机，使用VMRESUME指令来退出。如果想要退出虚拟模式，可以使用VMM运行VMXOFF指令。在图中的每个guest系统可以是不同的操作系统，同时运行自身的软件。 BIOS里面打开VT功能]]></description>
			<content:encoded><![CDATA[<p>工作原理：<br />
　　带有虚拟技术的处理器具有额外的指令集，叫做Virtual Machine Extensions，简称<a href="http://www.viyin.net/tag/vmx" class="st_tag internal_tag" rel="tag" title="Posts tagged with vmx">VMX</a>。<a href="http://www.viyin.net/tag/vmx" class="st_tag internal_tag" rel="tag" title="Posts tagged with vmx">VMX</a>给CPU带来了10个新的虚拟专用指令：VMPTRLD, VMPTRST, VMCLEAR, VMREAD, VMWRITE, VMCALL, VMLAUCH, VMRESUME, VMXOFF and VMXON。<br />
在虚拟状态下有两种工作模式：root操作和非root操作。通常只有虚拟操作软件——Virtual Machine Monitor (VMM)能够运行在root操作模式下，而操作系统在虚拟机的顶层运行在非root操作模式下。运行在虚拟机顶层的软件同时也叫做“guest software”。 </p>
<p>　　要进入虚拟模式，VMM需要执行VMXON指令来调入VMM软件，VMM软件使用VMLAUNCH指令来进入每一个虚拟机，使用VMRESUME指令来退出。如果想要退出虚拟模式，可以使用VMM运行VMXOFF指令。在图中的每个guest系统可以是不同的操作系统，同时运行自身的软件。<br />
<a href="http://www.viyin.net/tag/bios" class="st_tag internal_tag" rel="tag" title="Posts tagged with bios">BIOS</a>里面打开<a href="http://www.viyin.net/tag/vt" class="st_tag internal_tag" rel="tag" title="Posts tagged with vt">VT</a>功能<br />
<a href="http://www.viyin.net/wp-content/uploads/2010/08/http_imgload.jpg"><img src="http://www.viyin.net/wp-content/uploads/2010/08/http_imgload.jpg" alt="" title="http_imgload" width="670" height="502" class="alignnone size-full wp-image-926" /></a><br />
<a href="http://www.viyin.net/wp-content/uploads/2010/08/http_imgloadCA5N31QA.jpg"><img src="http://www.viyin.net/wp-content/uploads/2010/08/http_imgloadCA5N31QA.jpg" alt="" title="http_imgloadCA5N31QA" width="665" height="499" class="alignnone size-full wp-image-927" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/08/intel-vt-cpu.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>今天离职了</title>
		<link>http://www.viyin.net/2010/07/separation.html</link>
		<comments>http://www.viyin.net/2010/07/separation.html#comments</comments>
		<pubDate>Thu, 22 Jul 2010 08:52:41 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[ymj]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=912</guid>
		<description><![CDATA[今天离职了，感谢把我介绍到公司的彭哥，感谢YMJ老大，感谢四哥，感谢翁神，感谢我的同事们，感谢你们的帮助～～！ 特别说下，YMJ老大，，您太强大了，，我对您心服口服，，你对俺这小员工太照顾，，祝您事业更更强大，赚钱更更多～～]]></description>
			<content:encoded><![CDATA[<p>今天离职了，感谢把我介绍到公司的彭哥，感谢<a href="http://www.viyin.net/tag/ymj" class="st_tag internal_tag" rel="tag" title="Posts tagged with ymj">YMJ</a>老大，感谢四哥，感谢翁神，感谢我的同事们，感谢你们的帮助～～！</p>
<p>特别说下，<a href="http://www.viyin.net/tag/ymj" class="st_tag internal_tag" rel="tag" title="Posts tagged with ymj">YMJ</a>老大，，您太强大了，，我对您心服口服，，你对俺这小员工太照顾，，祝您事业更更强大，赚钱更更多～～</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/07/separation.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>squid常用命令</title>
		<link>http://www.viyin.net/2010/07/squid.html</link>
		<comments>http://www.viyin.net/2010/07/squid.html#comments</comments>
		<pubDate>Tue, 13 Jul 2010 06:53:02 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√linux]]></category>
		<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=905</guid>
		<description><![CDATA[1，初始化你在 squid.conf 里配置的 cache 目录 #squid/sbin/squid -z 如果有错误提示，请检查你的 cache目录的权限。 2，对你的squid.conf 排错，即验证 squid.conf 的 语法和配置。 #squid/sbin/squid -k parse 如果squid.conf 有语法或配置错误，这里会返回提示你，如果没有返回，恭喜，可以尝试启动squid。 3，在前台启动squid，并输出启动过程。 #squid/sbin/squid -N -d1 如果有到 ready to server reques，恭喜，启动成功。 然后 ctrl + c，停止squid，并以后台运行的方式启动它。 4，启动squid在后台运行。 #squid/sbin/squid -s 这时候可以 ps -A 来查看系统进程，可以看到俩个 squid 进程。 5，停止 squid #squid/sbin/squid -k shutdown 这个不用解释吧。 6，重引导修改过的 squid.conf #squid/sbin/squid -k reconfigure 这个估计用的时候比较多，当你发现你的配置有不尽你意的时候，可以随时修改squid.conf，然后别忘记对你的 squid.conf排错，然后再执行此指令，即可让squid重新按照你的 squid.conf 来运行。 7，把squid添加到系统启动项 [...]]]></description>
			<content:encoded><![CDATA[<p>1，初始化你在 squid.conf 里配置的 cache 目录<br />
<span style="color: red;">#squid/sbin/squid -z</span><br />
<span style="color: black;">如果有错误提示，请检查你的 cache目录的权限。</span><br />
2，对你的squid.conf 排错，即验证 squid.conf 的 语法和配置。<br />
<span style="color: red;">#squid/sbin/squid -k parse</span><br />
如果squid.conf 有语法或配置错误，这里会返回提示你，如果没有返回，恭喜，可以尝试启动squid。<br />
3，在前台启动squid，并输出启动过程。<br />
<span style="color: red;">#squid/sbin/squid -N -d1</span><br />
如果有到 ready to server reques，恭喜，启动成功。<br />
然后 ctrl + c，停止squid，并以后台运行的方式启动它。<br />
4，启动squid在后台运行。<br />
<span style="color: red;">#squid/sbin/squid -s</span><br />
这时候可以 ps -A 来查看系统进程，可以看到俩个 squid 进程。<br />
5，停止 squid<br />
<span style="color: red;">#squid/sbin/squid -k shutdown</span><br />
这个不用解释吧。<br />
6，重引导修改过的 squid.conf<br />
<span style="color: red;">#squid/sbin/squid -k reconfigure</span><br />
这个估计用的时候比较多，当你发现你的配置有不尽你意的时候，可以随时修改squid.conf，然后别忘记对你的 squid.conf排错，然后再执行此指令，即可让squid重新按照你的 squid.conf 来运行。<br />
7，把squid添加到系统启动项<br />
<span style="color: red;">编辑 /etc/rc.d/rc.local</span><br />
<span style="color: red;">添加如下行：  /usr/local/squid/sbin/squid -s</span><br />
<span style="color: black;">当然，并不是每个人都喜欢这种启动方式，你可以用你最习惯的方式；或者把它安装为服务。<span id="more-905"></span></span><br />
再来点其他的。<br />
1，修改cache 缓存目录的权限。<br />
<span style="color: red;">#chown -R squid:squid /home/cache</span><br />
我的cache缓存目录是 /home/cache,squid执行用户和用户组是 squid，squid。<br />
2，修改squid 日志目录的权限<br />
<span style="color: red;">#chown -R squid:squid /usr/local/squid/var/logs</span><br />
这一步并不是适合每一个使用squid的用户.意为让squid有权限在该目录进行写操作 。<br />
例如生成  access.log    cache.log   store.log<br />
3，查看你的日志文档。<br />
<span style="color: red;">#more /usr/local/squid/var/logs/access.log | grep </span><span style="color: blue;">TCP_MEM_HIT</span><br />
该指令可以看到在squid运行过程中，有那些文件被squid缓存到内存中，并返回给访问用户。<br />
<span style="color: red;">#more /usr/local/squid/var/logs/access.log | grep </span><span style="color: blue;">TCP_HIT</span><br />
该指令可以看到在squid运行过程中，有那些文件被squid缓存到cache目录中，并返回给访问用户。<br />
<span style="color: red;">#more /usr/local/squid/var/logs/access.log | grep </span><span style="color: blue;">TCP_MISS</span><br />
该指令可以看到在squid运行过程中，有那些文件没有被squid缓存，而是现重原始服务器获取并返回给访问用户。<br />
关于 TCP_XXXX 等参数及代表的信息，请参看《squid中文权威指南》13.2.1 章节。</p>
<p>文章转载：<a href="http://bbs.chinaunix.net/thread-960422-1-1.html">http://bbs.chinaunix.net/thread-960422-1-1.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/07/squid.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>另类方式屏蔽国内IP</title>
		<link>http://www.viyin.net/2010/07/deny-ip.html</link>
		<comments>http://www.viyin.net/2010/07/deny-ip.html#comments</comments>
		<pubDate>Sat, 10 Jul 2010 17:01:21 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√windows]]></category>
		<category><![CDATA[√思科华为]]></category>
		<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[deny]]></category>
		<category><![CDATA[dnspod]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[国内ip]]></category>
		<category><![CDATA[外贸站]]></category>
		<category><![CDATA[屏蔽ip]]></category>
		<category><![CDATA[屏蔽国内ip]]></category>
		<category><![CDATA[攻击]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=901</guid>
		<description><![CDATA[很多朋友有做英文站被国内网络CC、DDOS的经历，然后就会寻求屏蔽国内访问的相关方式，经常用到的就是通过IP数据库进行分析，排除法进行筛选，不过这样做多少增加了服务器cpu的压力，如果攻击频繁，cpu资源很快就会耗尽。 如果您仅仅需要国外的流量，或者说想上面所谈到的屏蔽国内的访问量，那么下面的方式也许是一个非常简单实用的方式了 域名NS交给dnspod。分线路解析。 首先，我们添加一个默认的解析地址，（请自行对照是您网站的正确IP地址），然后我们依次添加选择3种不同线路的错误IP地址，比如 127.0.0.1，这样来自于国内的访问几乎被彻底的解析到错误的IP地址，也就是可以被另类的屏蔽掉了。]]></description>
			<content:encoded><![CDATA[<p>很多朋友有做英文站被国内网络CC、DDOS的经历，然后就会寻求屏蔽国内访问的相关方式，经常用到的就是通过<a href="http://www.viyin.net/tag/ip" class="st_tag internal_tag" rel="tag" title="Posts tagged with ip">IP</a>数据库进行分析，排除法进行筛选，不过这样做多少增加了服务器cpu的压力，如果攻击频繁，cpu资源很快就会耗尽。<br />
如果您仅仅需要国外的流量，或者说想上面所谈到的屏蔽国内的访问量，那么下面的方式也许是一个非常简单实用的方式了</p>
<p>域名NS交给dnspod。分线路解析。</p>
<p>首先，我们添加一个默认的解析地址，（请自行对照是您网站的正确<a href="http://www.viyin.net/tag/ip" class="st_tag internal_tag" rel="tag" title="Posts tagged with ip">IP</a>地址），然后我们依次添加选择3种不同线路的错误<a href="http://www.viyin.net/tag/ip" class="st_tag internal_tag" rel="tag" title="Posts tagged with ip">IP</a>地址，比如 127.0.0.1，这样来自于国内的访问几乎被彻底的解析到错误的<a href="http://www.viyin.net/tag/ip" class="st_tag internal_tag" rel="tag" title="Posts tagged with ip">IP</a>地址，也就是可以被另类的屏蔽掉了。</p>
<p><a href="http://www.viyin.net/wp-content/uploads/2010/07/viyin.net_.jpg"><img class="alignnone size-full wp-image-902" title="viyin.net" src="http://www.viyin.net/wp-content/uploads/2010/07/viyin.net_.jpg" alt="" width="600" height="286" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/07/deny-ip.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>密码保护：caca代理免费测试(暂停)</title>
		<link>http://www.viyin.net/2010/07/caca-proxy.html</link>
		<comments>http://www.viyin.net/2010/07/caca-proxy.html#comments</comments>
		<pubDate>Wed, 07 Jul 2010 13:54:17 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[caca]]></category>
		<category><![CDATA[caca代理]]></category>
		<category><![CDATA[caca吸附]]></category>
		<category><![CDATA[网赚]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=893</guid>
		<description><![CDATA[无法提供摘要。这是一篇受保护的文章。]]></description>
			<content:encoded><![CDATA[<form action="http://www.viyin.net/wp-pass.php" method="post">
<p>这是一篇受密码保护的文章。您需要提供访问密码：</p>
<p><label for="pwbox-893">密码：<br />
<input name="post_password" id="pwbox-893" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="提交" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/07/caca-proxy.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vbs对比更新删除</title>
		<link>http://www.viyin.net/2010/07/vbs%e5%af%b9%e6%af%94%e6%9b%b4%e6%96%b0%e5%88%a0%e9%99%a4.html</link>
		<comments>http://www.viyin.net/2010/07/vbs%e5%af%b9%e6%af%94%e6%9b%b4%e6%96%b0%e5%88%a0%e9%99%a4.html#comments</comments>
		<pubDate>Sat, 03 Jul 2010 03:14:45 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[vbs]]></category>
		<category><![CDATA[对比删除]]></category>
		<category><![CDATA[对比更新]]></category>
		<category><![CDATA[批处理]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=890</guid>
		<description><![CDATA[整理的是相当的痛苦。。。 更改这三条 echo copyfol &#8220;D:\dnf&#8221;,&#8221;D:\b&#8221; >> c:\diff.vbs echo sdir=&#8221;d:\dnf&#8221; >> c:\diff.vbs echo ddir=&#8221;d:\b&#8221; >> c:\diff.vbs 更改其中的这三条语句。 d:\dnf 为源目录。 d:\b 目的目录（需要更新还原的目录）。 @echo off del /f /q&#160; c:\diff.vbs echo Option Explicit &#62;&#62; c:\diff.vbs &#160; echo sub copyfol(sDir,Ddir) &#62;&#62; c:\diff.vbs &#160; echo&#160; &#160;dim fso,fol,fs,f1, objfile &#62;&#62; c:\diff.vbs echo&#160; &#160;dim arrFiles(),arrSize(),arrModified() &#62;&#62; c:\diff.vbs echo&#160; &#160;dim i &#62;&#62;c:\diff.vbs echo&#160; &#160;if [...]]]></description>
			<content:encoded><![CDATA[<p>整理的是相当的痛苦。。。<br />
更改这三条<br />
echo copyfol &#8220;D:\dnf&#8221;,&#8221;D:\b&#8221;  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo sdir=&#8221;d:\dnf&#8221;  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo ddir=&#8221;d:\b&#8221;  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>更改其中的这三条语句。<br />
d:\dnf 为源目录。  d:\b 目的目录（需要更新还原的目录）。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">@echo off</li>
<li>del /f /q&nbsp; c:\diff.vbs</li>
<li>echo Option Explicit &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>echo sub copyfol(sDir,Ddir) &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>echo&nbsp; &nbsp;dim fso,fol,fs,f1, objfile &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;dim arrFiles(),arrSize(),arrModified() &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;dim i &gt;&gt;c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;if right(ddir,1)^&lt;^&gt;&quot;\&quot; then ddir =ddir ^&amp; &quot;\&quot; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;if right(sdir,1)^&lt;^&gt;&quot;\&quot; then sdir =sdir ^&amp; &quot;\&quot; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;) &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>echo&nbsp; &nbsp;if not (fso.FolderExists(sdir))&nbsp; then &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;msgbox &quot;找不到文件夹：&quot; ^&amp; sdir &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;exit sub &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;end if &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;if not (fso.FolderExists(ddir))&nbsp; then &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; msgbox &quot;找不到文件夹：&quot; ^&amp; sdir &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; exit sub &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;end if &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>&nbsp;</li>
<li>echo&nbsp; &nbsp;set fol=fso.GetFolder(ddir) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;set fs=fol.files &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;i=0 &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;redim arrFiles(fs.count-1) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;redim arrSize(fs.count-1) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;redim arrModified(fs.count-1) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;for each f1 in fs &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; arrfiles(i)=f1.name &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; arrSize(i)=f1.size &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; arrModified(i)=f1.DateLastModified &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; i=i+1 &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;next &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>echo&nbsp; &nbsp;set fol=fso.GetFolder(sdir) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;set fs=fol.files &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;for i = 0 to ubound(arrfiles) &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>&nbsp;</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;dim delfile&nbsp; &nbsp;&gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;delfile=false &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;for each f1 in fs &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if strcomp(arrfiles(i),f1.name,vbTextCompare)=0 then&nbsp; &nbsp; &nbsp;&gt;&gt; c:\diff.vbs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if arrsize(i)^&lt;^&gt; f1.size or arrModified(i)^&lt;^&gt;f1.DateLastModified then &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fso.copyfile f1.path, ddir ^&amp; arrfiles(i),true&nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end if &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; delfile=true '如果文件存在 &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit for &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; next &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; if not delfile then&nbsp; &nbsp; &nbsp; &gt;&gt; c:\diff.vbs&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; set objfile=fso.getfile(ddir ^&amp;arrfiles(i)) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; objfile.Delete (true) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end if&nbsp; &nbsp; &nbsp; &nbsp;&gt;&gt; c:\diff.vbs&nbsp; &nbsp; </li>
<li>echo&nbsp; &nbsp; next &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>echo&nbsp; &nbsp;for each f1 in fs &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;delfile=false &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;for i=0 to ubound(arrfiles) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if strcomp(f1.name,arrfiles(i),vbtextcompare)=0 then &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;delfile=true &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;exit for &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; end if &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; next&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if right (ddir,1)^&lt;^&gt;&quot;\&quot; then ddir=ddir ^&amp;&quot;\&quot; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; if not delfile then&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; c:\diff.vbs </li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;f1.copy ddir,true &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; end if &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;next &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>echo&nbsp; &nbsp;dim fols &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;set fol=Fso.GetFolder(sdir) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;set fols=fol.SubFolders &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;for each f1 in fols &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; if not (fso.FolderExists(ddir ^&amp; f1.name)) then&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;fso.CreateFolder(ddir ^&amp; f1.name) &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; end if &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; copyfol sdir ^&amp; f1.name ,ddir ^&amp; f1.name &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;next &gt;&gt; c:\diff.vbs</li>
<li>echo end sub &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>&nbsp;</li>
<li>echo copyfol &quot;D:\dnf&quot;,&quot;D:\b&quot;&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>echo dim sdir,ddir&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo '源目录&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo sdir=&quot;d:\dnf&quot;&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo '目的目录&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo ddir=&quot;d:\b&quot;&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo function comparefile(sdir,ddir)&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;dim Fso,dFol,dfs,sf1,f1&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;set Fso=CreateObject(&quot;Scripting.FileSystemObject&quot;)&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;if not(Fso.folderexists(sdir)) then&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;msgbox chr(34) ^&amp;sdir ^&amp;chr(34) ^&amp;&quot;文件夹不存在，请确认！&quot;,64&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;exit function&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;end if&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;if not(Fso.folderexists(ddir)) then&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;msgbox chr(34) ^&amp;ddir ^&amp;&quot;&quot;&quot;文件夹不存在，请确认！&quot;,64&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;exit function&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;end if&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;if right(sdir,1)^&lt;^&gt;&quot;\&quot; then sdir=sdir ^&amp;&quot;\&quot;&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;set dFol=fso.getfolder(ddir)&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;set dfs=dfol.files&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;for each f1 in dfs&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;if fso.fileexists(sdir ^&amp; f1.name)&nbsp; then&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;set sf1=fso.GetFile(sdir ^&amp; f1.name)&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if f1.DateLastModified ^&lt;^&gt;sf1.DateLastModified or f1.size^&lt;^&gt;sf1.size then &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;f1.delete&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end if&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;else&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;f1.Delete(true)&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end if&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp;next&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;dim fols&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;set fols=dfol.subfolders&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;for each f1 in fols&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;if not fso.folderexists(sdir ^&amp;f1.name) then&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;f1.delete true&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;else&nbsp; &nbsp; &nbsp;&gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;comparefile sdir ^&amp; f1.name,f1.path&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp; &nbsp; &nbsp;end if&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo&nbsp; &nbsp;next&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo end function&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>echo comparefile sdir,ddir&nbsp; &gt;&gt; c:\diff.vbs</li>
<li>&nbsp;</li>
<li>start c:\diff.vbs</li></ol></div>
<p>@echo off<br />
del /f /q  c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo Option Explicit >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo sub copyfol(sDir,Ddir) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo   dim fso,fol,fs,f1, objfile >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   dim arrFiles(),arrSize(),arrModified() >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   dim i >>c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   if right(ddir,1)^<^>&#8220;\&#8221; then ddir =ddir ^&#038; &#8220;\&#8221; >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   if right(sdir,1)^<^>&#8220;\&#8221; then sdir =sdir ^&#038; &#8220;\&#8221; >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   Set fso = CreateObject(&#8220;Scripting.FileSystemObject&#8221;) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo   if not (fso.FolderExists(sdir))  then >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       msgbox &#8220;找不到文件夹：&#8221; ^&#038; sdir >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       exit sub >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   end if >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   if not (fso.FolderExists(ddir))  then >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo        msgbox &#8220;找不到文件夹：&#8221; ^&#038; sdir >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo        exit sub >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   end if >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo   set fol=fso.GetFolder(ddir) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   set fs=fol.files >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   i=0 >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   redim arrFiles(fs.count-1) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   redim arrSize(fs.count-1) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   redim arrModified(fs.count-1) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   for each f1 in fs >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo      arrfiles(i)=f1.name >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo      arrSize(i)=f1.size >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo      arrModified(i)=f1.DateLastModified >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo      i=i+1 >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   next >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo   set fol=fso.GetFolder(sdir) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   set fs=fol.files >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   for i = 0 to ubound(arrfiles) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo       dim delfile   >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       delfile=false >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       for each f1 in fs >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo           if strcomp(arrfiles(i),f1.name,vbTextCompare)=0 then     >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo               if arrsize(i)^<^> f1.size or arrModified(i)^<^>f1.DateLastModified then >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo                  fso.copyfile f1.path, ddir ^&#038; arrfiles(i),true        >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo               end if >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo              delfile=true &#8216;如果文件存在 >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo               exit for >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo            end if >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo        next >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo        if not delfile then      >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo            set objfile=fso.getfile(ddir ^&#038;arrfiles(i)) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo            objfile.Delete (true) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo         end if       >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo    next >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo   for each f1 in fs >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       delfile=false >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       for i=0 to ubound(arrfiles) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo          if strcomp(f1.name,arrfiles(i),vbtextcompare)=0 then >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo             delfile=true >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo             exit for >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo          end if >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo        next  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo         if right (ddir,1)^<^>&#8220;\&#8221; then ddir=ddir ^&#038;&#8221;\&#8221; >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo        if not delfile then          >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo           f1.copy ddir,true >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo        end if >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   next >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo   dim fols >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   set fol=Fso.GetFolder(sdir) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   set fols=fol.SubFolders >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   for each f1 in fols >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo      if not (fso.FolderExists(ddir ^&#038; f1.name)) then  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo         fso.CreateFolder(ddir ^&#038; f1.name) >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo      end if >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo      copyfol sdir ^&#038; f1.name ,ddir ^&#038; f1.name >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   next >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo end sub >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo copyfol &#8220;D:\dnf&#8221;,&#8221;D:\b&#8221;  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>echo dim sdir,ddir  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo &#8216;源目录  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo sdir=&#8221;d:\dnf&#8221;  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo &#8216;目的目录  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo ddir=&#8221;d:\b&#8221;  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo function comparefile(sdir,ddir)  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   dim Fso,dFol,dfs,sf1,f1  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   set Fso=CreateObject(&#8220;Scripting.FileSystemObject&#8221;)  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   if not(Fso.folderexists(sdir)) then  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       msgbox chr(34) ^&#038;sdir ^&#038;chr(34) ^&#038;&#8221;文件夹不存在，请确认！&#8221;,64  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       exit function  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   end if  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   if not(Fso.folderexists(ddir)) then  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       msgbox chr(34) ^&#038;ddir ^&#038;&#8221;"&#8221;文件夹不存在，请确认！&#8221;,64  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       exit function  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   end if  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   if right(sdir,1)^<^>&#8220;\&#8221; then sdir=sdir ^&#038;&#8221;\&#8221;  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   set dFol=fso.getfolder(ddir)  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   set dfs=dfol.files  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   for each f1 in dfs  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       if fso.fileexists(sdir ^&#038; f1.name)  then  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo           set sf1=fso.GetFile(sdir ^&#038; f1.name)  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo           if f1.DateLastModified ^<^>sf1.DateLastModified or  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
<p>f1.size^<^>sf1.size echo then  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo               f1.delete  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo           end if  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo         else  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo           f1.Delete(true)  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo         end if  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo     next  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   dim fols  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   set fols=dfol.subfolders  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   for each f1 in fols  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       if not fso.folderexists(sdir ^&#038;f1.name) then  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo             f1.delete true  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       else     >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo           comparefile sdir ^&#038; f1.name,f1.path  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo       end if  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo   next  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo end function  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a><br />
echo comparefile sdir,ddir  >> c:\diff.<a href="http://www.viyin.net/tag/vbs" class="st_tag internal_tag" rel="tag" title="Posts tagged with vbs">vbs</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/07/vbs%e5%af%b9%e6%af%94%e6%9b%b4%e6%96%b0%e5%88%a0%e9%99%a4.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>dig基本用法</title>
		<link>http://www.viyin.net/2010/06/dig%e5%9f%ba%e6%9c%ac%e7%94%a8%e6%b3%95.html</link>
		<comments>http://www.viyin.net/2010/06/dig%e5%9f%ba%e6%9c%ac%e7%94%a8%e6%b3%95.html#comments</comments>
		<pubDate>Wed, 09 Jun 2010 08:43:18 +0000</pubDate>
		<dc:creator>vi</dc:creator>
				<category><![CDATA[√文章精选]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[ns]]></category>

		<guid isPermaLink="false">http://www.viyin.net/?p=860</guid>
		<description><![CDATA[# dig 最基本的用法 dig @server sina.com.cn. # 用 dig 查看 zone 数据传输 dig @server zx.xmgd.com. AXFR # 用 dig 查看 zone 数据的增量传输 dig @server zx.xmgd.com. IXFR=N # 用 dig 查看反向解析 dig -x 210.52.83.228 @server # 查找一个域的授权 dns 服务器 dig xmgd.com. +nssearch # 从根服务器开始追踪一个域名的解析过程 dig xmgd.com +trace # 查看你使用的是哪个 F root dns server dig +norec @F.ROOT-SERVERS.NET [...]]]></description>
			<content:encoded><![CDATA[<p># dig 最基本的用法<br />
dig @server sina.com.cn. </p>
<p># 用 dig 查看 zone 数据传输 </p>
<p>dig @server zx.xmgd.com. AXFR </p>
<p># 用 dig 查看 zone 数据的增量传输 </p>
<p>dig @server zx.xmgd.com. IXFR=N </p>
<p># 用 dig 查看反向解析 </p>
<p>dig -x 210.52.83.228 @server </p>
<p># 查找一个域的授权 <a href="http://www.viyin.net/tag/dns" class="st_tag internal_tag" rel="tag" title="Posts tagged with dns">dns</a> 服务器 </p>
<p>dig xmgd.com. +nssearch </p>
<p># 从根服务器开始追踪一个域名的解析过程 </p>
<p>dig xmgd.com +trace<br />
<span id="more-860"></span></p>
<p># 查看你使用的是哪个 F root <a href="http://www.viyin.net/tag/dns" class="st_tag internal_tag" rel="tag" title="Posts tagged with dns">dns</a> server  </p>
<p>dig +norec @F.ROOT-SERVERS.NET HOSTNAME.BIND CHAOS TXT</p>
<p>来源:http://www.chinaunix.net 作者:阿骁</p>
<p>[root@localhost ~]# dig www.viyin.cn +trace</p>
<p>; <<>> DiG 9.3.4-P1 <<>> www.viyin.cn +trace<br />
;; global options:  printcmd<br />
.                       342786  IN      NS      i.root-servers.net.<br />
.                       342786  IN      NS      g.root-servers.net.<br />
.                       342786  IN      NS      f.root-servers.net.<br />
.                       342786  IN      NS      d.root-servers.net.<br />
.                       342786  IN      NS      h.root-servers.net.<br />
.                       342786  IN      NS      j.root-servers.net.<br />
.                       342786  IN      NS      l.root-servers.net.<br />
.                       342786  IN      NS      m.root-servers.net.<br />
.                       342786  IN      NS      b.root-servers.net.<br />
.                       342786  IN      NS      a.root-servers.net.<br />
.                       342786  IN      NS      e.root-servers.net.<br />
.                       342786  IN      NS      c.root-servers.net.<br />
.                       342786  IN      NS      k.root-servers.net.<br />
;; Received 512 bytes from 61.177.7.1#53(61.177.7.1) in 17 ms</p>
<p>cn.                     172800  IN      NS      d.<a href="http://www.viyin.net/tag/dns" class="st_tag internal_tag" rel="tag" title="Posts tagged with dns">dns</a>.cn.<br />
cn.                     172800  IN      NS      ns.cernet.net.<br />
cn.                     172800  IN      NS      c.<a href="http://www.viyin.net/tag/dns" class="st_tag internal_tag" rel="tag" title="Posts tagged with dns">dns</a>.cn.<br />
cn.                     172800  IN      NS      b.<a href="http://www.viyin.net/tag/dns" class="st_tag internal_tag" rel="tag" title="Posts tagged with dns">dns</a>.cn.<br />
cn.                     172800  IN      NS      e.<a href="http://www.viyin.net/tag/dns" class="st_tag internal_tag" rel="tag" title="Posts tagged with dns">dns</a>.cn.<br />
cn.                     172800  IN      NS      a.<a href="http://www.viyin.net/tag/dns" class="st_tag internal_tag" rel="tag" title="Posts tagged with dns">dns</a>.cn.<br />
;; Received 293 bytes from 192.36.148.17#53(i.root-servers.net) in 185 ms</p>
<p>viyin.cn.               21600   IN      NS      ns1.dnspod.net.<br />
viyin.cn.               21600   IN      NS      ns2.dnspod.net.<br />
;; Received 76 bytes from 203.119.28.1#53(d.<a href="http://www.viyin.net/tag/dns" class="st_tag internal_tag" rel="tag" title="Posts tagged with dns">dns</a>.cn) in 38 ms</p>
<p>www.viyin.cn.           600     IN      A       222.186.31.20<br />
;; Received 46 bytes from 121.12.116.83#53(ns1.dnspod.net) in 31 ms</p>
<p>[root@localhost ~]# dig www.viyin.net +trace</p>
<p>; <<>> DiG 9.3.4-P1 <<>> www.viyin.net +trace<br />
;; global options:  printcmd<br />
.                       422755  IN      NS      i.root-servers.net.<br />
.                       422755  IN      NS      c.root-servers.net.<br />
.                       422755  IN      NS      d.root-servers.net.<br />
.                       422755  IN      NS      j.root-servers.net.<br />
.                       422755  IN      NS      g.root-servers.net.<br />
.                       422755  IN      NS      f.root-servers.net.<br />
.                       422755  IN      NS      a.root-servers.net.<br />
.                       422755  IN      NS      l.root-servers.net.<br />
.                       422755  IN      NS      b.root-servers.net.<br />
.                       422755  IN      NS      e.root-servers.net.<br />
.                       422755  IN      NS      k.root-servers.net.<br />
.                       422755  IN      NS      h.root-servers.net.<br />
.                       422755  IN      NS      m.root-servers.net.<br />
;; Received 500 bytes from 61.177.7.1#53(61.177.7.1) in 16 ms</p>
<p>net.                    172800  IN      NS      f.gtld-servers.net.<br />
net.                    172800  IN      NS      h.gtld-servers.net.<br />
net.                    172800  IN      NS      a.gtld-servers.net.<br />
net.                    172800  IN      NS      c.gtld-servers.net.<br />
net.                    172800  IN      NS      b.gtld-servers.net.<br />
net.                    172800  IN      NS      m.gtld-servers.net.<br />
net.                    172800  IN      NS      i.gtld-servers.net.<br />
net.                    172800  IN      NS      k.gtld-servers.net.<br />
net.                    172800  IN      NS      l.gtld-servers.net.<br />
net.                    172800  IN      NS      j.gtld-servers.net.<br />
net.                    172800  IN      NS      d.gtld-servers.net.<br />
net.                    172800  IN      NS      g.gtld-servers.net.<br />
net.                    172800  IN      NS      e.gtld-servers.net.<br />
;; Received 500 bytes from 192.33.4.12#53(c.root-servers.net) in 204 ms</p>
<p>viyin.net.              172800  IN      NS      ns1.dnspod.net.<br />
viyin.net.              172800  IN      NS      ns2.dnspod.net.<br />
;; Received 106 bytes from 192.35.51.30#53(f.gtld-servers.net) in 207 ms</p>
<p>www.viyin.net.          600     IN      A       218.6.15.105<br />
;; Received 47 bytes from 121.12.116.83#53(ns1.dnspod.net) in 24 ms</p>
]]></content:encoded>
			<wfw:commentRss>http://www.viyin.net/2010/06/dig%e5%9f%ba%e6%9c%ac%e7%94%a8%e6%b3%95.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
