<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[运维进行时]]></title> 
<link>https://blog.liuts.com/index.php</link> 
<description><![CDATA[互联网运维与架构]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[运维进行时]]></copyright>
<item>
<link>https://blog.liuts.com/post/114/</link>
<title><![CDATA[WIN下查看端口占用的程序]]></title> 
<author>root &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Windows]]></category>
<pubDate>Thu, 22 May 2008 13:06:08 +0000</pubDate> 
<guid>https://blog.liuts.com/post/114/</guid> 
<description>
<![CDATA[ 
	经常我们在启动应用的时候发现系统需要的端口被别的程序占用，如何知道谁占有了我们需要的端口，很多人都比较头疼，下面就介绍一种非常简单的方法，希望对大家有用假如我们需要确定谁占用了我们的9050端口<br/>1、Windows平台<br/>在windows命令行窗口下执行：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>C:&#92;>netstat -aon&#124;findstr "9050" TCP 127.0.0.1:9050<br/>0.0.0.0:0 LISTENING 2016<br/></div></div><br/>看到了吗，端口被进程号为2016的进程占用，继续执行下面命令：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>C:&#92;>tasklist&#124;findstr "2016"<br/>tor.exe&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2016 Console&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 16,064 K<br/></div></div><br/>很清楚吧，tor占用了你的端口<br/><br/>Tags - <a href="https://blog.liuts.com/tags/%25E7%25AB%25AF%25E5%258F%25A3%25E5%258D%25A0%25E7%2594%25A8/" rel="tag">端口占用</a>
]]>
</description>
</item><item>
<link>https://blog.liuts.com/post/112/</link>
<title><![CDATA[在WIN下用ISAPI_REWRITE配制防盗链]]></title> 
<author>root &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Windows]]></category>
<pubDate>Thu, 22 May 2008 12:58:14 +0000</pubDate> 
<guid>https://blog.liuts.com/post/112/</guid> 
<description>
<![CDATA[ 
	一、下载ISAPI_REWRITE并安装<br/>二、修改httpd.ini<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>RewriteCond Host: (img&#92;.abc&#92;.cn)<br/>RewriteCond Referer: (?!http://&#92;1.*).*<br/>RewriteCond Referer: (?!http://(?:.*&#92;.baidu&#92;.com&#124;baidu&#92;.com&#124;.*<br/>&#92;.google&#92;.net&#124;google&#92;.net&#124;.*&#92;.sohu&#92;.com&#124;sohu&#92;.com)).+<br/>RewriteRule .*&#92;.(?:jpg&#124;gif&#124;bmp) /block.gif [I,O,N]<br/></div></div><br/>三、上传/block.gif文件到在虚拟主机img.abc.cn站点根目录下.<br/>四、在IIS中修改?block.gif属性->http头->启用内容失效->立即过期<br/>五、重启IIS完毕。<br/>注：当从限制访问到允许访问,发现在IE下可以立即过期,firefox就不行。<br/>Tags - <a href="https://blog.liuts.com/tags/isapi_rewrite/" rel="tag">isapi rewrite</a>
]]>
</description>
</item>
</channel>
</rss>