<?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>fish的航海日志 &#187; tips</title>
	<atom:link href="http://blog.v2op.com/tag/tips/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.v2op.com</link>
	<description>海到无边天做岸,山登绝顶我为峰</description>
	<lastBuildDate>Mon, 30 Jan 2012 04:30:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>拒绝垃圾邮件，隐藏email地址</title>
		<link>http://blog.v2op.com/2010/02/e-mail-links-protective-solutions-against-spam/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=e-mail-links-protective-solutions-against-spam</link>
		<comments>http://blog.v2op.com/2010/02/e-mail-links-protective-solutions-against-spam/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 12:25:02 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=529</guid>
		<description><![CDATA[如今的垃圾邮件是越来越猖狂了，稍不小心就会遭致无穷尽的骚扰。尽管有如同Gmail这样的强大的反垃圾邮件的服务商，仍有不少漏网之鱼（每天躺在我收件箱里的垃圾邮件会有几十封）。 我们需要避免直接在网页中留下email地址，例如 test@test.com。下面有一些简单且行之有效的方法隐藏email地址。 方法一：使用图片显示email地址 例如： Google里搜索一下“email图片”类似的关键词，就可以找到有很多网站生成这样的图片 这里有一个：http://www.makepic.com/email.php 方法二：隐藏 @ 符号 使用 &#38;#64; 代替 @，（是@符号的html实体代码）显示出来的效果会是 test@test.com 使用 at 或者其他任意字符 代替 @，例如 test at test.com、test(at)test.com 方法三：使用脚本语言（php或JavaScript）隐藏email地址 代码一：PHP function convert_email_adr&#40;$email&#41; &#123; $pieces = str_split&#40;trim&#40;$email&#41;&#41;; $new_mail = ''; foreach &#40;$pieces as $val&#41; &#123; $new_mail &#8230; <a href="http://blog.v2op.com/2010/02/e-mail-links-protective-solutions-against-spam/">Continue reading <span class="meta-nav">&#8594;</span></a><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="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="spam无所不在" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F09%2Fspam-omnipresent%2F&from=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669513.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">spam无所不在</font>
                    </a>
                </td>
                <td width="102" 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.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" 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.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fa-good-email-marketing-subject-help-to-improve-open-rates%2F&from=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows分区技巧，如何获得整数分区" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F&from=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669508.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows分区技巧，如何获得整数分区</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>如今的垃圾邮件是越来越猖狂了，稍不小心就会遭致无穷尽的骚扰。尽管有如同Gmail这样的强大的反垃圾邮件的服务商，仍有不少漏网之鱼（每天躺在我收件箱里的垃圾邮件会有几十封）。</p>
<p>我们需要避免直接在网页中留下email地址，例如 test@test.com。下面有一些简单且行之有效的方法隐藏email地址。</p>
<h2>方法一：使用图片显示email地址</h2>
<p>例如：<a href="http://blog.v2op.com/wp-content/uploads/2010/02/fish@email.png"><img class="alignnone size-full wp-image-530" title="fish@email" src="http://blog.v2op.com/wp-content/uploads/2010/02/fish@email.png" alt="" width="189" height="24" /></a></p>
<p>Google里搜索一下“email图片”类似的关键词，就可以找到有很多网站生成这样的图片</p>
<p>这里有一个：http://www.makepic.com/email.php</p>
<h2>方法二：隐藏 @ 符号</h2>
<ul>
<li>使用 &amp;#64; 代替 @，（是@符号的html实体代码）显示出来的效果会是 test@test.com</li>
<li>使用 at 或者其他任意字符 代替 @，例如 test at test.com、test(at)test.com</li>
</ul>
<h2>方法三：使用脚本语言（php或JavaScript）隐藏email地址</h2>
<h3>代码一：PHP</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> convert_email_adr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$pieces</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_split</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$new_mail</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$pieces</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$val</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$new_mail</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">'&amp;amp;#'</span><span style="color: #339933;">.</span><span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$val</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">';'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$new_mail</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>在页面中调用此函数<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> convert_email_adr<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user@email.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p></code><br />
输出结果<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&amp;#117;&amp;#115;&amp;#101;&amp;#114;&amp;#64;&amp;#101;&amp;#109;&amp;#97;&amp;#105;&amp;#108;&amp;#46;&amp;#99;&amp;#111;&amp;#109;</pre></div></div>

<p></code></p>
<h3>代码二：JavaScript</h3>
<p><code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> create_mail<span style="color: #009900;">&#40;</span>naam<span style="color: #339933;">,</span> domain<span style="color: #339933;">,</span> tld<span style="color: #339933;">,</span> label<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> mail<span style="color: #339933;">;</span>
    mail <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;a href=&quot;'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'ma'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'il'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'to:'</span> <span style="color: #339933;">+</span> naam<span style="color: #339933;">;</span>
    mail <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&amp;#64;'</span> <span style="color: #339933;">+</span> mail <span style="color: #339933;">+</span> domain <span style="color: #3366CC;">'.'</span> <span style="color: #339933;">+</span> tld<span style="color: #339933;">;</span>
    mail <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&quot;&gt;'</span> <span style="color: #339933;">+</span> label <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'/a&gt;'</span><span style="color: #339933;">;</span>
    document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span>mail<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p></code><br />
在页面中插入此代码调用<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>create_mail<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;user&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;email&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;com&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;e-mail&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p></code></p>
<h3>代码三：</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> hide_email<span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000088;">$character_set</span>  <span style="color: #339933;">=</span> <span style="color: #0000ff;">'+-.0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'</span><span style="color: #339933;">;</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_shuffle</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$character_set</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$cipher_text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span> <span style="color: #000088;">$id</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'e'</span><span style="color: #339933;">.</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">999999999</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #0000ff;">&quot;+d+&quot;</span><span style="color: #0000ff;">&quot;'; <span style="color: #006699; font-weight: bold;">$script</span> = &quot;</span><span style="color: #990000;">eval</span><span style="color: #009900;">&#40;</span>\<span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\\</span><span style="color: #000099; font-weight: bold;">\\</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'\&quot;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$script</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>)&quot;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$script</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--mce:2--&gt;&lt;/script&gt;'</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'&lt;span id=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;[javascript protected email address]&lt;/span&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$script</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span></pre></div></div>

<p>在页面中调用此函数<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> hide_email<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'test@test.com'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p></code><br />
输出结果<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>span id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;e5119581&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#91;</span>javascript <span style="color: #000000; font-weight: bold;">protected</span> email address<span style="color: #009900;">&#93;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #666666; font-style: italic;">/*&lt;![CDATA[*/</span><span style="color: #990000;">eval</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;var a=<span style="color: #000099; font-weight: bold;">\&quot;</span>XyScbvBUW38fhasxldY_TQotLE5nCJDkgMVIq@KeArO9i20G1pHu.R4N6PZm7j-+wFz<span style="color: #000099; font-weight: bold;">\&quot;</span>;var b=a.split(<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span>).sort().join(<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span>);var c=<span style="color: #000099; font-weight: bold;">\&quot;</span>72m7a72m7S9NR<span style="color: #000099; font-weight: bold;">\&quot;</span>;var d=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\&quot;</span>;for(var e=0;e&lt;c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));document.getElementById(<span style="color: #000099; font-weight: bold;">\&quot;</span>e5119581<span style="color: #000099; font-weight: bold;">\&quot;</span>).innerHTML=<span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;a href=<span style="color: #000099; font-weight: bold;">\\</span><span style="color: #000099; font-weight: bold;">\&quot;</span>mailto:<span style="color: #000099; font-weight: bold;">\&quot;</span>+d+<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\\</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span>+d+<span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;/a&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #666666; font-style: italic;">/*]]&gt;*/</span><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></pre></div></div>

<p></code><br />
显示效果<br />
<code></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">test@test.com</pre></div></div>

<p></code></p>
<p>代码一、代码二<a href="http://www.web-development-blog.com/archives/e-mail-links-protective-solutions-against-spam/">原文点击这里</a><br />
代码三<a href="http://www.maurits.vdschee.nl/php_hide_email/">原文点击这里</a></p>
<p>还有一些其他的方法，例如利用css翻转字符。大家可以自己搜搜看。</p>
<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="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="spam无所不在" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F09%2Fspam-omnipresent%2F&from=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669513.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">spam无所不在</font>
                    </a>
                </td>
                <td width="102" 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.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" 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.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F04%2Fa-good-email-marketing-subject-help-to-improve-open-rates%2F&from=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows分区技巧，如何获得整数分区" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F&from=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669508.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows分区技巧，如何获得整数分区</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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://blog.v2op.com/2010/02/e-mail-links-protective-solutions-against-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何发挥一只镜头的最佳成像</title>
		<link>http://blog.v2op.com/2009/01/7-tips-for-the-best-imaging/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=7-tips-for-the-best-imaging</link>
		<comments>http://blog.v2op.com/2009/01/7-tips-for-the-best-imaging/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 02:48:51 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[精彩网摘]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=202</guid>
		<description><![CDATA[尽量使用遮光罩，强光下拍摄时，避免光源或强烈的反射光进入构图 尽量避免使用最大光圈，缩小2档光圈将大大降低像差，提高画质 尽量使用颗粒细腻的胶卷，数码相机选择不超过200的ISO值 尽量避免拍摄过近的对焦距离，一个简单的公式可以让你知道一只镜头的最佳成像距离区间：镜头焦距×50×（1～3），例如一只50mm镜头的最佳成像距离大概在50mm×50×(1~3)=2.5至7.5m 尽量避免拍摄复杂、大光比的线性边缘物体，例如背景是天空的树枝；这类场景极易产生色差（紫边） 尽量避免使用变焦镜头的极值端，一般来说，普通变焦套头从最广端起三分之一焦段是畸变最小的焦段，例如18-55mm镜头最佳焦段为30mm 尽量使用三脚架——尤其是单反相机，因为反光板振动，1/30秒以下的照片都不可避免存在清晰问题，三角架可以很好解决振动，发挥最佳成像（当然，使用布帘快门的Leica M旁轴就少了这个烦恼） 文章出处<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows分区技巧，如何获得整数分区</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">拒绝垃圾邮件，隐藏email地址</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用PHP压缩CSS的三种方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下禁止root帐户远程登录</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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[<ol>
<li><strong>尽量使用遮光罩</strong>，强光下拍摄时，避免光源或强烈的反射光进入构图</li>
<li><strong>尽量避免使用最大光圈</strong>，缩小2档光圈将大大降低像差，提高画质</li>
<li><strong>尽量使用颗粒细腻的胶卷</strong>，数码相机选择不超过200的ISO值</li>
<li><strong>尽量避免拍摄过近的对焦距离</strong>，一个简单的公式可以让你知道一只镜头的最佳成像距离区间：镜头焦距×50×（1～3），例如一只50mm镜头的最佳成像距离大概在50mm×50×(1~3)=2.5至7.5m</li>
<li><strong>尽量避免拍摄复杂、大光比的线性边缘物体</strong>，例如背景是天空的树枝；这类场景极易产生色差（紫边）</li>
<li><strong>尽量避免使用变焦镜头的极值端</strong>，一般来说，普通变焦套头从最广端起三分之一焦段是畸变最小的焦段，例如18-55mm镜头最佳焦段为30mm</li>
<li><strong>尽量使用三脚架</strong>——尤其是单反相机，因为反光板振动，1/30秒以下的照片都不可避免存在清晰问题，三角架可以很好解决振动，发挥最佳成像（当然，使用布帘快门的Leica M旁轴就少了这个烦恼）</li>
</ol>
<p><a href="http://www.leica.org.cn/post/663/">文章出处</a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows分区技巧，如何获得整数分区</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">拒绝垃圾邮件，隐藏email地址</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用PHP压缩CSS的三种方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F&from=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Linux下禁止root帐户远程登录</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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://blog.v2op.com/2009/01/7-tips-for-the-best-imaging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用PHP压缩CSS的三种方法</title>
		<link>http://blog.v2op.com/2008/12/3-ways-to-compress-css-files-using-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=3-ways-to-compress-css-files-using-php</link>
		<comments>http://blog.v2op.com/2008/12/3-ways-to-compress-css-files-using-php/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 16:11:50 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=259</guid>
		<description><![CDATA[一个网站通常包含多个css文件。网站越复杂，这些css文件也会越庞大，对它们进行适当的压缩，可以节约不少带宽（在访问量巨大的时候尤为明显）。 下面介绍三种使用PHP压缩css的方法。 第一种方法： 修改css的文件名，比如把 v2op.css 改成 v2op.css.php。调用的方式如下： &#60;link rel="stylesheet" type="text/css" media="screen" href="/v2op.css.php"/&#62; 然后修改此v2op.css.php，在文件开头加上 &#60;?php if(extension_loaded('zlib')){ob_start('ob_gzhandler');} header("Content-type: text/css"); ?&#62; 在文件最后面加上 &#60;?php if(extension_loaded('zlib')){ob_end_flush();}?&#62; 第二种方法： 同样是先修改css的文件名，把v2op.css 修改为 v2op.css.php。 然后在文件开头处加上下面这段代码（注意文件的编码，这里是utf-8，根据你自己的需要修改） &#60;?php ob_start ("ob_gzhandler"); header ("content-type: text/css; charset: UTF-8"); header ("cache-control: must-revalidate"); $offset = 60 &#8230; <a href="http://blog.v2op.com/2008/12/3-ways-to-compress-css-files-using-php/">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何发挥一只镜头的最佳成像</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F09%2Flink-visited-hover-active%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">超链接样式的正确顺序（link-visited-hover-active）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Ftop-10-php-frameworks%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">10大PHP框架</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F08%2Fupload-large-files-in-php%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP上传大文件时的参数设置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>一个网站通常包含多个css文件。网站越复杂，这些css文件也会越庞大，对它们进行适当的压缩，可以节约不少带宽（在访问量巨大的时候尤为明显）。</p>
<p>下面介绍三种使用PHP压缩css的方法。</p>
<p><strong>第一种方法：</strong></p>
<p>修改css的文件名，比如把 v2op.css 改成 v2op.css.php。调用的方式如下：</p>
<pre>&lt;link rel="stylesheet" type="text/css" media="screen" href="/v2op.css.php"/&gt;

然后修改此v2op.css.php，在文件开头加上
&lt;?php
if(extension_loaded('zlib')){ob_start('ob_gzhandler');}
header("Content-type: text/css");
?&gt;

在文件最后面加上
&lt;?php if(extension_loaded('zlib')){ob_end_flush();}?&gt;

<strong>第二种方法：</strong>

同样是先修改css的文件名，把v2op.css 修改为 v2op.css.php。

然后在文件开头处加上下面这段代码（注意文件的编码，这里是utf-8，根据你自己的需要修改）
&lt;?php
   ob_start ("ob_gzhandler");
   header ("content-type: text/css; charset: UTF-8");
   header ("cache-control: must-revalidate");
   $offset = 60 * 60;
   $expire = "expires: " . gmdate ("D, d M Y H:i:s", time() + $offset) . " GMT";
   header ($expire);
?&gt;

<strong>第三种方法：</strong>

新建一个php文件，例如 v2op.css.php，然后include进来你的css文件，复制如下代码

&lt;?php
  header('Content-type: text/css');
  ob_start("compress");
  function compress($buffer) {
    /* remove comments */
    $buffer = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $buffer);
    /* remove tabs, spaces, newlines, etc. */
    $buffer = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $buffer);
    return $buffer;
  }

  /* 此处修改为你自己的css路径 */
  include('v2op.css');

  ob_end_flush();
?&gt;

我个人更喜欢这种方式 <img src='http://blog.v2op.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 

当然，如果您嫌麻烦，也可以使用现成的工具去优化css，比如 <a href="http://www.v2op.com/tools/csstidy/?lang=zh" target="_blank">csstidy</a></pre>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何发挥一只镜头的最佳成像</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F09%2Flink-visited-hover-active%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">超链接样式的正确顺序（link-visited-hover-active）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F03%2Ftop-10-php-frameworks%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">10大PHP框架</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F08%2Fupload-large-files-in-php%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP上传大文件时的参数设置</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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://blog.v2op.com/2008/12/3-ways-to-compress-css-files-using-php/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Windows分区技巧，如何获得整数分区</title>
		<link>http://blog.v2op.com/2008/06/windows%e5%88%86%e5%8c%ba%e6%8a%80%e5%b7%a7%ef%bc%8c%e8%8e%b7%e5%be%97%e6%95%b4%e6%95%b0%e5%88%86%e5%8c%ba/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=windows%25e5%2588%2586%25e5%258c%25ba%25e6%258a%2580%25e5%25b7%25a7%25ef%25bc%258c%25e8%258e%25b7%25e5%25be%2597%25e6%2595%25b4%25e6%2595%25b0%25e5%2588%2586%25e5%258c%25ba</link>
		<comments>http://blog.v2op.com/2008/06/windows%e5%88%86%e5%8c%ba%e6%8a%80%e5%b7%a7%ef%bc%8c%e8%8e%b7%e5%be%97%e6%95%b4%e6%95%b0%e5%88%86%e5%8c%ba/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 06:19:33 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[分区]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=130</guid>
		<description><![CDATA[（注：整数分区没有实际意义，只是为了看起来整齐些，上图是我的硬盘分区，2块硬盘，一个160G，一个250G） 我们安装系统时，都有分区这一步，输入数值（分区大小），切割硬盘。但是按照常规1024M等于1G（当然，按照1000M=1G也是不行的），如果我们我们想要20G，输入20480M（或20000M），最后得到的肯定不是20G，而是19.9G或者19.8G。 那么如何得到整数的分区呢？网上有一个公式， 整数G计算公式：(X－1)*4+1024*X=Y 其中X就是你想要得到的整数分区的数值，单位是G，Y是你分区时应该输入的数字，单位是M，例如我想得到Windows下的3G整数空间，那么我分区时就应该输入(3－1)*4＋1024*3＝3080，那么我们应该在分区时输入3080作为分区的大小，同理欲分出10G的空间则应该是(10－1)*4＋1024*10＝10276,输入10276将会得到10G的整数空间。 按照上述公式，我们得到 (5－1)*4+1024*5=5136 5G (10－1)*4+1024*10=10276 10G (15－1)*4+1024*15=15416 15G (20－1)*4+1024*20=20556 20G (30-1)*4+1024*30=116+30720=30836 30G 经过测试，5G到20G都没有问题，但是30G，用这个公式分出来的就不对咯，变成了29.9G，40G也是如此。 其实等于30G，40G甚至更大，应该用这个公式 X*1024+5 = Y 例如30G就是 30*1024+5 = 30725，40G就是 40*1024+5 = 40965 输入这个数值就会得到整数值的30和40G分区。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何发挥一只镜头的最佳成像</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F10%2Fwindows7-ultimate-chinese-simple-7600%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows7简体中文正式旗舰版（ultimate 7600）下载</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">拒绝垃圾邮件，隐藏email地址</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用PHP压缩CSS的三种方法</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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><img class="alignnone size-full wp-image-131" title="e695b4e695b0e58886e58cba" src="http://blog.v2op.com/wp-content/uploads/2008/06/e695b4e695b0e58886e58cba.jpg" alt="" width="390" height="385" /></p>
<p>（注：整数分区没有实际意义，只是为了看起来整齐些，上图是我的硬盘分区，2块硬盘，一个160G，一个250G）</p>
<p>我们安装系统时，都有分区这一步，输入数值（分区大小），切割硬盘。但是按照常规1024M等于1G（当然，按照1000M=1G也是不行的），如果我们我们想要20G，输入20480M（或20000M），最后得到的肯定不是20G，而是19.9G或者19.8G。</p>
<p>那么如何得到整数的分区呢？网上有一个公式，</p>
<blockquote><p><strong>整数G计算公式：(X－1)*4+1024*X=Y</strong></p>
<p>其中X就是你想要得到的整数分区的数值，单位是G，Y是你分区时应该输入的数字，单位是M，例如我想得到Windows下的3G整数空间，那么我分区时就应该输入(3－1)*4＋1024*3＝3080，那么我们应该在分区时输入3080作为分区的大小，同理欲分出10G的空间则应该是(10－1)*4＋1024*10＝10276,输入10276将会得到10G的整数空间。</p></blockquote>
<p>按照上述公式，我们得到</p>
<p>(5－1)*4+1024*5=5136 <strong>5G</strong><br />
(10－1)*4+1024*10=10276 <strong>10G</strong><br />
(15－1)*4+1024*15=15416 <strong>15G</strong><br />
(20－1)*4+1024*20=20556 <strong>20G</strong><br />
(30-1)*4+1024*30=116+30720=30836 <strong>30G</strong></p>
<p>经过测试，5G到20G都没有问题，但是30G，用这个公式分出来的就不对咯，变成了29.9G，40G也是如此。</p>
<p>其实等于30G，40G甚至更大，应该用这个公式</p>
<blockquote><p><strong>X*1024+5 = Y</strong></p></blockquote>
<p>例如30G就是 30*1024+5 = 30725，40G就是 40*1024+5 = 40965</p>
<p>输入这个数值就会得到整数值的30和40G分区。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何发挥一只镜头的最佳成像</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F10%2Fwindows7-ultimate-chinese-simple-7600%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Windows7简体中文正式旗舰版（ultimate 7600）下载</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Fe-mail-links-protective-solutions-against-spam%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">拒绝垃圾邮件，隐藏email地址</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F12%2F3-ways-to-compress-css-files-using-php%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用PHP压缩CSS的三种方法</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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://blog.v2op.com/2008/06/windows%e5%88%86%e5%8c%ba%e6%8a%80%e5%b7%a7%ef%bc%8c%e8%8e%b7%e5%be%97%e6%95%b4%e6%95%b0%e5%88%86%e5%8c%ba/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Linux下禁止root帐户远程登录</title>
		<link>http://blog.v2op.com/2008/06/linux%e4%b8%8b%e7%a6%81%e6%ad%a2root%e5%b8%90%e6%88%b7%e8%bf%9c%e7%a8%8b%e7%99%bb%e5%bd%95/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=linux%25e4%25b8%258b%25e7%25a6%2581%25e6%25ad%25a2root%25e5%25b8%2590%25e6%2588%25b7%25e8%25bf%259c%25e7%25a8%258b%25e7%2599%25bb%25e5%25bd%2595</link>
		<comments>http://blog.v2op.com/2008/06/linux%e4%b8%8b%e7%a6%81%e6%ad%a2root%e5%b8%90%e6%88%b7%e8%bf%9c%e7%a8%8b%e7%99%bb%e5%bd%95/#comments</comments>
		<pubDate>Sat, 21 Jun 2008 05:51:48 +0000</pubDate>
		<dc:creator>AmirFish</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[安全]]></category>

		<guid isPermaLink="false">http://blog.v2op.com/?p=129</guid>
		<description><![CDATA[最近很多人问我这个问题：“用户名root正确，密码也正确，为何死活登录不了公司的服务器？”呃，新手学习linux时都几乎都会遇到这种情况，尽管这是个常识。 出于安全考虑，我们通常禁止root帐户直接通过SSH远程登录。 正确的做法是用一个普通用户ssh登录，再使用 su 命令更换身份。 那么如何修改系统，做到禁止root帐户远程登录呢？很简单： 用VI编辑 /etc/ssh/sshd_config 文件 找到这句 #PermitRootLogin yes 修改为（注意：去掉了 # 号） PermitRootLogin no :wq 保存 重启sshd服务器即可 # service sshd restart<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="102" 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.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux下shell命令的常用快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Flinux%25E4%25B8%258Bshell%25E5%2591%25BD%25E4%25BB%25A4%25E7%259A%2584%25E5%25B8%25B8%25E7%2594%25A8%25E5%25BF%25AB%25E6%258D%25B7%25E9%2594%25AE%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux下shell命令的常用快捷键</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="安全卫士360，Neo!登录成功？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F08%2F%25E5%25AE%2589%25E5%2585%25A8%25E5%258D%25AB%25E5%25A3%25AB360%25EF%25BC%258Cneo%25E7%2599%25BB%25E5%25BD%2595%25E6%2588%2590%25E5%258A%259F%25EF%25BC%259F%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669746.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">安全卫士360，Neo!登录成功？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows分区技巧，如何获得整数分区" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669508.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows分区技巧，如何获得整数分区</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>最近很多人问我这个问题：“用户名root正确，密码也正确，为何死活登录不了公司的服务器？”呃，新手学习linux时都几乎都会遇到这种情况，尽管这是个常识。</p>
<p>出于安全考虑，我们通常禁止root帐户直接通过SSH远程登录。</p>
<p>正确的做法是用一个普通用户ssh登录，再<strong>使用 su 命令</strong>更换身份。</p>
<p>那么如何修改系统，做到禁止root帐户远程登录呢？很简单：</p>
<p>用VI编辑 /etc/ssh/sshd_config 文件</p>
<p>找到这句</p>
<p>#PermitRootLogin yes</p>
<p>修改为（注意：去掉了 # 号）</p>
<p>PermitRootLogin no</p>
<p>:wq 保存</p>
<p>重启sshd服务器即可</p>
<p># service sshd restart</p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://blog.v2op.com";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=4&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></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="4"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" 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.htm?url=http%3A%2F%2Fblog.v2op.com%2F2009%2F01%2F7-tips-for-the-best-imaging%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !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="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="linux下shell命令的常用快捷键" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2010%2F02%2Flinux%25E4%25B8%258Bshell%25E5%2591%25BD%25E4%25BB%25A4%25E7%259A%2584%25E5%25B8%25B8%25E7%2594%25A8%25E5%25BF%25AB%25E6%258D%25B7%25E9%2594%25AE%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">linux下shell命令的常用快捷键</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="安全卫士360，Neo!登录成功？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F08%2F%25E5%25AE%2589%25E5%2585%25A8%25E5%258D%25AB%25E5%25A3%25AB360%25EF%25BC%258Cneo%25E7%2599%25BB%25E5%25BD%2595%25E6%2588%2590%25E5%258A%259F%25EF%25BC%259F%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669746.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">安全卫士360，Neo!登录成功？</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows分区技巧，如何获得整数分区" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Fwindows%25E5%2588%2586%25E5%258C%25BA%25E6%258A%2580%25E5%25B7%25A7%25EF%25BC%258C%25E8%258E%25B7%25E5%25BE%2597%25E6%2595%25B4%25E6%2595%25B0%25E5%2588%2586%25E5%258C%25BA%2F&from=http%3A%2F%2Fblog.v2op.com%2F2008%2F06%2Flinux%25E4%25B8%258B%25E7%25A6%2581%25E6%25AD%25A2root%25E5%25B8%2590%25E6%2588%25B7%25E8%25BF%259C%25E7%25A8%258B%25E7%2599%25BB%25E5%25BD%2595%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/02/11/2669508.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows分区技巧，如何获得整数分区</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="4" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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://blog.v2op.com/2008/06/linux%e4%b8%8b%e7%a6%81%e6%ad%a2root%e5%b8%90%e6%88%b7%e8%bf%9c%e7%a8%8b%e7%99%bb%e5%bd%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

