<?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>权记</title>
	<atom:link href="http://www.quanlei.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.quanlei.com</link>
	<description>一个关于我们生活点滴的网站，一个记录我们酸甜苦辣的日志。</description>
	<lastBuildDate>Thu, 17 May 2012 17:58:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>GlassFish server 4848 提示被占用，无法启动的问题处理</title>
		<link>http://www.quanlei.com/2012/05/3138.html</link>
		<comments>http://www.quanlei.com/2012/05/3138.html#comments</comments>
		<pubDate>Thu, 17 May 2012 17:57:38 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[Linux服务器相关]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3138</guid>
		<description><![CDATA[错误提示信息（中文）： 有一个进程已占用管理端口 4848 &#8212; 可能是 GlassFish 服务器的另一个实例。 命令 start-domain 失败。 错误提示信息（英文）： There is a process already using the admin port 4848 &#8212; it probably is another instance of a GlassFish server.Command start-domain failed. 原因：hostname导致，一般是由于/etc/hosts中hostsname的设置导致 比如你的情况可能是类似下面的情况 解决办法，修改为如下类似情况：<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="在GlassFish中缓存静态资源，开启Gzip" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F03%2Fglassfish-gzip-expires-header%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/03/14/3513919.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">在GlassFish中缓存静态资源，开启Gzip</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Notes: glassfish 出现__admingui/common/index.jsp not found 的问题处理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F08%2Fnotes-glassfish-__admingui-common-index-jsp-not-found%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Notes: glassfish 出现__admingui/common/index.jsp not found 的问题处理</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/20 周主题] – GlassFish单机和多机集群的配置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F1020-week-subject-glassfish-cluster%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[10/20 周主题] – GlassFish单机和多机集群的配置</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Notes: glassfish忘记管理员密码的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F04%2F2329.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Notes: glassfish忘记管理员密码的解决办法</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Notes：glassfish忘记管理员密码的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F04%2Fnotes%25EF%25BC%259Aglassfish-forget-admin-password%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Notes：glassfish忘记管理员密码的解决办法</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>错误提示信息（中文）：</p>
<blockquote><p>有一个进程已占用管理端口 4848 &#8212; 可能是 GlassFish 服务器的另一个实例。<br />
命令 start-domain 失败。</p></blockquote>
<p>错误提示信息（英文）：</p>
<blockquote><p>There is a process already using the admin port 4848 &#8212; it probably is another instance of a GlassFish server.Command start-domain failed.
</p></blockquote>
<p>原因：hostname导致，一般是由于/etc/hosts中hostsname的设置导致<br />
比如你的情况可能是类似下面的情况</p>
<pre class="brush: plain; title: ; notranslate">
127.0.0.1               localhost.localdomain localhost
xiaoquan
</pre>
<p>解决办法，修改为如下类似情况：</p>
<pre class="brush: plain; title: ; notranslate">
127.0.0.1               localhost.localdomain localhost
127.0.0.1               xiaoquan
</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="在GlassFish中缓存静态资源，开启Gzip" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F03%2Fglassfish-gzip-expires-header%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/03/14/3513919.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">在GlassFish中缓存静态资源，开启Gzip</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Notes: glassfish 出现__admingui/common/index.jsp not found 的问题处理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F08%2Fnotes-glassfish-__admingui-common-index-jsp-not-found%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Notes: glassfish 出现__admingui/common/index.jsp not found 的问题处理</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/20 周主题] – GlassFish单机和多机集群的配置" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F1020-week-subject-glassfish-cluster%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[10/20 周主题] – GlassFish单机和多机集群的配置</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Notes：glassfish忘记管理员密码的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F04%2Fnotes%25EF%25BC%259Aglassfish-forget-admin-password%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Notes：glassfish忘记管理员密码的解决办法</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Notes: 更改glassfish的日志轮转数量" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F08%2Fnotes-change-the-limit-number-of-retained-files%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F05%2F3138.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Notes: 更改glassfish的日志轮转数量</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/05/3138.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure Admin must be enabled to access the DAS remotely.</title>
		<link>http://www.quanlei.com/2012/04/3132.html</link>
		<comments>http://www.quanlei.com/2012/04/3132.html#comments</comments>
		<pubDate>Fri, 27 Apr 2012 07:32:46 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3132</guid>
		<description><![CDATA[在上篇文章中提到了Glassfish 3.1.2，在部署的过程中发现登陆控制面板，出现： 这个在之前的glassfish好像默认是打开的。 现在需要我们手动打开，例如： 对于的关闭方式： ps: 更改如上设置，需要重启 glassfish<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="打包达人是如何炼成的，出差旅人，必看" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F05%2F%25E6%2589%2593%25E5%258C%2585%25E8%25BE%25BE%25E4%25BA%25BA%25E6%2598%25AF%25E5%25A6%2582%25E4%25BD%2595%25E7%2582%25BC%25E6%2588%2590%25E7%259A%2584%25EF%25BC%258C%25E5%2587%25BA%25E5%25B7%25AE%25E6%2597%2585%25E4%25BA%25BA%25EF%25BC%258C%25E5%25BF%2585%25E7%259C%258B%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258871.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">打包达人是如何炼成的，出差旅人，必看</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="邮件发送日期" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F08%2F2692.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/08/30/26429752.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">邮件发送日期</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="推荐电影：沙漠之花 Desert Flower" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F01%2Fdesert-flower%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2257944.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">推荐电影：沙漠之花 Desert Flower</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="转帖：暴强的一道菜 – [视觉]" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F03%2F%25E8%25BD%25AC%25E5%25B8%2596%25EF%25BC%259A%25E6%259A%25B4%25E5%25BC%25BA%25E7%259A%2584%25E4%25B8%2580%25E9%2581%2593%25E8%258F%259C-%25E8%25A7%2586%25E8%25A7%2589%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2261869.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">转帖：暴强的一道菜 – [视觉]</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="再预告一个生活应用，将于近期在 @胖鱼网 发布，敬请关注！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F12%2F%25E5%2586%258D%25E9%25A2%2584%25E5%2591%258A%25E4%25B8%2580%25E4%25B8%25AA%25E7%2594%259F%25E6%25B4%25BB%25E5%25BA%2594%25E7%2594%25A8%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258248.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">再预告一个生活应用，将于近期在 @胖鱼网 发布，敬请关注！</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在上篇文章中提到了Glassfish 3.1.2，在部署的过程中发现登陆控制面板，出现：</p>
<pre class="brush: plain; title: ; notranslate">
Secure Admin must be enabled to access the DAS remotely.
</pre>
<p>这个在之前的glassfish好像默认是打开的。</p>
<p>现在需要我们手动打开，例如：</p>
<pre class="brush: plain; title: ; notranslate">
asadmin --host 192.168.1.2 --port 4848 enable-secure-admin
</pre>
<p>对于的关闭方式：</p>
<pre class="brush: plain; title: ; notranslate">
asadmin --host 192.168.1.2 --port 4848 disable-secure-admin
</pre>
<p><strong>ps: 更改如上设置，需要重启 glassfish</strong></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="西安的平安夜" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2Fxian-merry%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258581.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">西安的平安夜</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="小权逛北京之南锣鼓巷" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2F%25E5%25B0%258F%25E6%259D%2583%25E9%2580%259B%25E5%258C%2597%25E4%25BA%25AC%25E4%25B9%258B%25E5%258D%2597%25E9%2594%25A3%25E9%25BC%2593%25E5%25B7%25B7%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2260678.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">小权逛北京之南锣鼓巷</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="转：土豆炖牛肉的做法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2F%25E8%25BD%25AC%25EF%25BC%259A%25E5%259C%259F%25E8%25B1%2586%25E7%2582%2596%25E7%2589%259B%25E8%2582%2589%25E7%259A%2584%25E5%2581%259A%25E6%25B3%2595%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258947.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">转：土豆炖牛肉的做法</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="分享：CSS3渐变按钮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F08%2Fshare-multiple-gradient-buttons-with-css3%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/08/18/23386672.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">分享：CSS3渐变按钮</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/14周主题] – IE6 hacks" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2Fweek-subject-1014-ie6-problems%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3132.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258336.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[10/14周主题] – IE6 hacks</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/04/3132.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.</title>
		<link>http://www.quanlei.com/2012/04/3129.html</link>
		<comments>http://www.quanlei.com/2012/04/3129.html#comments</comments>
		<pubDate>Fri, 27 Apr 2012 02:33:26 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3129</guid>
		<description><![CDATA[最近在 glassfish 3.1上老遇到这个问题： 而这个问题貌似在glassfishv3上却没有，最后发现这篇文章： http://www.java.net/forum/topic/glassfish/glassfish/glassfish-v3-jdbc-use-connections-equal-max-pool-size 也就是glassfish 3.0.1和glassfish 3.1可能都存在这样的问题 而从具体的修复情况看，已经在最新版的glassfish 3.1.2中修正，如遇上述问题，可以试试3.1.2<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="分享：VirtualBox终于出Clone功能了" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2Fvirtualbox-clone-feature%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/07/24/18811474.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">分享：VirtualBox终于出Clone功能了</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="QuickNews for TouchPad" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fquicknews-for-touchpad%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/09/19/32022803.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">QuickNews for TouchPad</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[翻译] Simple Tooltip with jQuery &amp; CSS" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2F1830.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258223.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[翻译] Simple Tooltip with jQuery &amp; CSS</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="中国移动的网站能不能再做的烂点呢？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F937.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258384.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">中国移动的网站能不能再做的烂点呢？</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="坝上全家福" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2F%25E5%259D%259D%25E4%25B8%258A%25E5%2585%25A8%25E5%25AE%25B6%25E7%25A6%258F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2261032.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">坝上全家福</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>最近在 glassfish 3.1上老遇到这个问题：</p>
<pre class="brush: plain; title: ; notranslate">
[#|2012-04-27T09:52:49.677+0800|INFO|glassfish3.1|javax.enterprise.system.std.com.sun.enterprise.server.logging|_ThreadID=54;_ThreadName=Thread-1;|taSource.getConnection(DataSource.java:117)
	at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
	at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
	... 158 more
Caused by: javax.resource.spi.ResourceAllocationException: Error in allocating a connection. Cause: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.
	at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:310)
	at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:190)
	at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:165)
	at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:160)
	at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:110)
	... 160 more
Caused by: com.sun.appserv.connectors.internal.api.PoolingException: In-use connections equal max-pool-size and expired max-wait-time. Cannot allocate more connections.
	at com.sun.enterprise.resource.pool.ConnectionPool.getResource(ConnectionPool.java:418)
	at com.sun.enterprise.resource.pool.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:242)
	at com.sun.enterprise.resource.pool.PoolManagerImpl.getResource(PoolManagerImpl.java:167)
	at com.sun.enterprise.connectors.ConnectionManagerImpl.getResource(ConnectionManagerImpl.java:341)
	at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:304)
	... 164 more
