<?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>开心e点 &#187; troubleshoot</title>
	<atom:link href="http://www.ebnd.cn/tag/troubleshoot/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ebnd.cn</link>
	<description>好好学习 天天向上</description>
	<lastBuildDate>Tue, 21 Jun 2011 15:00:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Windows / Linux 下使用符号链接完全指南</title>
		<link>http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/</link>
		<comments>http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 10:25:34 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=776</guid>
		<description><![CDATA[在 Windows 下“创建快捷方式”是很常用的一个功能，快捷方式是一个后缀为 .lnk 的特殊文件，其实这跟 *nix 环境下的符号链接根本不是一回事情。 如果不明白什么是符号链接的话，可以参考这篇文章。另外，符号链接有软硬之分，区别可以参考这篇文章。 这里有篇文章： Complete Guide to Symbolic Links(symlinks) on Windows or Linux，讲了如何在 Windows 和 Linux 使用符号链接。 简单翻译归纳如下： 在任意版本的 Windows 资源管理器中创建符号链接 用一个免费的工具 Link Shell Extension可以很方便的创建符号链接，不过在安装这个工具之前，还要先安装 Visual Studio 2005 Redistributable： 然后再安装 Link Shell Extension： 要创建符号链接，首先在资源管理器中定位到创建符号链接的源文件或是文件夹，然后点击右键，选择“Pick Link Source”： 再换目录到想要创建符号链接到的目标文件夹，在空白处单击右键，选择“Drop as…”，然后再选择一个符号链接方式： Windows XP 下也一样可以创建： 通过命令行创建符号链接： Windows Vista/7 终于提供了命令行 mklink 创建真正意义上的符号链接， 不过运行这个命令还需要管理员权限： 然后在命令行里面就可以用 mklink [...]]]></description>
			<content:encoded><![CDATA[<p>在 Windows 下“创建快捷方式”是很常用的一个功能，快捷方式是一个后缀为 .lnk 的特殊文件，其实这跟 *nix 环境下的<a href="http://zh.wikipedia.org/zh/符号链接">符号链接</a>根本不是一回事情。</p>
<p>如果不明白什么是符号链接的话，可以参考<a href="http://zh.wikipedia.org/zh/符号链接" alt="wiki: 符号链接">这篇文章</a>。另外，符号链接有软硬之分，区别可以参考<a href="http://keren.blog.51cto.com/720558/170979" alt="UNIX文件:硬链接和符号链接">这篇文章</a>。</p>
<p>这里有篇文章： <a href="http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/">Complete Guide to Symbolic Links(symlinks) on Windows or Linux</a>，讲了如何在 Windows 和 Linux 使用符号链接。</p>
<p>简单翻译归纳如下：</p>
<p><strong>在任意版本的 Windows 资源管理器中创建符号链接</strong></p>
<p>用一个免费的工具 <a href="http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html#download">Link Shell Extension</a>可以很方便的创建符号链接，不过在安装这个工具之前，还要先安装 Visual Studio 2005 Redistributable：<br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/04/image266.png" alt="Visual Studio 2005 Redistributable" /></p>
<p>然后再安装 Link Shell Extension：<br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/04/image268.png" alt="" /></p>
<p>要创建符号链接，首先在资源管理器中定位到创建符号链接的源文件或是文件夹，然后点击右键，选择“Pick Link Source”：<br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/04/image269.png" alt="" /></p>
<p>再换目录到想要创建符号链接到的目标文件夹，在空白处单击右键，选择“Drop as…”，然后再选择一个符号链接方式：<br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/04/image270.png" alt="" /></p>
<p>Windows XP 下也一样可以创建：<br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/04/image272.png" alt="" /></p>
<p><strong>通过命令行创建符号链接：</strong><br />
Windows Vista/7 终于提供了命令行 mklink 创建真正意义上的符号链接， 不过运行这个命令还需要管理员权限：<br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/04/image144.png" alt="" /></p>
<p>然后在命令行里面就可以用 mklink 命令创建符号链接了，不过遗憾的是，这个命令所需的参数格式跟 *nix 下的不同，而且傻傻的还需要用户来指定不同参数来决定创建文件还是文件夹的符号链接。mklink 命令行参数为：</p>
<p><img src="http://s2.ebnd.cn/201103/1304_o.png" alt="" /></p>
<p>现在也有另外一个<a href="http://neosmart.net/blog/2011/open-source-100-compatible-ln-for-windows-and-junction-point-library/">开源的工具 ln</a> 可以下载，提供了跟 *nix 下一样的命令行方式创建符号链接，而且也不用再指定文件还是文件夹了。使用方法比较简单，就不赘述了。</p>
<p>Windows XP 可以用 <a href="http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx">Junction </a>这个免费工具，把放到 PATH 中去以后，在命令行中如下运行命令就可以了：<br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/04/image275.png" alt="" /></p>
<p><strong>*NIX 下创建符号链接：</strong><br />
这个简单，用 ln 命令来搞定了：<br />
<img src="http://www.howtogeek.com/wp-content/uploads/2010/04/image282.png" alt="" /></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li><li>十一月 28, 2010 -- <a href="http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/" title="Windows .bat 文件中执行 Groovy 脚本">Windows .bat 文件中执行 Groovy 脚本</a> (0)</li><li>四月 28, 2010 -- <a href="http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/" title="MyEnTunnel 代理共享">MyEnTunnel 代理共享</a> (2)</li><li>三月 29, 2010 -- <a href="http://www.ebnd.cn/2010/03/29/2-tips-for-windows-7-optimization/" title="Windows7 优化两则">Windows7 优化两则</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何修改浏览器Cookie</title>
		<link>http://www.ebnd.cn/2011/02/22/edit-browser-cookies/</link>
		<comments>http://www.ebnd.cn/2011/02/22/edit-browser-cookies/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 16:16:12 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=761</guid>
		<description><![CDATA[网站通过 Cookie 保存了我们访问网站的信息，在不同的浏览器中修改 Cookie 可以如下操作： Firefox: 安装 Web Developer 插件，装完重启之后会出现一排新的工具栏，点击 Cookies -> Add Cookie&#8230; 即可增加/修改一个Cookie了。 Opera: Opera 可以在 菜单 -> 工具 -> 高级 -> Cookie&#8230; 对话框中找到当前的页面的 Cookie 项，选中以后点“编辑&#8230;”即可修改。如果修改不成功的话，有可能是因为启用了 Opera Turbo 加速器导致的，可以检查 菜单 -> 工具 -> 快速参数(F12) -> 启动Opera Turbo 是否开启，如开启着的话，把它关闭以后再试试是不是可以了。 Chrome: 安装 Edit This Cookie 插件，之后点击插件图标即可操作 Cookie。 IE: 可以用 IECookiesView 碰碰运气，如果有其他更好的办法也请告知。 除上述工具之外，免费工具Fiddler 和商业软件 HttpWatch 可以通过设置断点，跨浏览器调试所有的 [...]]]></description>
			<content:encoded><![CDATA[<p>网站通过 <a href="http://en.wikipedia.org/wiki/HTTP_cookie">Cookie</a> 保存了我们访问网站的信息，在不同的浏览器中修改 Cookie 可以如下操作：</p>
<p><strong>Firefox</strong>:<br />
安装 <a href="https://addons.mozilla.org/en-us/firefox/addon/web-developer/">Web Developer</a> 插件，装完重启之后会出现一排新的工具栏，点击 Cookies -> Add Cookie&#8230; 即可增加/修改一个Cookie了。
</p>
<p>
<strong>Opera</strong>:<br />
Opera 可以在 菜单 -> 工具 -> 高级 -> Cookie&#8230; 对话框中找到当前的页面的 Cookie 项，选中以后点“编辑&#8230;”即可修改。如果修改不成功的话，有可能是因为启用了 Opera Turbo 加速器导致的，可以检查 菜单 -> 工具 -> 快速参数(F12) -> 启动Opera Turbo 是否开启，如开启着的话，把它关闭以后再试试是不是可以了。
</p>
<p>
<strong>Chrome</strong>:<br />
安装<a href="https://chrome.google.com/extensions/detail/fngmhnnpilhplaeedifhccceomclgfbg"> Edit This Cookie</a> 插件，之后点击插件图标即可操作 Cookie。
</p>
<p>
<strong>IE</strong>:<br />
可以用 <a href="http://www.nirsoft.net/utils/iecookies.html">IECookiesView </a>碰碰运气，如果有其他更好的办法也请告知。</p>
<p>
除上述工具之外，免费工具<a href="http://www.fiddler2.com/fiddler2/">Fiddler </a> 和商业软件 <a href="http://www.httpwatch.com/">HttpWatch</a> 可以通过设置断点，跨浏览器调试所有的 HTTP(S)流量，很好很强大。只是需要写脚本，就改 Cookie 这个功能没有上述专门的工具来的方便，有杀鸡用牛刀之嫌。
</p>
<p><br/></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li><li>十一月 28, 2010 -- <a href="http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/" title="Windows .bat 文件中执行 Groovy 脚本">Windows .bat 文件中执行 Groovy 脚本</a> (0)</li><li>四月 28, 2010 -- <a href="http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/" title="MyEnTunnel 代理共享">MyEnTunnel 代理共享</a> (2)</li><li>三月 29, 2010 -- <a href="http://www.ebnd.cn/2010/03/29/2-tips-for-windows-7-optimization/" title="Windows7 优化两则">Windows7 优化两则</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2011/02/22/edit-browser-cookies/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>常用软件</title>
		<link>http://www.ebnd.cn/2011/01/27/software-collection-recommendation/</link>
		<comments>http://www.ebnd.cn/2011/01/27/software-collection-recommendation/#comments</comments>
		<pubDate>Thu, 27 Jan 2011 07:15:07 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=740</guid>
		<description><![CDATA[Windows: Notepad++: Windows 开源下的文本编辑器，另外也可以给 Notepad++ 换主题。 Process Hacker: Windows 平台下的开源进程查看工具。 Sysinternals Suite: Windows 平台下的一些实用工具集合，已被 Microsoft 收购。 Cygwin: 许多 POSIX 系统(Linux, BSD, 等) 下自由软件移植到 Windows 上的集合，国内更新源推荐： http://mirrors.163.com/cygwin。 eMule: 开源的电驴版本，非 VeryCD 的 easyMule，推荐使用 eMule Mod 版本。 FastCopy: 日本人开发的一款 Windows 平台下的快速拷贝/删除的程序，开源。 FileZilla: 开源的 FTP 工具，支持 Windows, Mac OS X 及 Linux。 Search Everything: 可用来查找定位 Windows 机器上的文件/文件夹，体积小，速度快，免费。 TrueCrypt: 硬盘加密工具，支持 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Windows</strong>:</p>
<p>
<a href="http://notepad-plus-plus.org" target="_blank">Notepad++</a>: Windows 开源下的文本编辑器，另外也可以<a href="http://blog.b3inside.com/essay/themes-for-notepad/" target="_blank">给 Notepad++ 换主题</a>。<br />
<a href="http://processhacker.sourceforge.net" target="_blank">Process Hacker</a>: Windows 平台下的开源进程查看工具。<br />
<a href="http://technet.microsoft.com/zh-cn/sysinternals/bb842062" target="_blank">Sysinternals Suite</a>: Windows 平台下的一些实用工具集合，已被 Microsoft 收购。<br />
<a href="http://www.cygwin.com" target="_blank">Cygwin</a>: 许多 POSIX 系统(Linux, BSD, 等) 下自由软件移植到 Windows 上的集合，国内更新源推荐： http://mirrors.163.com/cygwin。<br />
<a href="http://www.emule-project.net" target="_blank">eMule</a>: 开源的电驴版本，非 VeryCD 的 easyMule，推荐使用 <a href="http://www.emule-mods.de/" target="_blank">eMule Mod</a> 版本。<br />
<a href="http://ipmsg.org/tools/fastcopy.html.en" target="_blank">FastCopy</a>: 日本人开发的一款 Windows 平台下的快速拷贝/删除的程序，开源。<br />
<a href="http://www.filezilla-project.org" target="_blank">FileZilla</a>: 开源的 FTP 工具，支持 Windows, Mac OS X 及 Linux。<br />
<a href="http://www.voidtools.com/" target="_blank">Search Everything</a>: 可用来查找定位 Windows 机器上的文件/文件夹，体积小，速度快，免费。<br />
<a href="http://www.truecrypt.org/" target="_blank">TrueCrypt</a>: 硬盘加密工具，支持 Windows, Mac OS X 及 Linux。</p>
<p><br class="spacer_" /></p>
<p><strong>Linux (Ubuntu)</strong>:</p>
<p>
<a href="http://ubuntu-tweak.com/" target="_blank">ubuntu-tweak</a>: 国人开发的 Ubuntu 优化大师。<br />
<a href="http://www.nomachine.com/" target="_blank">NoMachine NX</a>: Linux 平台下的远程控制软件，速度优于VNC，开源的版本为：<a href="http://freenx.berlios.de/" target="_blank">FreeNX</a>。<br />
<a href="http://www.amule.org/" target="_blank">aMule</a>: Linux 平台下的电驴。
</p>
<p><br class="spacer_" /></p>
<p><strong>软件开发 (Java及其他)</strong>:</p>
<p><a href="http://java.decompiler.free.fr/" target="_blank">JD-GUI</a>: Java 反编译工具，支持 Windows, Mac OS X 及 Linux。<br />
<a href="http://www.eclipse.org/mat/" target="_blank">Memory Analyzer(MAT)</a>: Java heap 分析工具，可用来查找内存泄露。<br />
<a href="http://squirrel-sql.sourceforge.net/" target="_blank">Squirrel SQL Client</a>: 通过 JDBC 连接数据库的客户端软件。</p>
<p><br class="spacer_" /></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li><li>十一月 28, 2010 -- <a href="http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/" title="Windows .bat 文件中执行 Groovy 脚本">Windows .bat 文件中执行 Groovy 脚本</a> (0)</li><li>四月 28, 2010 -- <a href="http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/" title="MyEnTunnel 代理共享">MyEnTunnel 代理共享</a> (2)</li><li>三月 29, 2010 -- <a href="http://www.ebnd.cn/2010/03/29/2-tips-for-windows-7-optimization/" title="Windows7 优化两则">Windows7 优化两则</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2011/01/27/software-collection-recommendation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>查看占用端口的是什么程序</title>
		<link>http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/</link>
		<comments>http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 15:55:54 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=714</guid>
		<description><![CDATA[Windows XP 下，可以用 Fport 这个命令行程序来查看都是有哪些程序/进程占用了端口。原先这个工具是 Foundstone 公司开发的，后来 Foundstone 被 McAfee 收购之后，还是由后者提供免费下载，不过没有再继续开发了。所以最后的版本就是 v2.0，并不支持 Vista / Win7。 具体使用可以看这篇文章。程序界面如下： Windows 7 下，可以用 NirSoft 公司的免费工具 cports。 这是一个图形工具，可以定义过滤条件，使用很方便。 界面如下： Linux下，则可以用 netstat 和 lsof 命令。lsof 命令事实上不仅仅可以列出端口，它是 “list open file” 的缩写，而在 Linux 下，网络 Socket 也可以看作一种文件的，所以用 lsof 可以查看端口，同样也可以查看是哪些程序/进程打开了某一个硬盘文件，或是查看某个进程打开了哪些文件。具体命令的使用，查 man lsof 就行了，也可以参考这篇文章。另类的用法还可以用来lsof恢复删除的文件，说不定什么时候还真可以救救急的。 相关文章三月 6, 2011 -- Windows / Linux 下使用符号链接完全指南 (1)二月 22, 2011 -- [...]]]></description>
			<content:encoded><![CDATA[<p>Windows XP 下，可以用 <a title="Fport v2.0" href="http://www.mcafee.com/us/downloads/free-tools/fport.aspx">Fport </a>这个命令行程序来查看都是有哪些程序/进程占用了端口。原先这个工具是 Foundstone 公司开发的，后来 Foundstone 被 McAfee <a title="McAfee to buy Foundstone for $US86 million" href="http://www.arnnet.com.au/article/10662/mcafee_buy_foundstone_us86_million/">收购</a>之后，还是由后者提供免费下载，不过没有再继续开发了。所以最后的版本就是 v2.0，并不支持 Vista / Win7。 具体使用可以看<a title="使用fport与Mport进行端口安全检查 " href="http://www.itjj.net/tech/cisco/anquan/gongfang/20080604/300382.html">这篇文章</a>。程序界面如下：</p>
<p><img src="http://www.ibiblio.org/security/images/fport.jpg" alt="fport command line interface" width="665" height="328" /></p>
<p><br class="spacer_" /></p>
<p>Windows 7 下，可以用 NirSoft 公司的免费工具 <a title="CurrPorts v1.85 - Monitoring Opened TCP/IP network ports / connections " href="http://www.nirsoft.net/utils/cports.html">cports</a>。 这是一个图形工具，可以定义过滤条件，使用很方便。 界面如下：</p>
<p><img src="http://www.nirsoft.net/utils/cports.gif" alt="nirsoft - cports" width="627" height="354" /></p>
<p><br class="spacer_" /></p>
<p>Linux下，则可以用 netstat 和 <a title="lsof - wiki" href="http://en.wikipedia.org/wiki/Lsof">lsof </a>命令。lsof 命令事实上不仅仅可以列出端口，它是 “list open file” 的缩写，而在 Linux 下，网络 Socket 也可以看作一种文件的，所以用 lsof 可以查看端口，同样也可以查看是哪些程序/进程打开了某一个硬盘文件，或是查看某个进程打开了哪些文件。具体命令的使用，查 <a title="man lsof" href="http://linux.die.net/man/8/lsof">man lsof </a>就行了，也可以参考<a title="lsof Identify Resource Locked Process " href="http://thuannvn.blogspot.com/2009/01/lsof-identify-resource-locked-process.html">这篇文章</a>。另类的用法还可以用来<a title="Linux 使用lsof恢复删除的文件" href="http://www.51testing.com/?uid-116228-action-viewspace-itemid-216789">lsof恢复删除的文件</a>，说不定什么时候还真可以救救急的。</p>
<p><img src="http://farm1.static.flickr.com/92/274349791_1650c7b784.jpg" alt="netstat vs lsof" width="500" height="195" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li><li>十一月 28, 2010 -- <a href="http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/" title="Windows .bat 文件中执行 Groovy 脚本">Windows .bat 文件中执行 Groovy 脚本</a> (0)</li><li>四月 28, 2010 -- <a href="http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/" title="MyEnTunnel 代理共享">MyEnTunnel 代理共享</a> (2)</li><li>三月 29, 2010 -- <a href="http://www.ebnd.cn/2010/03/29/2-tips-for-windows-7-optimization/" title="Windows7 优化两则">Windows7 优化两则</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Chrome 下重载 pac 代理设置</title>
		<link>http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/</link>
		<comments>http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 04:49:55 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=607</guid>
		<description><![CDATA[Chrome 浏览器中设置 socks 代理前面介绍过了。如果修改代理的方式，比如换成“直接连接”等，Chrome 是能马上探测到这种变化从而用新的代理设置的；但是如果修改了 pac 文件中的内容，不重启 Chrome 的话，是不会重新加载最新的 pac 代理设置的，每次都要重启的话那还是太不方便了。 其实这个问题是可以解决的，也很简单，进入 chrome://net-internals 或是 about:net-internals， 会出现一个很多 Tab 页的配置，选中 Proxy，然后点 “Re-apply settings”，就可以立即让改动的代理生效了。 关于 chrome://net-internals 的文档在此，还是挺有意思的。有人说这是 Chrome 自带的抓包工具。一个浏览器带抓包的功能，似乎有点越俎代庖，但是如果从 Chrome OS 的角度来看，则顺理成章了。 相关文章十二月 7, 2010 -- 通过 http 代理使用 subversion (0)九月 10, 2009 -- Windows XP 下 Chrome 浏览器 SOCKS 代理设置 (1)三月 6, 2011 -- Windows / Linux [...]]]></description>
			<content:encoded><![CDATA[<p>Chrome 浏览器中设置 socks 代理<a href="http://www.ebnd.cn/2009/09/10/socks-proxy-settings-in-chrome-winxp/" title="Windows XP 下 Chrome 浏览器 SOCKS 代理设置">前面介绍过了</a>。如果修改代理的方式，比如换成“直接连接”等，Chrome 是能马上探测到这种变化从而用新的代理设置的；但是如果修改了 pac 文件中的内容，不重启 Chrome 的话，是不会重新加载最新的 pac 代理设置的，每次都要重启的话那还是太不方便了。</p>
<p>其实这个问题是可以解决的，也很简单，进入 chrome://net-internals 或是 about:net-internals， 会出现一个很多 Tab 页的配置，选中 Proxy，然后点 “Re-apply settings”，就可以立即让改动的代理生效了。</p>
<p>关于 chrome://net-internals 的文档<a href="http://www.chromium.org/developers/design-documents/view-net-internals">在此</a>，还是挺有意思的。有人说这是 Chrome 自带的抓包工具。一个浏览器带抓包的功能，似乎有点越俎代庖，但是如果从 Chrome OS 的角度来看，则顺理成章了。</p>
<p><br/></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li><li>九月 10, 2009 -- <a href="http://www.ebnd.cn/2009/09/10/socks-proxy-settings-in-chrome-winxp/" title="Windows XP 下 Chrome 浏览器 SOCKS 代理设置">Windows XP 下 Chrome 浏览器 SOCKS 代理设置</a> (1)</li><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十一月 28, 2010 -- <a href="http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/" title="Windows .bat 文件中执行 Groovy 脚本">Windows .bat 文件中执行 Groovy 脚本</a> (0)</li><li>四月 28, 2010 -- <a href="http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/" title="MyEnTunnel 代理共享">MyEnTunnel 代理共享</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过 http 代理使用 subversion</title>
		<link>http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/</link>
		<comments>http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 05:06:29 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=544</guid>
		<description><![CDATA[在公司的环境下，因为种种限制，往往不能很顺利的直接使用 subversion 访问外面的资源，需要用代理，解决之道通常有两种，记录一下。 1. repository 是 http:// 协议的，比如 google code 上的项目 在 Windows 上的话，可以打开 %APPDATA%\Subversion\servers 文件，找到最后的 [global] 部分，添加 http-proxy-host, http-proxy-port 等来添加代理，其他也有一些参数，如 http-proxy-username, http-proxy-password, http-compression, 需要的话也可以添加上。配置如下： http-proxy-host = xxx.xxx.xxx.xxx http-proxy-port = xxxx Linux 也同理，可以修改 ~/.subversion/servers 文件来添加代理。 2. repository 是 svn:// 协议的 这时候用上面的方法在 servers 文件中添加的参数是没有用的，而办法可以参考这篇文章。 Ubuntu 的话，可以先运行 apt-get install libnet-proxy-perl 安装代理脚本，然后运行下面的命令： connect-tunnel -P proxy.company.com:8080 -T 10234:svn.example.com:3690 &#38; [...]]]></description>
			<content:encoded><![CDATA[<p>在公司的环境下，因为种种限制，往往不能很顺利的直接使用 subversion 访问外面的资源，需要用代理，解决之道通常有两种，记录一下。</p>
<p>1.  repository 是 http:// 协议的，比如 google code 上的项目</p>
<p>在 Windows 上的话，可以打开 %APPDATA%\Subversion\servers 文件，找到最后的 [global] 部分，添加 http-proxy-host, http-proxy-port 等来添加代理，其他也有一些参数，如 http-proxy-username, http-proxy-password, http-compression, 需要的话也可以添加上。配置如下：</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">http-proxy-host = xxx.xxx.xxx.xxx
http-proxy-port = xxxx</pre></div></div>

<p>Linux 也同理，可以修改 ~/.subversion/servers 文件来添加代理。</p>
<p>2.  repository 是 svn:// 协议的</p>
<p>这时候用上面的方法在 servers 文件中添加的参数是没有用的，而办法可以参考<a href="http://stackoverflow.com/questions/82530/svn-over-http-proxy">这篇文章</a>。</p>
<p>Ubuntu 的话，可以先运行 apt-get install libnet-proxy-perl 安装代理脚本，然后运行下面的命令：</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">connect-tunnel -P proxy.company.com:8080 -T 10234:svn.example.com:3690 &amp;
svn checkout svn://localhost:10234/path/to/trunk</pre></div></div>

<p>另外也可以参考 apache 网站上的<a href="http://subversion.apache.org/faq.zh.html#proxy" alt="我必须通过代理访问网络,我该怎么办? ">这篇文章</a>。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十一月 28, 2010 -- <a href="http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/" title="Windows .bat 文件中执行 Groovy 脚本">Windows .bat 文件中执行 Groovy 脚本</a> (0)</li><li>四月 28, 2010 -- <a href="http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/" title="MyEnTunnel 代理共享">MyEnTunnel 代理共享</a> (2)</li><li>三月 29, 2010 -- <a href="http://www.ebnd.cn/2010/03/29/2-tips-for-windows-7-optimization/" title="Windows7 优化两则">Windows7 优化两则</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows .bat 文件中执行 Groovy 脚本</title>
		<link>http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/</link>
		<comments>http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 14:00:25 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[groovy]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=526</guid>
		<description><![CDATA[在 Windows 脚本中执行 Groovy 代码有时候还是很方便的，调用的方式可以参考这篇文档。 如想得到uuid，可以用： 1 2 groovy -e &#34;println(UUID.randomUUID().toString())&#34; echo &#34;groovy execution finished!&#34; 但如果安装的 Groovy 版本不是 Windows-Installer 的话，在 .bat 里面调用 Groovy 脚本会碰到麻烦，就是执行到上面的脚本之后，接下去的脚本 echo 就不会被执行，.bat 就直接退出了。 查了下，找到了原因 (参考)。原来是 Windows-Installer 安装的是 groovy.exe，而 zip release 的版本是 groovy.bat，就是另一个bat脚本，如果不用 call 的话，就会导致程序的控制权到了 groovy.bat 中，从而 Groovy 脚本执行结束了就直接退出了。 "The 'groovy' command actually is a batch file whose full name is 'groovy.bat' [...]]]></description>
			<content:encoded><![CDATA[<p>在 Windows 脚本中执行 <a href="http://groovy.codehaus.org">Groovy</a> 代码有时候还是很方便的，调用的方式可以参考<a href="http://groovy.codehaus.org/Groovy+CLI">这篇文档</a>。<br />
如想得到uuid，可以用：</p>
<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">groovy <span style="color: #339933;">-</span>e <span style="color: #0000ff;">&quot;println(UUID.randomUUID().toString())&quot;</span>
echo <span style="color: #0000ff;">&quot;groovy execution finished!&quot;</span></pre></td></tr></table></div>

</p>
<p>但如果安装的 Groovy 版本不是 Windows-Installer 的话，在 .bat 里面调用 Groovy 脚本会碰到麻烦，就是执行到上面的脚本之后，接下去的脚本 echo 就不会被执行，.bat 就直接退出了。</p>
<p>查了下，找到了原因 (<a href="http://thiamteck.blogspot.com/2008/08/running-groovy-from-windows-bat-file.html">参考</a>)。原来是 Windows-Installer 安装的是 groovy.exe，而 zip release 的版本是 groovy.bat，就是另一个bat脚本，如果不用 call 的话，就会导致程序的控制权到了 groovy.bat 中，从而 Groovy 脚本执行结束了就直接退出了。</p>
<p>
<code>"The 'groovy' command actually is a batch file whose full name is 'groovy.bat' but under the Windows command prompt it's OK to not specify the '.bat' part. When you don't use 'call' to transfer control to another batch file but just use the name of the file then there's no way to return..."<br />
</code>
</p>
<p>同<a href="http://thiamteck.blogspot.com/2008/08/running-groovy-from-windows-bat-file.html">参考</a>的文章，解决这个问题的办法有2个：</p>
<p>1. 安装 Windows-Installer 版本的 Groovy，而不是 zip 版本的，因为前者有 <a href="http://groovy.codehaus.org/Native+Launcher">Native Launcher</a>。</p>
<p>2. 把上面的脚本改为：</p>
<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="java" style="font-family:monospace;">call groovy <span style="color: #339933;">-</span>e <span style="color: #0000ff;">&quot;println(UUID.randomUUID().toString())&quot;</span>
echo <span style="color: #0000ff;">&quot;groovy execution finished!&quot;</span></pre></td></tr></table></div>
</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li><li>四月 28, 2010 -- <a href="http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/" title="MyEnTunnel 代理共享">MyEnTunnel 代理共享</a> (2)</li><li>三月 29, 2010 -- <a href="http://www.ebnd.cn/2010/03/29/2-tips-for-windows-7-optimization/" title="Windows7 优化两则">Windows7 优化两则</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyEnTunnel 代理共享</title>
		<link>http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/</link>
		<comments>http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 07:02:02 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=442</guid>
		<description><![CDATA[MyEnTunnel 这款软件很不错，但是默认只支持本机使用。 其实要想让其他机器也可以使用这个代理也很简单，只要把端口改成成 0.0.0.0: &#60;Port&#62; 的形式就可以了。 原理是让传给 plink 的参数从 -D &#60;Port&#62; 改为 -D 0.0.0.0:&#60;Port&#62;。 (参考阅读：A short guide to SSH port forwarding) p.s. 网上有很多文章说 Tunnelier 的速度比 MyEnTunnel 更快，其实是因为 MyEnTunnel 所用的 0.60 版的 plink 问题，现在最新版本的 plink 速度并不比 Tunnelier 慢，只要去官方网站下载一个最新的 plink，然后替换 MyEnTunnel 安装目录下的相应文件就可以了。 我实验的结果是比之前要快一些，具体快多少可能因人而异了。plink 的另一个好处是用其做代理， IE 里面也可以用，而 Tunnelier 则不行。虽然问题不大，IE 平时用的也不多，但有些时候还是会觉得不便的。 相关文章参考： 提高你的ssh翻墙速度之MyEnTunnel/PuTTY/Plink速度之谜， MyEnTunnel 官方网站声明。 共享MyEtunnel 相关文章九月 10, 2009 -- Windows [...]]]></description>
			<content:encoded><![CDATA[<p>MyEnTunnel 这款软件很不错，但是默认只支持本机使用。</p>
<p>其实要想让其他机器也可以使用这个代理也很简单，只要把端口改成成 0.0.0.0: &lt;Port&gt; 的形式就可以了。</p>
<p>原理是让传给 plink 的参数从 -D &lt;Port&gt; 改为 -D 0.0.0.0:&lt;Port&gt;。</p>
<p>(参考阅读：<a href="http://www.bitvise.com/port-forwarding">A short guide to SSH port forwarding</a>)</p>
<p><img src="http://img.f.hatena.ne.jp/images/fotolife/e/ebnd/20100428/20100428145114.png?1272437547" alt="MyEtunnel 代理设置" /></p>
<p><br class="spacer_" /></p>
<p>p.s.</p>
<p>网上有很多文章说 Tunnelier 的速度比 MyEnTunnel 更快，其实是因为 MyEnTunnel 所用的 0.60 版的 plink 问题，现在最新版本的 plink 速度并不比 Tunnelier 慢，只要去官方网站下载一个<a title="latest development version of plink.exe " href="http://tartarus.org/~simon/putty-snapshots/x86/plink.exe">最新的 plink</a>，然后替换 MyEnTunnel 安装目录下的相应文件就可以了。</p>
<p>我实验的结果是比之前要快一些，具体快多少可能因人而异了。plink 的另一个好处是用其做代理， IE 里面也可以用，而 Tunnelier 则不行。虽然问题不大，IE 平时用的也不多，但有些时候还是会觉得不便的。</p>
<p>相关文章参考： <a href="http://igfw.tk/archives/166">提高你的ssh翻墙速度之MyEnTunnel/PuTTY/Plink速度之谜</a>， <a href="http://nemesis2.qx.net/pages/MyEnTunnel">MyEnTunnel 官方网站声明</a>。</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 393px; width: 1px; height: 1px; overflow: hidden;">
<h3 class="r hcw"><a class="l" href="http://www.google.com/url?sa=t&amp;source=web&amp;cd=4&amp;ved=0CCkQFjAD&amp;url=http%3A%2F%2Fwww.ebnd.cn%2F2010%2F04%2F28%2Fmyentunnel-proxy-sharing%2F&amp;ei=rR5cTKbhPISOvQPs97j4AQ&amp;usg=AFQjCNGzbajiYmRI5Dh9E6cdp4LHhCpDnw&amp;sig2=6knLPxoF8W_chLrqvZISoQ">共享<em>MyEtunnel</em></a></h3>
</div>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>九月 10, 2009 -- <a href="http://www.ebnd.cn/2009/09/10/socks-proxy-settings-in-chrome-winxp/" title="Windows XP 下 Chrome 浏览器 SOCKS 代理设置">Windows XP 下 Chrome 浏览器 SOCKS 代理设置</a> (1)</li><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十二月 21, 2010 -- <a href="http://www.ebnd.cn/2010/12/21/how-to-peel-a-banana/" title="香蕉的头和屁股">香蕉的头和屁股</a> (1)</li><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2010/04/28/myentunnel-proxy-sharing/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows7 优化两则</title>
		<link>http://www.ebnd.cn/2010/03/29/2-tips-for-windows-7-optimization/</link>
		<comments>http://www.ebnd.cn/2010/03/29/2-tips-for-windows-7-optimization/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 16:25:08 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[troubleshoot]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=423</guid>
		<description><![CDATA[一、解除32位 Windows 7 的4G内存限制 微软官方有关于各个不同版本 Windows 内存限制(链接)的说明，其中 32 位 Windows 7 最多也就支持 4G 的内存(链接)。这个对于目前内存白菜价，4G 及以上内存很普遍的情况下，无疑是一个很大的遗憾。好比一个人力气很大，但就是使不上劲。但是我们都知道 32 位的 Linux 可以通过 PAE (Physical Address Extension) 的技术使用 4G 以上的内存，那 Windows 7 是不是也可以呢？答案是肯定的(链接)，貌似是俄罗斯的黑客提供了破解(感谢伟大的俄罗斯国家及政府)，在网上用 “ReadyFor4GB Windows 7&#8243; 作为关键字，能找到很多的结果。应用这个 Patch 以后，就可以使用4G以上的内存了，经本人试用完全可行。这个很 NB 的 patch 说是可以使用高达 128G 的内存，这个我就没有条件试验是否属实了。以下为打上 patch 以后机器的截屏： 这里给出 patch 的下载链接，解压缩以后右键 AddBootMenu.cmd，然后“以管理员的身份运行”，结束以后重启就可以了。 其他相关的文章推荐阅读：The 4GB Windows Memory Limit: What does it [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: medium;"><strong>一、解除32位 Windows 7 的4G内存限制 </strong></span></p>
<p>微软官方有关于各个不同版本 Windows 内存限制(<a title="Memory Limits for Windows Releases " href="http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx">链接</a>)的说明，其中 32 位 Windows 7 最多也就支持 4G 的内存(<a title="Physical Memory Limits: Windows 7  " href="http://msdn.microsoft.com/en-us/library/aa366778(VS.85).aspx#physical_memory_limits_windows_7">链接</a>)。这个对于目前内存白菜价，4G 及以上内存很普遍的情况下，无疑是一个很大的遗憾。好比一个人力气很大，但就是使不上劲。但是我们都知道 32 位的 Linux 可以通过 PAE (<a href="http://en.wikipedia.org/wiki/Physical_Address_Extension">Physical Address Extension</a>) 的技术使用 4G 以上的内存，那 Windows 7 是不是也可以呢？答案是肯定的(<a title="Make Windows 7 and Vista 32-bit (x86) Support More Than 4GB Memory" href="http://www.raymond.cc/blog/archives/2009/08/19/make-windows-7-and-vista-32-bit-x86-support-more-than-4gb-memory/">链接</a>)，貌似是俄罗斯的黑客提供了破解(感谢伟大的俄罗斯国家及政府)，在网上用 “ReadyFor4GB Windows 7&#8243; 作为关键字，能找到很多的结果。应用这个 Patch 以后，就可以使用4G以上的内存了，经本人试用完全可行。这个很 NB 的 patch 说是可以使用高达 128G 的内存，这个我就没有条件试验是否属实了。以下为打上 patch 以后机器的截屏：</p>
<p><img src="http://img.f.hatena.ne.jp/images/fotolife/e/ebnd/20100329/20100329082758.png" alt="4G memory - Windows 7" /></p>
<p>这里给出 patch 的<a title="ReadyFor4GB_20090422.rar" href="http://ifile.it/dea8fpm">下载链接</a>，解压缩以后右键 AddBootMenu.cmd，然后“以管理员的身份运行”，结束以后重启就可以了。</p>
<p>其他相关的文章推荐阅读：<a href="http://www.brianmadden.com/blogs/brianmadden/archive/2004/02/19/the-4gb-windows-memory-limit-what-does-it-really-mean.aspx">The 4GB Windows Memory Limit: What does it really mean?</a>, <a href="http://rapidshare.com/files/369560520/ae__ae________ae________4GB__________________.rar.html">为何系统不识别4GB内存终极解迷</a>。
<p><br class="spacer_" /></p>
<p><strong><span style="font-size: medium;">二、允许多个用户同时使用同一台 Windows 7 机器 </span></strong></p>
<p>*nix 系统一直都是多用户多任务操作系统，而 Windows 虽然也是号称多用户多任务，但一直都不能允许多个用户登录同时使用同一台机器。这个限制也被突破了(<a title="Guide: How to Enable Concurrent Sessions in Windows 7 " href="http://www.missingremote.com/index.php?option=com_content&amp;task=view&amp;id=3293&amp;Itemid=232">链接</a>)，从前面链接的文章来看，这个破解最早由一个叫 sunmorgus 的黑客在 thegreenbutton.com 的论坛<a title="Vista Remote Desktop - possible to enable more than one user?" href="http://thegreenbutton.com/forums/t/37189.aspx?PageIndex=3">一篇帖子</a>里提出的，对象是 Windows Vista。这个破解是可以让用户在其他的机器上用 RDP 远程登录本机的 Windows 7 系统，而不会导致本机正在登录的用户被强制退出。这样，同一台 Windows 7 的机器也能实现真正的多用户多任务啦！</p>
<p>这里也给出这个patch的<a title="Win7RDP.zip" href="http://ifile.it/vihx3qk">下载链接</a>，解压缩以后右键 install.cmd，然后“以管理员的身份运行”，耐心的等待几分钟直到结束，然后重启机器应该就可以了。</p>
<p><br/></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>三月 18, 2010 -- <a href="http://www.ebnd.cn/2010/03/18/resolve-no-sound-problem-in-media-player-12/" title="Windows 7 下 Media Player 12 没有声音解决之道">Windows 7 下 Media Player 12 没有声音解决之道</a> (0)</li><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>一月 12, 2011 -- <a href="http://www.ebnd.cn/2011/01/12/disable-windows-7-default-schedule-task/" title="关闭默认的 Windows 7 计划任务">关闭默认的 Windows 7 计划任务</a> (2)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2010/03/29/2-tips-for-windows-7-optimization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse 在 jdk1.6.0_14 下加断点调试经常停不下来</title>
		<link>http://www.ebnd.cn/2010/03/23/breakpoint-nonstop-in-eclipse-under-jdk1-6-0_14/</link>
		<comments>http://www.ebnd.cn/2010/03/23/breakpoint-nonstop-in-eclipse-under-jdk1-6-0_14/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 04:41:50 +0000</pubDate>
		<dc:creator>dandan</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[troubleshoot]]></category>

		<guid isPermaLink="false">http://www.ebnd.cn/?p=415</guid>
		<description><![CDATA[前阵碰到这个问题，一开始还以为是 Eclipse 的bug，导致调试无法进行，不知问题出在哪里。 在一段时间之后，终于忍受不了，google 了一把，找到了原因，是 jdk1.6.0_14 的bug导致的。 还比较复杂，大致Eclipse 在调试的过程中，假定已经创建好的线程ID是不变的，断点也绑定于某个线程，但是在 jdk1.6.0_14 中，这个ID值会被不可预知的改变，从而导致断点失效。 当时还没有修复，只好退回了 jdk1.6.0_13。 现在 jdk1.6.0_16 发布了，从release notes 来看，是专门解决这个问题的。记录之。 问题的相关链接： https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6862295 http://java.sun.com/javase/6/webnotes/6u16.html http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/2b4230d1e589 注：去年在 javaeye 写的一篇文章，搬到这里来。 相关文章三月 15, 2010 -- Eclipse 远程调试 “Failed to connect to remote vm” error (1)三月 6, 2011 -- Windows / Linux 下使用符号链接完全指南 (1)二月 22, 2011 -- 如何修改浏览器Cookie (1)一月 27, 2011 [...]]]></description>
			<content:encoded><![CDATA[<div>前阵碰到这个问题，一开始还以为是 Eclipse 的bug，导致调试无法进行，不知问题出在哪里。 </p>
<p>在一段时间之后，终于忍受不了，google 了一把，找到了原因，是 jdk1.6.0_14 的bug导致的。 <br />
还比较复杂，大致Eclipse 在调试的过程中，假定已经创建好的线程ID是不变的，断点也绑定于某个线程，但是在 jdk1.6.0_14 中，这个ID值会被不可预知的改变，从而导致断点失效。 </p>
<p>当时还没有修复，只好退回了 jdk1.6.0_13。 </p>
<p>现在 jdk1.6.0_16 发布了，从release notes 来看，是专门解决这个问题的。记录之。 </p>
<p>
问题的相关链接： </p>
<p><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137" target="_blank">https://bugs.eclipse.org/bugs/show_bug.cgi?id=279137</a> <br />
<a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6862295" target="_blank">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6862295</a> <br />
<a href="http://java.sun.com/javase/6/webnotes/6u16.html" target="_blank">http://java.sun.com/javase/6/webnotes/6u16.html</a> <br />
<a href="http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/2b4230d1e589" target="_blank">http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/2b4230d1e589</a></div>
<p><br/></p>
<div><span style="color: #0000ff;">注：去年在 javaeye 写的<a href="http://moonese.javaeye.com/admin/blogs/450234">一篇文章</a>，搬到这里来。</span></div>
<p><br/></p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li>三月 15, 2010 -- <a href="http://www.ebnd.cn/2010/03/15/eclipse-remote-debug-error/" title="Eclipse 远程调试 “Failed to connect to remote vm” error">Eclipse 远程调试 “Failed to connect to remote vm” error</a> (1)</li><li>三月 6, 2011 -- <a href="http://www.ebnd.cn/2011/03/06/guide-to-symbolic-link/" title="Windows / Linux 下使用符号链接完全指南">Windows / Linux 下使用符号链接完全指南</a> (1)</li><li>二月 22, 2011 -- <a href="http://www.ebnd.cn/2011/02/22/edit-browser-cookies/" title="如何修改浏览器Cookie">如何修改浏览器Cookie</a> (1)</li><li>一月 27, 2011 -- <a href="http://www.ebnd.cn/2011/01/27/software-collection-recommendation/" title="常用软件">常用软件</a> (0)</li><li>一月 11, 2011 -- <a href="http://www.ebnd.cn/2011/01/11/which-program-is-using-a-port/" title="查看占用端口的是什么程序">查看占用端口的是什么程序</a> (1)</li><li>十二月 15, 2010 -- <a href="http://www.ebnd.cn/2010/12/15/reload-pac-proxy-in-chrome/" title="Chrome 下重载 pac 代理设置">Chrome 下重载 pac 代理设置</a> (0)</li><li>十二月 7, 2010 -- <a href="http://www.ebnd.cn/2010/12/07/subversion-over-http-proxy/" title="通过 http 代理使用 subversion ">通过 http 代理使用 subversion </a> (0)</li><li>十一月 28, 2010 -- <a href="http://www.ebnd.cn/2010/11/28/embedding-groovy-script-in-windows-bat/" title="Windows .bat 文件中执行 Groovy 脚本">Windows .bat 文件中执行 Groovy 脚本</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.ebnd.cn/2010/03/23/breakpoint-nonstop-in-eclipse-under-jdk1-6-0_14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