|#]
</pre>
<p>而这个问题貌似在glassfishv3上却没有，最后发现这篇文章：</p>
<p><a href="http://www.java.net/forum/topic/glassfish/glassfish/glassfish-v3-jdbc-use-connections-equal-max-pool-size" target="_blank">http://www.java.net/forum/topic/glassfish/glassfish/glassfish-v3-jdbc-use-connections-equal-max-pool-size</a></p>
<p>也就是glassfish 3.0.1和glassfish 3.1可能都存在这样的问题</p>
<p>而从具体的修复情况看，已经在最新版的glassfish 3.1.2中修正，如遇上述问题，可以试试3.1.2</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="就因为有了贪官，不贪的就受表彰了" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fcorrupt_officials%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258843.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">就因为有了贪官，不贪的就受表彰了</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="老虎机式标签栏(Slot Machine Tabs)" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2F1383.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258463.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">老虎机式标签栏(Slot Machine Tabs)</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Swing Nixieclock（原子钟）效果" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fswing-nixieclock%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258436.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Swing Nixieclock（原子钟）效果</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="jQuery图像剪裁插件 – Jcrop" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fjquery-plugh-jcrop%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258473.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">jQuery图像剪裁插件 – Jcrop</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="转载：情感交互短片2则" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F04%2F%25E8%25BD%25AC%25E8%25BD%25BD%25EF%25BC%259A%25E6%2583%2585%25E6%2584%259F%25E4%25BA%25A4%25E4%25BA%2592%25E7%259F%25AD%25E7%2589%25872%25E5%2588%2599%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3129.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/06/28/14687316.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">转载：情感交互短片2则</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/04/3129.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>广告贴：华为网盘外链全面升级—功能超级强大</title>
		<link>http://www.quanlei.com/2012/04/3125.html</link>
		<comments>http://www.quanlei.com/2012/04/3125.html#comments</comments>
		<pubDate>Sat, 21 Apr 2012 02:52:42 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[随记]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3125</guid>
		<description><![CDATA[本站合作伙伴—华为网盘，4.18日隆重推出新版外链，新版外链功能全面升级：外链页面自定义、下载/转存加密、防盗链白名单功能、批量操作等功能。新版外链的强大功能，满足了用户多项个性化使用需求，大家赶紧体验吧。 新版外链升级功能： 1. 外链页面自定义，可自定义页面模板、logo、备用资源介绍（不用每次都编辑资源介绍了）； 2. 外链加密功能，可对外链进行密码下载、转存等设置，打造社交圈专享外链； 3. 防盗链白名单功能，用户只能从白名单网站入口访问该外链，有效防止稀缺资源被盗； 4. 外链批量操作：批量复制外链地址、批量改密码、批量改资源介绍、批量改转存控制。 华为网盘外链升级官方公告：http://bbs.dbank.com/thread-54515-1-1.html 新版外链使用指南: http://bbs.dbank.com/thread-54338-1-1.html<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="家里宽带升级到2M" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F05%2F%25E5%25AE%25B6%25E9%2587%258C%25E5%25AE%25BD%25E5%25B8%25A6%25E5%258D%2587%25E7%25BA%25A7%25E5%2588%25B02m%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">家里宽带升级到2M</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="升级论坛" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F02%2F%25E5%258D%2587%25E7%25BA%25A7%25E8%25AE%25BA%25E5%259D%259B%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">升级论坛</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="暴力升级" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F03%2Fviolent-upgrade%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">暴力升级</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Godaddy 30% 优惠码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2Fgodaddy-save-code%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Godaddy 30% 优惠码</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="早上升级了WordPress到最新版本" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F04%2F%25E6%2597%25A9%25E4%25B8%258A%25E5%258D%2587%25E7%25BA%25A7%25E4%25BA%2586wordpress%25E5%2588%25B0%25E6%259C%2580%25E6%2596%25B0%25E7%2589%2588%25E6%259C%25AC%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">早上升级了WordPress到最新版本</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>本站合作伙伴—华为网盘，4.18日隆重推出新版外链，新版外链功能全面升级：外链页面自定义、下载/转存加密、防盗链白名单功能、批量操作等功能。新版外链的强大功能，满足了用户多项个性化使用需求，大家赶紧体验吧。</p>
<p>新版外链升级功能：</p>
<p>1.   外链页面自定义，可自定义页面模板、logo、备用资源介绍（不用每次都编辑资源介绍了）；</p>
<p>2.   外链加密功能，可对外链进行密码下载、转存等设置，打造社交圈专享外链；<br />
 <span id="more-3125"></span><br />
3.   防盗链白名单功能，用户只能从白名单网站入口访问该外链，有效防止稀缺资源被盗；</p>
<p>4.   外链批量操作：批量复制外链地址、批量改密码、批量改资源介绍、批量改转存控制。</p>
<p>华为网盘外链升级官方公告：<a href="http://bbs.dbank.com/thread-54515-1-1.html" target="_blank">http://bbs.dbank.com/thread-54515-1-1.html</a><br />
新版外链使用指南: <a href="http://bbs.dbank.com/thread-54338-1-1.html" target="_blank">http://bbs.dbank.com/thread-54338-1-1.html</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="家里宽带升级到2M" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F05%2F%25E5%25AE%25B6%25E9%2587%258C%25E5%25AE%25BD%25E5%25B8%25A6%25E5%258D%2587%25E7%25BA%25A7%25E5%2588%25B02m%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">家里宽带升级到2M</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="升级论坛" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F02%2F%25E5%258D%2587%25E7%25BA%25A7%25E8%25AE%25BA%25E5%259D%259B%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">升级论坛</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="暴力升级" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F03%2Fviolent-upgrade%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">暴力升级</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Godaddy 30% 优惠码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2Fgodaddy-save-code%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Godaddy 30% 优惠码</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="早上升级了WordPress到最新版本" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F04%2F%25E6%2597%25A9%25E4%25B8%258A%25E5%258D%2587%25E7%25BA%25A7%25E4%25BA%2586wordpress%25E5%2588%25B0%25E6%259C%2580%25E6%2596%25B0%25E7%2589%2588%25E6%259C%25AC%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3125.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">早上升级了WordPress到最新版本</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/04/3125.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>拨vpn后智能访问国内国外网站</title>
		<link>http://www.quanlei.com/2012/04/3117.html</link>
		<comments>http://www.quanlei.com/2012/04/3117.html#comments</comments>
		<pubDate>Sat, 14 Apr 2012 13:36:30 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[随记]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3117</guid>
		<description><![CDATA[介绍： 因为一些众所周知的原因, 来自中国大陆的网民想要访问非本国资源时总会那么的不方便, 这促使了海外vpn供应商在中国的繁荣. 使用海外vpn访问已经成为一些需要经常访问海外资源的中国网民的必要装备. 但通常这些vpn都是有流量限制的, 除此之外一些中国内部的资源也限制海外的ip访问. 本项目的就是提供一些启动脚本给vpn用户, 在vpn拨号之后修过路由表,让他们在使用vpn访问国外资源的同时, 能用非vpn线路高速访问本国资源. 具体使用方法：见这里 这里我仅列出Mac下PPPT的方法： Mac OSX 下载 chnroutes.py 从终端进入下载目录, 执行python chnroutes.py -p mac, 执行完毕之后同一目录下将生成两个新文件&#8217;ip-up&#8217;和&#8217;ip-down&#8217; 把这两个文件copy到 /etc/ppp 目录, 并使用 sudo chmod a+x ip-up ip-down命令把它们设置为可执行 设置完毕, 重新连接vpn. 测试步骤同上. 注意：如果你的Mac中的是python 2.6以下的，可能出现如下错误： 这里是因为没有安装 argparse 的原因，要么升级python到2.7，要么独立安装 argparse argparse 地址：http://code.google.com/p/argparse/<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Write Article to get VPN from Hideipvpn" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fwrite-article-to-get-vpn-from-hideipvpn%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Write Article to get VPN from Hideipvpn</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="做网站看起来很简单" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2F1880.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258214.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">做网站看起来很简单</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="域名成功从国内转出" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2Fdomains-transfered%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">域名成功从国内转出</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="网站又可以访问了" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2Fwebsite-run-again%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">网站又可以访问了</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="将网站的Theme和其他资源进行了项目托管" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E5%25B0%2586%25E7%25BD%2591%25E7%25AB%2599%25E7%259A%2584theme%25E5%2592%258C%25E5%2585%25B6%25E4%25BB%2596%25E8%25B5%2584%25E6%25BA%2590%25E8%25BF%259B%25E8%25A1%258C%25E4%25BA%2586%25E9%25A1%25B9%25E7%259B%25AE%25E6%2589%2598%25E7%25AE%25A1%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">将网站的Theme和其他资源进行了项目托管</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><strong>介绍：</strong><br />
因为一些众所周知的原因, 来自中国大陆的网民想要访问非本国资源时总会那么的不方便, 这促使了海外vpn供应商在中国的繁荣.<br />
使用海外vpn访问已经成为一些需要经常访问海外资源的中国网民的必要装备.<br />
但通常这些vpn都是有流量限制的, 除此之外一些中国内部的资源也限制海外的ip访问.<br />
本项目的就是提供一些启动脚本给vpn用户, 在vpn拨号之后修过路由表,让他们在使用vpn访问国外资源的同时, 能用非vpn线路高速访问本国资源.</p>
<p>具体使用方法：<a href="http://code.google.com/p/chnroutes/wiki/Usage" target="_blank">见这里</a></p>
<p>这里我仅列出Mac下PPPT的方法：</p>
<h3><a name="Mac_OSX"></a>Mac OSX</h3>
<ol>
<li>下载 chnroutes.py</li>
<li>从终端进入下载目录, 执行<tt>python chnroutes.py -p mac</tt>, 执行完毕之后同一目录下将生成两个新文件&#8217;ip-up&#8217;和&#8217;ip-down&#8217;</li>
<li>把这两个文件copy到 /etc/ppp 目录, 并使用 <tt>sudo chmod a+x ip-up ip-down</tt>命令把它们设置为可执行</li>
<li>设置完毕, 重新连接vpn. 测试步骤同上.</li>
</ol>
<p>注意：如果你的Mac中的是python 2.6以下的，可能出现如下错误：</p>
<pre class="brush: plain; title: ; notranslate">
Quans-MacBook-Pro:chnroutes Quan$ python chnroutes.py -p mac
Traceback (most recent call last):
  File &quot;chnroutes.py&quot;, line 6, in &lt;module&gt;
    import argparse
ImportError: No module named argparse
</pre>
<p>这里是因为没有安装 argparse 的原因，要么升级python到2.7，要么独立安装 argparse</p>
<p>argparse 地址：http://code.google.com/p/argparse/</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Write Article to get VPN from Hideipvpn" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fwrite-article-to-get-vpn-from-hideipvpn%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Write Article to get VPN from Hideipvpn</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="做网站看起来很简单" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2F1880.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258214.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">做网站看起来很简单</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="域名成功从国内转出" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2Fdomains-transfered%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">域名成功从国内转出</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="网站又可以访问了" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2Fwebsite-run-again%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">网站又可以访问了</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="将网站的Theme和其他资源进行了项目托管" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E5%25B0%2586%25E7%25BD%2591%25E7%25AB%2599%25E7%259A%2584theme%25E5%2592%258C%25E5%2585%25B6%25E4%25BB%2596%25E8%25B5%2584%25E6%25BA%2590%25E8%25BF%259B%25E8%25A1%258C%25E4%25BA%2586%25E9%25A1%25B9%25E7%259B%25AE%25E6%2589%2598%25E7%25AE%25A1%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3117.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">将网站的Theme和其他资源进行了项目托管</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/04/3117.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过rsync远程实时备份</title>
		<link>http://www.quanlei.com/2012/04/3113.html</link>
		<comments>http://www.quanlei.com/2012/04/3113.html#comments</comments>
		<pubDate>Sat, 07 Apr 2012 08:15:18 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[Linux服务器相关]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3113</guid>
		<description><![CDATA[推荐两篇文章： 1、通过rsync实现远程容灾备份 2、通过rsync+inotify实现数据的实时备份 按照上面的做法一路做下来即可，可根据实际需要采用定时还是实时备份，用来分布式部署网站，备份资料等非常好用。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="今天在做数据库备份时遇到的两个问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F09%2F651.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">今天在做数据库备份时遇到的两个问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="看来又要考虑挪地方了" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2F1117.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">看来又要考虑挪地方了</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="手机通讯录,日历备份方案" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F08%2F%25E6%2589%258B%25E6%259C%25BA%25E9%2580%259A%25E8%25AE%25AF%25E5%25BD%2595%25E6%2597%25A5%25E5%258E%2586%25E5%25A4%2587%25E4%25BB%25BD%25E6%2596%25B9%25E6%25A1%2588%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">手机通讯录,日历备份方案</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux下自动执行ssh远程连接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F811.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux下自动执行ssh远程连接</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="打开浏览器来编程，CodeRun – 基于web的IDE开发工具" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2F%25E6%2589%2593%25E5%25BC%2580%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25B0%25B1%25E5%258F%25AF%25E4%25BB%25A5%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%258Ccoderun-%25E5%259F%25BA%25E4%25BA%258Eweb%25E7%259A%2584ide%25E5%25BC%2580%25E5%258F%2591%25E5%25B7%25A5%25E5%2585%25B7%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258260.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">打开浏览器来编程，CodeRun – 基于web的IDE开发工具</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>推荐两篇文章：</p>
<p>1、<a href="http://ixdba.blog.51cto.com/2895551/563455" target="_blank">通过rsync实现远程容灾备份</a></p>
<p>2、<a href="http://ixdba.blog.51cto.com/2895551/580280" target＝"_blank">通过rsync+inotify实现数据的实时备份</a></p>
<p>按照上面的做法一路做下来即可，可根据实际需要采用定时还是实时备份，用来分布式部署网站，备份资料等非常好用。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="今天在做数据库备份时遇到的两个问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F09%2F651.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">今天在做数据库备份时遇到的两个问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="看来又要考虑挪地方了" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2F1117.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">看来又要考虑挪地方了</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="手机通讯录,日历备份方案" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F08%2F%25E6%2589%258B%25E6%259C%25BA%25E9%2580%259A%25E8%25AE%25AF%25E5%25BD%2595%25E6%2597%25A5%25E5%258E%2586%25E5%25A4%2587%25E4%25BB%25BD%25E6%2596%25B9%25E6%25A1%2588%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">手机通讯录,日历备份方案</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux下自动执行ssh远程连接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F811.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux下自动执行ssh远程连接</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux下QQ的新选择：WebQQ桌面化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fwebqq-desktop-integration%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F04%2F3113.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258354.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux下QQ的新选择：WebQQ桌面化</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/04/3113.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OS X 的包管理器 HomeBrew</title>
		<link>http://www.quanlei.com/2012/03/3108.html</link>
		<comments>http://www.quanlei.com/2012/03/3108.html#comments</comments>
		<pubDate>Fri, 30 Mar 2012 07:23:03 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[Linux服务器相关]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3108</guid>
		<description><![CDATA[Homebrew 是最简单和灵活的方式，用来在 Mac OS X 安装 Linux 工具包。 安装过程很简单： HomeBrew是ruby脚本，但是mac下不需要安装ruby解释环境，系统自带了。 安装好后，可以： 通过检查homebrew版本确认是否安装成功。 使用homebrew安装wget： 非常方便<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Mac OS" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2Fmac-os%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Mac OS</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Mac 下安装 gcc" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3083.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Mac 下安装 gcc</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Mac 软件清单" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2Fmac-%25E8%25BD%25AF%25E4%25BB%25B6%25E6%25B8%2585%25E5%258D%2595%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Mac 软件清单</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/09周主题] – 管理时间，管理自己" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F03%2F1289.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[10/09周主题] – 管理时间，管理自己</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Java SE 6 新特性: JMX 与系统管理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F03%2Fjava6_jmx%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Java SE 6 新特性: JMX 与系统管理</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>Homebrew 是最简单和灵活的方式，用来在 Mac OS X 安装 Linux 工具包。</p>
<p>安装过程很简单：</p>
<pre class="brush: plain; title: ; notranslate">
ruby -e $(curl -fsS https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)
</pre>
<p>HomeBrew是ruby脚本，但是mac下不需要安装ruby解释环境，系统自带了。</p>
<p>安装好后，可以：</p>
<pre class="brush: plain; title: ; notranslate">
brew –v
</pre>
<p>通过检查homebrew版本确认是否安装成功。</p>
<p>使用homebrew安装wget：</p>
<pre class="brush: plain; title: ; notranslate">
brew install wget
</pre>
<p>非常方便</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Mac OS" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2Fmac-os%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Mac OS</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Mac 下安装 gcc" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3083.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Mac 下安装 gcc</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Mac 软件清单" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2Fmac-%25E8%25BD%25AF%25E4%25BB%25B6%25E6%25B8%2585%25E5%258D%2595%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Mac 软件清单</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/09周主题] – 管理时间，管理自己" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F03%2F1289.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[10/09周主题] – 管理时间，管理自己</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Java SE 6 新特性: JMX 与系统管理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F03%2Fjava6_jmx%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3108.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Java SE 6 新特性: JMX 与系统管理</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/03/3108.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>不重启系统，更改 Linux ulimit 中的open files</title>
		<link>http://www.quanlei.com/2012/03/3103.html</link>
		<comments>http://www.quanlei.com/2012/03/3103.html#comments</comments>
		<pubDate>Thu, 29 Mar 2012 11:10:08 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[Linux服务器相关]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3103</guid>
		<description><![CDATA[长时间不用老就忘记了，干脆记录下来，免得下次再找 ulimit -a 查看当前的 open files 默认是 1024 1、在 /etc/profile 尾部添加 2、使设置生效 3、重新登陆，检查设置是否生效<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="We believe that the internet should be public, open and accessible." style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fwe-believe-that-the-internet-should-be-public-open-and-accessible%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2259279.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">We believe that the internet should be public, open and accessible.</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Install Java Plugin To Linux FireFox" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Finstall-java-plugin-to-linux-firefox%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Install Java Plugin To Linux FireFox</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux下自动执行ssh远程连接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Flinux_auto_ssh_connection%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux下自动执行ssh远程连接</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux平台下忘记mysql的root密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F03%2Flinux%25E5%25B9%25B3%25E5%258F%25B0%25EF%25BC%259A%25E5%25BF%2598%25E8%25AE%25B0mysql%25E7%259A%2584root%25E5%25AF%2586%25E7%25A0%2581%25E8%25A7%25A3%25E5%2586%25B3%25E5%258A%259E%25E6%25B3%2595%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux平台下忘记mysql的root密码解决办法</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux下QQ的新选择：WebQQ桌面化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F842.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258354.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux下QQ的新选择：WebQQ桌面化</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>长时间不用老就忘记了，干脆记录下来，免得下次再找</p>
<p>ulimit -a 查看当前的 open files</p>
<p>默认是 1024</p>
<p>1、在 /etc/profile 尾部添加</p>
<pre class="brush: plain; title: ; notranslate">
ulimit -n 8192
</pre>
<p>2、使设置生效</p>
<pre class="brush: plain; title: ; notranslate">
source /etc/profile
</pre>
<p>3、重新登陆，检查设置是否生效</p>
<pre class="brush: plain; title: ; notranslate">
ulimit -a
</pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="We believe that the internet should be public, open and accessible." style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Fwe-believe-that-the-internet-should-be-public-open-and-accessible%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2259279.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">We believe that the internet should be public, open and accessible.</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Install Java Plugin To Linux FireFox" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Finstall-java-plugin-to-linux-firefox%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Install Java Plugin To Linux FireFox</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux下自动执行ssh远程连接" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Flinux_auto_ssh_connection%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux下自动执行ssh远程连接</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux平台下忘记mysql的root密码解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F03%2Flinux%25E5%25B9%25B3%25E5%258F%25B0%25EF%25BC%259A%25E5%25BF%2598%25E8%25AE%25B0mysql%25E7%259A%2584root%25E5%25AF%2586%25E7%25A0%2581%25E8%25A7%25A3%25E5%2586%25B3%25E5%258A%259E%25E6%25B3%2595%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux平台下忘记mysql的root密码解决办法</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Linux下QQ的新选择：WebQQ桌面化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F842.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3103.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258354.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Linux下QQ的新选择：WebQQ桌面化</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/03/3103.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>每个人的道路是不同的</title>
		<link>http://www.quanlei.com/2012/03/3099.html</link>
		<comments>http://www.quanlei.com/2012/03/3099.html#comments</comments>
		<pubDate>Wed, 28 Mar 2012 01:50:56 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[随记]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3099</guid>
		<description><![CDATA[之前在一个论坛看到一网友回复别人关于职业发展的回复，原文转发： 每个人的道路都是不同的，当你迷惑的时候先想想自己想要做什么。 当今的软件确实分为多个方向：算法，数据库，模式====，他们都有着各自的应用人群，除非是天才否则很难全部的深刻理解。 我 不喜欢研究操作系统，所以我不能去微软；我不喜欢研究算法，所以我不能去google；我不喜欢研究JDK的实现所以我不能去taobao、yahoo等 等；但是我喜欢做应用，我喜欢研究和分析包括业务过程、软件结构、弹性、可维护性等等，所以我要去一个应用公司。。。。。。。 不要被别人的价值关左右，100个成功人可以有100个成功的方向无法盲从。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[转载]中文系统下使用NetBeans英文界面的方法及启动参数详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F10%2F264.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3099.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2259306.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[转载]中文系统下使用NetBeans英文界面的方法及启动参数详解</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="转载:打造自己的Twitter API Proxy" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F09%2F648.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3099.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258224.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">转载:打造自己的Twitter API Proxy</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Notes: 银联手机支付" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2F2609.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3099.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/07/31/20210915.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Notes: 银联手机支付</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="胖鱼快讯 v1.0.2 for TouchPad" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2F2763.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3099.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/09/22/33136126.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">胖鱼快讯 v1.0.2 for TouchPad</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>之前在一个论坛看到一网友回复别人关于职业发展的回复，原文转发：</p>
<blockquote><p>
每个人的道路都是不同的，当你迷惑的时候先想想自己想要做什么。</p>
<p>当今的软件确实分为多个方向：算法，数据库，模式====，他们都有着各自的应用人群，除非是天才否则很难全部的深刻理解。</p>
<p>我 不喜欢研究操作系统，所以我不能去微软；我不喜欢研究算法，所以我不能去google；我不喜欢研究JDK的实现所以我不能去taobao、yahoo等 等；但是我喜欢做应用，我喜欢研究和分析包括业务过程、软件结构、弹性、可维护性等等，所以我要去一个应用公司。。。。。。。</p>
<p>不要被别人的价值关左右，100个成功人可以有100个成功的方向无法盲从。
</p></blockquote>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="RMI Demo using Registry" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2Frmi-demo-using-registry%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3099.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2261276.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RMI Demo using Registry</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="2008年北京第一场沙尘暴" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F03%2F2008%25E5%25B9%25B4%25E5%258C%2597%25E4%25BA%25AC%25E7%25AC%25AC%25E4%25B8%2580%25E5%259C%25BA%25E6%25B2%2599%25E5%25B0%2598%25E6%259A%25B4%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3099.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2261886.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">2008年北京第一场沙尘暴</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="测试DBank网盘图片外链" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2F2705.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3099.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/09/09/29612694.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">测试DBank网盘图片外链</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="分享：CSS3渐变按钮" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F08%2F2650.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3099.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/08/18/23386672.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">分享：CSS3渐变按钮</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="换个主题，换个心情" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%258D%25A2%25E4%25B8%25AA%25E4%25B8%25BB%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3099.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2260105.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">换个主题，换个心情</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/03/3099.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过ehcache为页面添加缓存</title>
		<link>http://www.quanlei.com/2012/03/3089.html</link>
		<comments>http://www.quanlei.com/2012/03/3089.html#comments</comments>
		<pubDate>Mon, 26 Mar 2012 07:58:25 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>
		<category><![CDATA[ehcache]]></category>
		<category><![CDATA[缓存]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=3089</guid>
		<description><![CDATA[首先是包的依赖，这个具体就不说了，去ehcache官网下载最新稳定版，然后将jar包加入项目依赖。 最主要的是web.xml的配置和ehcache.xml的配置： web.xml ehcache.xml 还有一个ehcache.xsd文件，该文件是ehcache.xml的校验文件，跟ehcache.xml放在classes下面。 创建一个很简单的测试页面，比如显示时间的： 如果项目部署成功，ehcache生效的话，刷新页面时，页面的显示时间在缓存有效期内应该是不变的。 上面的东西跑成功后，我们再看看ehcache中的参数意思： maxElementsInMemory：缓存中允许创建的最大对象数； eternal：缓存中对象是否为永久的，如果是，超时设置将被忽略，对象从不过期。 timeToIdleSeconds：多长时间不访问该缓存，那么ehcache 就会清除该缓存，如果该值是 0 就意味着元素可以停顿无穷长的时间。 timeToLiveSeconds：缓存的存活时间，从开始创建的时间算起，如果该值是0就意味着元素可以存活无穷长的时间。 overflowToDisk：内存不足时，是否启用磁盘缓存。 memoryStoreEvictionPolicy：缓存满了之后的淘汰算法，有下面几种策略： FIFO，first in first out，先进先出 LFU，Less Frequently Used，一直以来最少被使用的。 LRU，Least Recently Used ，最近最少使用的，缓存的元素有一个时间戳，当缓存容量满了，而又需要腾出地方来缓存新的元素的时候，那么现有缓存元素中时间戳离当前时间最远的元素将被清出缓存。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="在GlassFish中缓存静态资源，开启Gzip" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F03%2Fglassfish-gzip-expires-header%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/03/14/3513919.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">在GlassFish中缓存静态资源，开启Gzip</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Notes: 在GlassFish中缓存静态资源，开启Gzip" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F03%2F2277.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/03/14/3513919.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Notes: 在GlassFish中缓存静态资源，开启Gzip</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="SHOW小TOM的照片" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2Fshow%25E5%25B0%258Ftom%25E7%259A%2584%25E7%2585%25A7%25E7%2589%2587%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2260350.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">SHOW小TOM的照片</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="2010年北京的第一场大雪" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F2010-big-snow%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258578.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">2010年北京的第一场大雪</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows8 体验" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2F2739.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2012/03/23/18018503.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows8 体验</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>首先是包的依赖，这个具体就不说了，去ehcache官网下载最新稳定版，然后将jar包加入项目依赖。</p>
<p>最主要的是web.xml的配置和ehcache.xml的配置：</p>
<p>web.xml</p>
<pre class="brush: plain; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;web-app version=&quot;2.5&quot; xmlns=&quot;http://java.sun.com/xml/ns/javaee&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd&quot;&gt;
    &lt;filter&gt;
        &lt;filter-name&gt;SimplePageCachingFilter&lt;/filter-name&gt;
        &lt;filter-class&gt;net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter&lt;/filter-class&gt;
    &lt;/filter&gt;
    &lt;filter-mapping&gt;
        &lt;filter-name&gt;SimplePageCachingFilter&lt;/filter-name&gt;
        &lt;url-pattern&gt;/index.jsp&lt;/url-pattern&gt;
    &lt;/filter-mapping&gt;
    &lt;session-config&gt;
        &lt;session-timeout&gt;
            30
        &lt;/session-timeout&gt;
    &lt;/session-config&gt;
    &lt;welcome-file-list&gt;
        &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
&lt;/web-app&gt;
</pre>
<p><span id="more-3089"></span><br />
ehcache.xml</p>
<pre class="brush: plain; title: ; notranslate">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;ehcache xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
         xsi:noNamespaceSchemaLocation=&quot;ehcache.xsd&quot; updateCheck=&quot;true&quot;
         monitoring=&quot;autodetect&quot; dynamicConfig=&quot;true&quot;&gt;
    &lt;defaultCache   maxElementsInMemory=&quot;10000&quot;
                    eternal=&quot;false&quot;
                    timeToIdleSeconds=&quot;120&quot;
                    timeToLiveSeconds=&quot;120&quot;
                    overflowToDisk=&quot;true&quot;
                    maxElementsOnDisk=&quot;10000000&quot;
                    diskPersistent=&quot;false&quot;
                    diskExpiryThreadIntervalSeconds=&quot;120&quot;
                    memoryStoreEvictionPolicy=&quot;LRU&quot; /&gt;
    &lt;cache name=&quot;SimplePageCachingFilter&quot; maxElementsInMemory=&quot;10000&quot; eternal=&quot;false&quot;
           overflowToDisk=&quot;false&quot; timeToIdleSeconds=&quot;300&quot; timeToLiveSeconds=&quot;600&quot;
           memoryStoreEvictionPolicy=&quot;LFU&quot; /&gt;
&lt;/ehcache&gt;
</pre>
<p>还有一个ehcache.xsd文件，该文件是ehcache.xml的校验文件，跟ehcache.xml放在classes下面。</p>
<p>创建一个很简单的测试页面，比如显示时间的：</p>
<pre class="brush: plain; title: ; notranslate">
&lt;%@page import=&quot;java.util.Date&quot;%&gt;
&lt;%@page contentType=&quot;text/html&quot; pageEncoding=&quot;UTF-8&quot;%&gt;
&lt;!DOCTYPE html&gt;
&lt;html&gt;
    &lt;head&gt;
        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;
        &lt;title&gt;JSP Page&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;%
            out.println(new Date());
        %&gt;
    &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>如果项目部署成功，ehcache生效的话，刷新页面时，页面的显示时间在缓存有效期内应该是不变的。</p>
<p>上面的东西跑成功后，我们再看看ehcache中的参数意思：</p>
<p><strong>maxElementsInMemory</strong>：缓存中允许创建的最大对象数；</p>
<p><strong>eternal</strong>：缓存中对象是否为永久的，如果是，超时设置将被忽略，对象从不过期。</p>
<p><strong>timeToIdleSeconds</strong>：多长时间不访问该缓存，那么ehcache 就会清除该缓存，如果该值是 0 就意味着元素可以停顿无穷长的时间。</p>
<p><strong>timeToLiveSeconds</strong>：缓存的存活时间，从开始创建的时间算起，如果该值是0就意味着元素可以存活无穷长的时间。</p>
<p><strong>overflowToDisk</strong>：内存不足时，是否启用磁盘缓存。</p>
<p><strong>memoryStoreEvictionPolicy</strong>：缓存满了之后的淘汰算法，有下面几种策略：</p>
<ul>
<li>FIFO，first in first out，先进先出</li>
<li>LFU，Less Frequently Used，一直以来最少被使用的。</li>
<li>LRU，Least Recently Used ，最近最少使用的，缓存的元素有一个时间戳，当缓存容量满了，而又需要腾出地方来缓存新的元素的时候，那么现有缓存元素中时间戳离当前时间最远的元素将被清出缓存。</li>
</ul>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://www.quanlei.com";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=6&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.2";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="在GlassFish中缓存静态资源，开启Gzip" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F03%2Fglassfish-gzip-expires-header%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/03/14/3513919.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">在GlassFish中缓存静态资源，开启Gzip</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Notes: 在GlassFish中缓存静态资源，开启Gzip" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F03%2F2277.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/03/14/3513919.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Notes: 在GlassFish中缓存静态资源，开启Gzip</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="平安从密云京都第一瀑自驾归来" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2F%25E5%25B9%25B3%25E5%25AE%2589%25E4%25BB%258E%25E5%25AF%2586%25E4%25BA%2591%25E4%25BA%25AC%25E9%2583%25BD%25E7%25AC%25AC%25E4%25B8%2580%25E7%2580%2591%25E8%2587%25AA%25E9%25A9%25BE%25E5%25BD%2592%25E6%259D%25A5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2261346.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">平安从密云京都第一瀑自驾归来</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[转载]中文系统下使用NetBeans英文界面的方法及启动参数详解" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F10%2F264.html&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2259306.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[转载]中文系统下使用NetBeans英文界面的方法及启动参数详解</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Drawing in code" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F02%2Fdrawing-in-code%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F03%2F3089.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258440.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Drawing in code</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/03/3089.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

