<?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>记录与PHP的PK经历 &#187; LAMP</title>
	<atom:link href="http://www.pkphp.com/category/lamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pkphp.com</link>
	<description>PK with php!</description>
	<lastBuildDate>Fri, 27 May 2011 02:07:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>centOS带宽实时流量查看工具</title>
		<link>http://www.pkphp.com/2011/04/07/centos-iftop/</link>
		<comments>http://www.pkphp.com/2011/04/07/centos-iftop/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 03:28:52 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[百宝箱]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=1049</guid>
		<description><![CDATA[安装过程： yum list &#124; grep libp yum install -y libpcap-devel cd /root/tools wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz tar zxvf iftop-0.17.tar.gz cd iftop-0.17 ./configure make make install 使用： iftop -i eth0 可以显示出来10s,20s,40s带宽实时值 Related items svn错误：Authentication realm 解决办法 linux下的脚本文件要注意换行符与Windows不同！ 如何防止服务器被暴力破解密码？ linux下为什么0777的文件夹和文件apache无法写入呢？ Get your Mr Right web hosting here var escFun = window.encodeURIComponent ? window.encodeURIComponent : escape; var relatedlinks_js = document.createElement("script"); [...]<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%2Fwww.pkphp.com%2F2010%2F10%2F23%2Fcentos-web%25E6%259C%258D%25E5%258A%25A1-%25E9%2598%25B2%25E7%2581%25AB%25E5%25A2%2599%25E9%2585%258D%25E7%25BD%25AE%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2011%2F04%2F07%2Fcentos-iftop%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CentOS web服务 防火墙配置</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%2Fwww.pkphp.com%2F2010%2F01%2F02%2Fcentos-iptable-open-80-22-3306%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2011%2F04%2F07%2Fcentos-iftop%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CentOS 防火墙打开80，22，3306端口操作</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%2Fwww.pkphp.com%2F2010%2F10%2F25%2F%25E5%259B%25BD%25E5%2586%2585centos5%25E7%2594%25B5%25E4%25BF%25A1%25E6%259B%25B4%25E6%2596%25B0%25E6%25BA%2590%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2011%2F04%2F07%2Fcentos-iftop%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">国内CentOS5电信更新源！</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%2Fwww.pkphp.com%2F2010%2F11%2F18%2F%25E5%259B%25BD%25E5%2586%2585%25E5%2585%258D%25E8%25B4%25B9%25E5%259B%25BE%25E7%2589%2587%25E7%25A9%25BA%25E9%2597%25B4%25EF%25BC%258C%25E4%25B8%258D%25E9%2599%2590%25E5%2588%25B6%25E6%25B5%2581%25E9%2587%258F%25EF%25BC%258C%25E4%25B8%258D%25E9%2599%2590%25E5%2588%25B6%25E5%25A4%2596%25E9%2593%25BE%25EF%25BC%258C%25E9%2580%259F%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2011%2F04%2F07%2Fcentos-iftop%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">国内免费图片空间，不限制流量，不限制外链，速度超快！</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>安装过程：</p>
<blockquote><p>yum list | grep libp<br />
yum install -y libpcap-devel<br />
cd /root/tools<br />
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz<br />
tar zxvf iftop-0.17.tar.gz<br />
cd iftop-0.17<br />
./configure<br />
make<br />
make install</p></blockquote>
<p>使用：</p>
<blockquote><p>iftop -i eth0</p></blockquote>
<p>可以显示出来10s,20s,40s带宽实时值<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/10/06/svn-authentication-realm/'>svn错误：Authentication realm 解决办法</a></li>
<li><a href='http://www.pkphp.com/2008/08/30/linux%e4%b8%8b%e7%9a%84%e8%84%9a%e6%9c%ac%e6%96%87%e4%bb%b6%e8%a6%81%e6%b3%a8%e6%84%8f%e6%8d%a2%e8%a1%8c%e7%ac%a6%e4%b8%8ewindows%e4%b8%8d%e5%90%8c%ef%bc%81/'>linux下的脚本文件要注意换行符与Windows不同！</a></li>
<li><a href='http://www.pkphp.com/2008/08/30/520zuixin-com-linux-secure-iptables/'>如何防止服务器被暴力破解密码？</a></li>
<li><a href='http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/'>linux下为什么0777的文件夹和文件apache无法写入呢？</a></li>
<li><a href='http://www.pkphp.com/2011/05/27/get-your-mr-right-web-hosting-here/'>Get your Mr Right web hosting here</a></li>
</ul>
<br /><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%2Fwww.pkphp.com%2F2010%2F10%2F23%2Fcentos-web%25E6%259C%258D%25E5%258A%25A1-%25E9%2598%25B2%25E7%2581%25AB%25E5%25A2%2599%25E9%2585%258D%25E7%25BD%25AE%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2011%2F04%2F07%2Fcentos-iftop%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CentOS web服务 防火墙配置</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%2Fwww.pkphp.com%2F2010%2F01%2F02%2Fcentos-iptable-open-80-22-3306%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2011%2F04%2F07%2Fcentos-iftop%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CentOS 防火墙打开80，22，3306端口操作</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%2Fwww.pkphp.com%2F2010%2F10%2F25%2F%25E5%259B%25BD%25E5%2586%2585centos5%25E7%2594%25B5%25E4%25BF%25A1%25E6%259B%25B4%25E6%2596%25B0%25E6%25BA%2590%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2011%2F04%2F07%2Fcentos-iftop%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">国内CentOS5电信更新源！</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%2Fwww.pkphp.com%2F2010%2F11%2F18%2F%25E5%259B%25BD%25E5%2586%2585%25E5%2585%258D%25E8%25B4%25B9%25E5%259B%25BE%25E7%2589%2587%25E7%25A9%25BA%25E9%2597%25B4%25EF%25BC%258C%25E4%25B8%258D%25E9%2599%2590%25E5%2588%25B6%25E6%25B5%2581%25E9%2587%258F%25EF%25BC%258C%25E4%25B8%258D%25E9%2599%2590%25E5%2588%25B6%25E5%25A4%2596%25E9%2593%25BE%25EF%25BC%258C%25E9%2580%259F%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2011%2F04%2F07%2Fcentos-iftop%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">国内免费图片空间，不限制流量，不限制外链，速度超快！</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2011/04/07/centos-iftop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</title>
		<link>http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/</link>
		<comments>http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 15:37:46 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=1029</guid>
		<description><![CDATA[svn提示这个错误，在Google搜索了个遍，有的说是引文svn版本太低的原因，有的说是服务器配置问题，我都没有解决了这个问题。后来想了一个办法，建立一个目录，重新检出程序，然后把这个目录下的文件覆盖到那个错误的目录，这时复制时需要复制隐藏文件，使用了下面的命令： cp -r /home/abc/.[^.]* /home/def 然后： svn update 那个错误消失了！ Related items centOS带宽实时流量查看工具 Linux中cp总是提示覆盖文件的解决办法 速度快，操作简单的VPS Tokyo Tyrant使用小结 linux下安装tokyo cabinet和tokyo tyrant客户端 svn 方法REPORT失败于(1)svn error REPORT of !svn/vcc/default(2)svn: REPORT /!svn/(1)!svn/vcc/default(1)<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%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">svn错误：Authentication realm 解决办法</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%2Fwww.pkphp.com%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下svn命令大全</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%2Fwww.pkphp.com%2F2008%2F04%2F23%2Fwordpress%25E5%25BD%2593%25E5%2589%258D%25E6%259C%2580%25E6%2596%25B0%25E7%2589%2588%25E6%259C%25ACsvn%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress当前最新版本SVN服务器</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%2Fwww.pkphp.com%2F2009%2F01%2F24%2Fhow-to-determin-a-ajax-request-using-php%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP如何判断ajax请求</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>svn提示这个错误，在Google搜索了个遍，有的说是引文svn版本太低的原因，有的说是服务器配置问题，我都没有解决了这个问题。后来想了一个办法，建立一个目录，重新检出程序，然后把这个目录下的文件覆盖到那个错误的目录，这时复制时需要复制隐藏文件，使用了下面的命令：</p>
<p><code>cp -r /home/abc/.[^.]* /home/def</code></p>
<p>然后：</p>
<p><code>svn update</code></p>
<p>那个错误消失了！<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/linux-cp-force/'>Linux中cp总是提示覆盖文件的解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/01/speed-simple-vps/'>速度快，操作简单的VPS</a></li>
<li><a href='http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/'>Tokyo Tyrant使用小结</a></li>
<li><a href='http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/'>linux下安装tokyo cabinet和tokyo tyrant客户端</a></li>
</ul>
<a href="http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/" title="svn 方法REPORT失败于" style="font-size: 13px;">svn 方法REPORT失败于</a>(1)<a href="http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/" title="svn error REPORT of !svn/vcc/default" style="font-size: 13px;">svn error REPORT of !svn/vcc/default</a>(2)<a href="http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/" title="svn: REPORT /!svn/" style="font-size: 13px;">svn: REPORT /!svn/</a>(1)<a href="http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/" title="!svn/vcc/default" style="font-size: 13px;">!svn/vcc/default</a>(1)<br /><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%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">svn错误：Authentication realm 解决办法</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%2Fwww.pkphp.com%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下svn命令大全</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%2Fwww.pkphp.com%2F2008%2F04%2F23%2Fwordpress%25E5%25BD%2593%25E5%2589%258D%25E6%259C%2580%25E6%2596%25B0%25E7%2589%2588%25E6%259C%25ACsvn%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress当前最新版本SVN服务器</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%2Fwww.pkphp.com%2F2009%2F01%2F24%2Fhow-to-determin-a-ajax-request-using-php%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP如何判断ajax请求</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2010/01/25/svn-report-svn-vcc-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux中cp总是提示覆盖文件的解决办法</title>
		<link>http://www.pkphp.com/2010/01/25/linux-cp-force/</link>
		<comments>http://www.pkphp.com/2010/01/25/linux-cp-force/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 15:07:35 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=1028</guid>
		<description><![CDATA[把a目录下的文件复制到b目录cp –r a/* b执行上面的命令时，b存在的每个文件都会提示是否覆盖；cp –r –f a/* b执行上面的命令时，b存在的每个文件都不再会提示；这是我们希望的理想状态，但是有时加了-f了，怎么还会有提示呢？原来一些服务器会默认增加别名 alias cp=&#8217;cp -i&#8217;，当你执行cp时，其实执行的是cp –i。在终端执行alias就可以看出来了。[root@devdb ~]# aliasalias cp=&#8217;cp -i&#8217;可以这样解决[root@devdb ~]# vi ~/.bashrc在alias cp=&#8217;cp -i&#8217;前加上&#8221;#&#8221;注释掉这行，：wq！保存退出！ 然后重新登陆就可以了。 Related items centOS带宽实时流量查看工具 svn: REPORT 请求“/!svn/vcc/default”失败 解决办法 速度快，操作简单的VPS Tokyo Tyrant使用小结 linux下安装tokyo cabinet和tokyo tyrant客户端 linux 覆盖文件(1)linux 覆盖文件 ?(1)linux下cp提示是否覆盖(1)cp 覆盖(2)cp 覆盖存在的文件(1)linux cp 覆蓋(1)<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%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Flinux-cp-force%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何重启动网络服务</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%2Fwww.pkphp.com%2F2008%2F07%2F24%2Flinux%25E6%2596%2587%25E4%25BB%25B6%25E7%25B3%25BB%25E7%25BB%259F%25E5%259F%25BA%25E7%25A1%2580%25E7%259F%25A5%25E8%25AF%2586%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Flinux-cp-force%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux文件系统基础知识</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%2Fwww.pkphp.com%2F2008%2F08%2F30%2Flinux%25E4%25B8%258B%25E7%259A%2584%25E8%2584%259A%25E6%259C%25AC%25E6%2596%2587%25E4%25BB%25B6%25E8%25A6%2581%25E6%25B3%25A8%25E6%2584%258F%25E6%258D%25A2%25E8%25A1%258C%25E7%25AC%25A6%25E4%25B8%258Ewindows%25E4%25B8%258D%25E5%2590%258C%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Flinux-cp-force%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下的脚本文件要注意换行符与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%2Fwww.pkphp.com%2F2008%2F06%2F23%2Flinux%25EF%25BC%259A%25E5%25B8%25B8%25E7%2594%25A8%25E5%2591%25BD%25E4%25BB%25A4%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Flinux-cp-force%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux：常用命令</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>把a目录下的文件复制到b目录<br style="line-height: 22px; padding: 0px; margin: 0px;" />cp –r a/* b<br style="line-height: 22px; padding: 0px; margin: 0px;" />执行上面的命令时，b存在的每个文件都会提示是否覆盖；<br style="line-height: 22px; padding: 0px; margin: 0px;" />cp –r –f a/* b<br style="line-height: 22px; padding: 0px; margin: 0px;" />执行上面的命令时，b存在的每个文件都不再会提示；<br style="line-height: 22px; padding: 0px; margin: 0px;" />这是我们希望的理想状态，但是有时加了-f了，怎么还会有提示呢？原来一些服务器会默认增加别名 alias cp=&#8217;cp -i&#8217;，当你执行cp时，其实执行的是cp –i。<br style="line-height: 22px; padding: 0px; margin: 0px;" />在终端执行alias就可以看出来了。<br style="line-height: 22px; padding: 0px; margin: 0px;" />[root@devdb ~]# alias<br style="line-height: 22px; padding: 0px; margin: 0px;" />alias cp=&#8217;cp -i&#8217;<br style="line-height: 22px; padding: 0px; margin: 0px;" />可以这样解决<br style="line-height: 22px; padding: 0px; margin: 0px;" />[root@devdb ~]# vi ~/.bashrc<br style="line-height: 22px; padding: 0px; margin: 0px;" />在alias cp=&#8217;cp -i&#8217;前加上&#8221;#&#8221;注释掉这行，：wq！保存退出！</p>
<p>然后重新登陆就可以了。<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/'>svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/01/speed-simple-vps/'>速度快，操作简单的VPS</a></li>
<li><a href='http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/'>Tokyo Tyrant使用小结</a></li>
<li><a href='http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/'>linux下安装tokyo cabinet和tokyo tyrant客户端</a></li>
</ul>
<a href="http://www.pkphp.com/2010/01/25/linux-cp-force/" title="linux 覆盖文件" style="font-size: 13px;">linux 覆盖文件</a>(1)<a href="http://www.pkphp.com/2010/01/25/linux-cp-force/" title="linux 覆盖文件 ?" style="font-size: 13px;">linux 覆盖文件 ?</a>(1)<a href="http://www.pkphp.com/2010/01/25/linux-cp-force/" title="linux下cp提示是否覆盖" style="font-size: 13px;">linux下cp提示是否覆盖</a>(1)<a href="http://www.pkphp.com/2010/01/25/linux-cp-force/" title="cp 覆盖" style="font-size: 13px;">cp 覆盖</a>(2)<a href="http://www.pkphp.com/2010/01/25/linux-cp-force/" title="cp 覆盖存在的文件" style="font-size: 13px;">cp 覆盖存在的文件</a>(1)<a href="http://www.pkphp.com/2010/01/25/linux-cp-force/" title="linux cp 覆蓋" style="font-size: 13px;">linux cp 覆蓋</a>(1)<br /><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%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Flinux-cp-force%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何重启动网络服务</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%2Fwww.pkphp.com%2F2008%2F07%2F24%2Flinux%25E6%2596%2587%25E4%25BB%25B6%25E7%25B3%25BB%25E7%25BB%259F%25E5%259F%25BA%25E7%25A1%2580%25E7%259F%25A5%25E8%25AF%2586%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Flinux-cp-force%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux文件系统基础知识</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%2Fwww.pkphp.com%2F2008%2F08%2F30%2Flinux%25E4%25B8%258B%25E7%259A%2584%25E8%2584%259A%25E6%259C%25AC%25E6%2596%2587%25E4%25BB%25B6%25E8%25A6%2581%25E6%25B3%25A8%25E6%2584%258F%25E6%258D%25A2%25E8%25A1%258C%25E7%25AC%25A6%25E4%25B8%258Ewindows%25E4%25B8%258D%25E5%2590%258C%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Flinux-cp-force%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下的脚本文件要注意换行符与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%2Fwww.pkphp.com%2F2008%2F06%2F23%2Flinux%25EF%25BC%259A%25E5%25B8%25B8%25E7%2594%25A8%25E5%2591%25BD%25E4%25BB%25A4%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F25%2Flinux-cp-force%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux：常用命令</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2010/01/25/linux-cp-force/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>速度快，操作简单的VPS</title>
		<link>http://www.pkphp.com/2010/01/01/speed-simple-vps/</link>
		<comments>http://www.pkphp.com/2010/01/01/speed-simple-vps/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 16:19:56 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=1021</guid>
		<description><![CDATA[今天购买了一个VPS, 是https://www.linode.com的，这家是老牌的VPS供应商，机房速度快，特别是到中国可以有5个机房供你选择，同时，你可以任何时候在这几个机房进行转移，方便简单。下面是我安装使用的记录，开通帐号后，会提示按照步骤进行操作安装系统： 1. 我选择安装CentOS 64是因为特殊需要，采用LNMP，LNMP是一个基于CentOS编写的Nginx、PHP、MySQL、phpMyAdmin、eAcelerator一键安装包。使用起来非常方便。 2.安装完成CentOS后，需要下载东西，发现没有wget命令，于是使用命令在线安装：yum install -y wget 3.下载LNMP组件，命令： wget http://soft.vpser.net/lnmp/lnmp0.3.tar.gz tar xzvf lnmp0.3.tar.gz cd lnmp0.3 ./centos.sh 等待组件安装完成会提示：安装目录列表 LNMP组件安装的各个目录如下： mysql dir:   /usr/local/mysql php dir:     /usr/local/php nginx dir:   /usr/local/nginx web dir      /home/wwwroot 4. 安装tokyo cabinet步骤如下： wget http://1978th.net/tokyocabinet/tokyocabinet-1.4.41.tar.gz tar xzvf tokyocabinet-1.4.41.tar.gz cd tokyocabinet-1.4.41 ./configure make make install cd .. 以上是标准步骤，由于我选的CentOS可能是精简版，缺少bzlib，需要安装：yum bzlib，完成后再执行第4步 5.安装tokyotyrant步骤： wget http://1978th.net/tokyotyrant/tokyotyrant-1.1.39.tar.gz tar xzvf tokyotyrant-1.1.39.tar.gz [...]<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%2Fwww.pkphp.com%2F2010%2F01%2F01%2Flinux-vps-linode-com%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F01%2Fspeed-simple-vps%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">便宜、方便、速度快的国外linux vps主机商Linode.com介绍</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%2Fwww.pkphp.com%2F2008%2F03%2F20%2F%25E5%2585%25B3%25E4%25BA%258E%25E5%25A6%2582%25E4%25BD%2595%25E9%2599%258D%25E4%25BD%258E%25E7%25BD%2591%25E7%25BB%259C%25E7%2588%25AC%25E8%2599%25AB%25E9%2580%259F%25E5%25BA%25A6%25E7%259A%2584%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F01%2Fspeed-simple-vps%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%2Fwww.pkphp.com%2F2010%2F11%2F18%2F%25E5%259B%25BD%25E5%2586%2585%25E5%2585%258D%25E8%25B4%25B9%25E5%259B%25BE%25E7%2589%2587%25E7%25A9%25BA%25E9%2597%25B4%25EF%25BC%258C%25E4%25B8%258D%25E9%2599%2590%25E5%2588%25B6%25E6%25B5%2581%25E9%2587%258F%25EF%25BC%258C%25E4%25B8%258D%25E9%2599%2590%25E5%2588%25B6%25E5%25A4%2596%25E9%2593%25BE%25EF%25BC%258C%25E9%2580%259F%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F01%2Fspeed-simple-vps%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%2Fwww.pkphp.com%2F2009%2F01%2F02%2F%25E5%25A6%2582%25E4%25BD%2595%25E5%2588%25A9%25E7%2594%25A8%25E6%25B7%2598%25E5%25AE%25A2%25E7%25BD%2591%25E8%25B5%259A%25E9%2592%25B1%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F01%2Fspeed-simple-vps%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何利用淘客网赚钱？</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>今天购买了一个<a href="http://www.linode.com/?r=0518c246bbbb0f8e694af84064426f13c6367c62" target="_blank" rel="nofollow">VPS</a>, 是<a href="http://www.linode.com/?r=0518c246bbbb0f8e694af84064426f13c6367c62" rel="nofollow">https://www.linode.com</a>的，这家是老牌的<a href="http://www.linode.com/?r=0518c246bbbb0f8e694af84064426f13c6367c62" target="_blank" rel="nofollow">VPS</a>供应商，机房速度快，特别是到中国可以有5个机房供你选择，同时，你可以任何时候在这几个机房进行转移，方便简单。下面是我安装使用的记录，开通帐号后，会提示按照步骤进行操作安装系统：</p>
<p>1. 我选择安装CentOS 64是因为特殊需要，采用LNMP，LNMP是一个基于CentOS编写的Nginx、PHP、MySQL、phpMyAdmin、eAcelerator一键安装包。使用起来非常方便。</p>
<p>2.安装完成CentOS后，需要下载东西，发现没有wget命令，于是使用命令在线安装：yum install -y wget</p>
<p>3.下载LNMP组件，命令：</p>
<ol>
<li>wget http://soft.vpser.net/lnmp/lnmp0.3.tar.gz</li>
<li>tar xzvf lnmp0.3.tar.gz</li>
<li>cd lnmp0.3</li>
<li>./centos.sh</li>
<li>等待组件安装完成会提示：安装目录列表</li>
</ol>
<p>LNMP组件安装的各个目录如下：</p>
<ul>
<li>mysql dir:   /usr/local/mysql</li>
<li>php dir:     /usr/local/php</li>
<li>nginx dir:   /usr/local/nginx</li>
<li>web dir      /home/wwwroot</li>
</ul>
<p>4. 安装tokyo cabinet步骤如下：</p>
<ol>
<li>wget http://1978th.net/tokyocabinet/tokyocabinet-1.4.41.tar.gz</li>
<li>tar xzvf tokyocabinet-1.4.41.tar.gz</li>
<li>cd tokyocabinet-1.4.41</li>
<li>./configure</li>
<li>make</li>
<li>make install</li>
<li>cd ..</li>
<li>以上是标准步骤，由于我选的CentOS可能是精简版，缺少bzlib，需要安装：yum bzlib，完成后再执行第4步</li>
</ol>
<p>5.安装tokyotyrant步骤：</p>
<ol>
<li>wget http://1978th.net/tokyotyrant/tokyotyrant-1.1.39.tar.gz</li>
<li>tar xzvf tokyotyrant-1.1.39.tar.gz</li>
<li>cd tokyotyrant-1.1.39</li>
<li>./configure</li>
<li>make</li>
<li>make install</li>
</ol>
<p>6.安装64位分词系统：</p>
<ol>
<li> cd /usr/local/</li>
<li> wget http://httpcws.googlecode.com/files/httpcws-1.0.0-x86_64-bin.tar.gz</li>
<li> tar zxvf httpcws-1.0.0-x86_64-bin.tar.gz</li>
<li> rm -f httpcws-1.0.0-x86_64-bin.tar.gz</li>
<li> cd httpcws-1.0.0-x86_64-bin/</li>
<li> ulimit -SHn 65535</li>
<li> /usr/local/httpcws-1.0.0-x86_64-bin/httpcws -d -x /usr/local/httpcws-1.0.0-x86_64-bin/dict/</li>
</ol>
<p>7. 安装mysql_pdo:直接修改LNMP下载的文件centos.sh，找到php安装命令，在下载的php目录中执行：</p>
<ol>
<li>./configure &#8211;prefix=/usr/local/php &#8211;with-config-file-path=/usr/local/php/etc <strong>&#8211;with-mysql=/usr/local/mysql &#8211;with-pdo-mysql=/usr/local/mysql -with-pdo=shared</strong> &#8211;with-mysqli=/usr/local/mysql/bin/mysql_config &#8211;with-iconv-dir=/usr/local &#8211;with-freetype-dir &#8211;with-jpeg-dir &#8211;with-png-dir &#8211;with-zlib &#8211;with-libxml-dir=/usr &#8211;enable-xml &#8211;disable-rpath &#8211;enable-discard-path &#8211;enable-safe-mode &#8211;enable-bcmath &#8211;enable-shmop &#8211;enable-sysvsem &#8211;enable-inline-optimization &#8211;with-curl &#8211;with-curlwrappers &#8211;enable-mbregex &#8211;enable-fastcgi &#8211;enable-fpm &#8211;enable-force-cgi-redirect &#8211;enable-mbstring &#8211;with-mcrypt &#8211;with-gd &#8211;enable-gd-native-ttf &#8211;with-openssl &#8211;with-mhash &#8211;enable-pcntl &#8211;enable-sockets &#8211;with-xmlrpc &#8211;enable-zip &#8211;enable-ftp &#8211;without-pear &#8211;with-mime-magic=/usr/share/file/magic.mime</li>
<li>make ZEND_EXTRA_LIBS=&#8217;-liconv&#8217;</li>
<li>make install</li>
<li>重新启动Nginx ：kill -HUP `cat /usr/local/nginx/logs/nginx.pid`</li>
</ol>
<p>8.安装memcached：</p>
<ol>
<li>tar zxvf libevent-1.3.tar.gz</li>
<li>cd libevent-1.3</li>
<li>./configure &#8211;prefix=/usr</li>
<li>make</li>
<li>make install</li>
<li>64为系统：ln -s /usr/lib/libevent-1.4.so.2 /usr/lib64/libevent-1.4.so.2cd ../
<ol>
<li>tar zxvf memcached-1.2.8.tar.gz</li>
<li>cd memcached-1.2.8</li>
<li>./configure &#8211;with-libevent=/usr</li>
<li>make</li>
<li>make install</li>
</ol>
</li>
<li>安装memcached的php扩展：</li>
</ol>
<ol>
<li>wget http://pecl.php.net/get/memcache-2.2.5.tgz</li>
<li>tar xzvf memcache-2.2.5.tgz</li>
<li>cd memcache-2.2.5</li>
<li>./configure &#8211;enable-memcache  &#8211;with-php-config=/usr/local/php/bin/php-config</li>
<li>make</li>
<li>make install</li>
<li>提示：Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/</li>
<li>打开php.ini设置：extension_dir = &#8220;/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613&#8243; 和extension=memcache.so</li>
<li>重启动nginx  :   kill -HUP `cat /usr/local/nginx/logs/nginx.pid`</li>
<li>查看phpinfo是否存在memcache，如果有，则memcache与php链接成功</li>
</ol>
<p>9.安装subversion：yum install subversion<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/'>svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/linux-cp-force/'>Linux中cp总是提示覆盖文件的解决办法</a></li>
<li><a href='http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/'>Tokyo Tyrant使用小结</a></li>
<li><a href='http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/'>linux下安装tokyo cabinet和tokyo tyrant客户端</a></li>
</ul>
<a href="http://www.pkphp.com/2010/01/01/speed-simple-vps/" title="make ZEND_EXTRA_LIBS='-liconv" style="font-size: 13px;">make ZEND_EXTRA_LIBS='-liconv</a>(2)<a href="http://www.pkphp.com/2010/01/01/speed-simple-vps/" title="安装 memcached pkphp" style="font-size: 13px;">安装 memcached pkphp</a>(1)<a href="http://www.pkphp.com/2010/01/01/speed-simple-vps/" title="centos 64位 php nginx mysql" style="font-size: 13px;">centos 64位 php nginx mysql</a>(1)<a href="http://www.pkphp.com/2010/01/01/speed-simple-vps/" title="bzlib yum install" style="font-size: 13px;">bzlib yum install</a>(1)<br /><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%2Fwww.pkphp.com%2F2010%2F01%2F01%2Flinux-vps-linode-com%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F01%2Fspeed-simple-vps%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">便宜、方便、速度快的国外linux vps主机商Linode.com介绍</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%2Fwww.pkphp.com%2F2008%2F03%2F20%2F%25E5%2585%25B3%25E4%25BA%258E%25E5%25A6%2582%25E4%25BD%2595%25E9%2599%258D%25E4%25BD%258E%25E7%25BD%2591%25E7%25BB%259C%25E7%2588%25AC%25E8%2599%25AB%25E9%2580%259F%25E5%25BA%25A6%25E7%259A%2584%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F01%2Fspeed-simple-vps%2F" rel="nofollow">
                        <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%2Fwww.pkphp.com%2F2010%2F11%2F18%2F%25E5%259B%25BD%25E5%2586%2585%25E5%2585%258D%25E8%25B4%25B9%25E5%259B%25BE%25E7%2589%2587%25E7%25A9%25BA%25E9%2597%25B4%25EF%25BC%258C%25E4%25B8%258D%25E9%2599%2590%25E5%2588%25B6%25E6%25B5%2581%25E9%2587%258F%25EF%25BC%258C%25E4%25B8%258D%25E9%2599%2590%25E5%2588%25B6%25E5%25A4%2596%25E9%2593%25BE%25EF%25BC%258C%25E9%2580%259F%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F01%2Fspeed-simple-vps%2F" rel="nofollow">
                        <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%2Fwww.pkphp.com%2F2008%2F07%2F15%2Fwordpress-26-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2010%2F01%2F01%2Fspeed-simple-vps%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPressV2.6发布！</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2010/01/01/speed-simple-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tokyo Tyrant使用小结</title>
		<link>http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/</link>
		<comments>http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 12:28:23 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=903</guid>
		<description><![CDATA[Tokyo Tyrant安装上了之后如何使用，官方说明见：http://tokyocabinet.sourceforge.net/tyrantdoc/ 下面是我的操作过程： 启动Tokyo Tyrant使用命令： ttservctl start 使用命令查看当前进程： ps -ef &#124; grep ttserver 结果如下，说明在1978端口启动ttserver成功，数据库文件存储在/var/ttserver/casket.tch： root 10923 1 0 20:09 ? 00:00:00 ttserver -port 1978 -dmn -pid /var/ttserver/pid -log /var/ttserver/log -ulog /var/ttserver/ulog -ulim 256m -sid 1 /var/ttserver/casket.tch#bnum=1000000 由于服务器上已经安装了memcache，因此直接利用php的memcache来进行Tokyo Tyrant操作测试： 输出结果： 1 2 说明已经向数据库中加入了key=askie，value=1的数据。OK! 至此在php利用memcache客户端操作Tokyo Tyrant成功了！ Memcache操作函数： Memcache::add — 添加一个值，如果已经存在，则返回false Memcache::addServer — 添加一个可供使用的服务器地址 Memcache::close — 关闭一个Memcache对象 Memcache::connect [...]<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="linux下安装tokyo cabinet和tokyo tyrant客户端" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%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下安装tokyo cabinet和tokyo tyrant客户端</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%2Fwww.pkphp.com%2F2009%2F12%2F23%2Ffree-related-items-tool-for-taobao-shop-owner%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%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/06/08/11357983.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;">免费给你的淘宝商品添加“相关商品橱窗”</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%2Fwww.pkphp.com%2F2009%2F01%2F02%2F%25E5%25A6%2582%25E4%25BD%2595%25E5%2588%25A9%25E7%2594%25A8%25E6%25B7%2598%25E5%25AE%25A2%25E7%25BD%2591%25E8%25B5%259A%25E9%2592%25B1%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%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/06/08/11370447.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;">如何利用淘客网赚钱？</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="WordPressV2.6发布！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F15%2Fwordpress-26-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%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/06/08/11362834.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;">WordPressV2.6发布！</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>Tokyo Tyrant安装上了之后如何使用，官方说明见：<a href="http://tokyocabinet.sourceforge.net/tyrantdoc/" target="_blank" rel="nofollow">http://tokyocabinet.sourceforge.net/tyrantdoc/</a></p>
<p>下面是我的操作过程：<br />
启动Tokyo Tyrant使用命令：<br />
<code>ttservctl start</code><br />
使用命令查看当前进程：<br />
<code>ps -ef | grep ttserver</code><br />
结果如下，说明在1978端口启动ttserver成功，数据库文件存储在/var/ttserver/casket.tch：<br />
<code>root     10923     1  0 20:09 ?        00:00:00 ttserver -port 1978 -dmn -pid /var/ttserver/pid -log /var/ttserver/log -ulog /var/ttserver/ulog -ulim 256m -sid 1 /var/ttserver/casket.tch#bnum=1000000</code></p>
<p>由于服务器上已经安装了memcache，因此直接利用php的memcache来进行Tokyo Tyrant操作测试：<br />
<code><?php<br />
$memcache = new Memcache;<br />
$memcache->connect('localhost', 1978) or die ("Could not connect");<br />
$add = $memcache->set("askie","2");<br />
echo $add."\n";<br />
$add = $memcache->get("askie");<br />
echo $add."\n";<br />
?> </code><br />
输出结果：<br />
<code>1<br />
2</code><br />
说明已经向数据库中加入了key=askie，value=1的数据。OK! 至此在php利用memcache客户端操作Tokyo Tyrant成功了！</p>
<p>Memcache操作函数：<br />
<code>Memcache::add — 添加一个值，如果已经存在，则返回false<br />
Memcache::addServer — 添加一个可供使用的服务器地址<br />
Memcache::close — 关闭一个Memcache对象<br />
Memcache::connect — 创建一个Memcache对象<br />
memcache_debug — 控制调试功能<br />
Memcache::decrement — 对保存的某个key中的值进行减法操作<br />
Memcache::delete — 删除一个key值<br />
Memcache::flush — 清除所有缓存的数据<br />
Memcache::get — 获取一个key值<br />
Memcache::getExtendedStats — 获取进程池中所有进程的运行系统统计<br />
Memcache::getServerStatus — 获取运行服务器的参数<br />
Memcache::getStats — 返回服务器的一些运行统计信息<br />
Memcache::getVersion — 返回运行的Memcache的版本信息<br />
Memcache::increment — 对保存的某个key中的值进行加法操作<br />
Memcache::pconnect — 创建一个Memcache的持久连接对象<br />
Memcache::replace — R对一个已有的key进行覆写操作<br />
Memcache::set — 添加一个值，如果已经存在，则覆写<br />
Memcache::setCompressThreshold — 对大于某一大小的数据进行压缩<br />
Memcache::setServerParams — 在运行时修改服务器的参数</code><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/'>svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/linux-cp-force/'>Linux中cp总是提示覆盖文件的解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/01/speed-simple-vps/'>速度快，操作简单的VPS</a></li>
<li><a href='http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/'>linux下安装tokyo cabinet和tokyo tyrant客户端</a></li>
</ul>
<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(2)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="memcache" style="font-size: 13px;">memcache</a>(2)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="Memcache Tokyo Tyrant" style="font-size: 13px;">Memcache Tokyo Tyrant</a>(3)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="ttserver 操作" style="font-size: 13px;">ttserver 操作</a>(1)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="Tokyo Tyrant windows" style="font-size: 13px;">Tokyo Tyrant windows</a>(4)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="Tokyo Tyrant" style="font-size: 13px;">Tokyo Tyrant</a>(218)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="tokyo tyrant php" style="font-size: 13px;">tokyo tyrant php</a>(51)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="memcached tokyotyrant" style="font-size: 13px;">memcached tokyotyrant</a>(3)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="如何关闭tokyo服务 linux" style="font-size: 13px;">如何关闭tokyo服务 linux</a>(1)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="tokyo tyrent" style="font-size: 13px;">tokyo tyrent</a>(1)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="tokyotyrant authentication" style="font-size: 13px;">tokyotyrant authentication</a>(2)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="windows下使用Tokyo Tyrant" style="font-size: 13px;">windows下使用Tokyo Tyrant</a>(1)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="memcache tokyo" style="font-size: 13px;">memcache tokyo</a>(5)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="Tokyo Tyrant client api" style="font-size: 13px;">Tokyo Tyrant client api</a>(1)<a href="http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/" title="Tokyo Tyrant使用" style="font-size: 13px;">Tokyo Tyrant使用</a>(4)<br /><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="linux下安装tokyo cabinet和tokyo tyrant客户端" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%2F" rel="nofollow">
                        <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下安装tokyo cabinet和tokyo tyrant客户端</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="php中让Google Chart API如何显示中文" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2009%2F01%2F02%2Fgoogle-chart-api-show-chinese%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%2F" rel="nofollow">
                        <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/06/08/11369060.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;">php中让Google Chart API如何显示中文</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="10个用能用JavaScript实现的图片特效" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F05%2F03%2F10%25E4%25B8%25AA%25E7%2594%25A8%25E8%2583%25BD%25E7%2594%25A8javascript%25E5%25AE%259E%25E7%258E%25B0%25E7%259A%2584%25E5%259B%25BE%25E7%2589%2587%25E7%2589%25B9%25E6%2595%2588%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%2F" rel="nofollow">
                        <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/06/30/15137944.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;">10个用能用JavaScript实现的图片特效</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="WordPressV2.6发布！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F15%2Fwordpress-26-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%2F" rel="nofollow">
                        <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/06/08/11362834.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;">WordPressV2.6发布！</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2009/03/08/tokyo-tyrant-using/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux下安装tokyo cabinet和tokyo tyrant客户端</title>
		<link>http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/</link>
		<comments>http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 10:38:08 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=901</guid>
		<description><![CDATA[关于tokyo cabinet和tokyo tyrant是什么请google之。下面是如何安装tokyo cabinet和tokyo tyrant的步骤，请注意如果你安装的版本有区别，请根据版本修改相应的安装命令： 1、首先编译安装tokyocabinet数据库 wget http://tokyocabinet.sourceforge.net/tokyocabinet-1.3.22.tar.gz tar zxvf tokyocabinet-1.3.22.tar.gz cd tokyocabinet-1.3.22/ ./configure make make install cd ../ 2、然后编译安装tokyotyrant wget http://tokyocabinet.sourceforge.net/t &#8230; /tokyotyrant-1.1.8.tar.gz tar zxvf tokyotyrant-1.1.8.tar.gz cd tokyotyrant-1.1.8/ ./configure make make install cd ../ 二、配置 1、创建tokyotyrant数据文件存放目录 mkdir -p /ttserver/ 2、启动tokyotyrant的主进程（ttserver） (1)、单机模式 ulimit -SHn 51200 ttserver -host 127.0.0.1 -port 11211 -thnum 8 -dmn -pid /ttserver/ttserver.pid [...]<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%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Tokyo Tyrant使用小结</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%2Fwww.pkphp.com%2F2008%2F09%2F02%2Flinux-install-uninstall-software%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何安装、卸载软件</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%2Fwww.pkphp.com%2F2008%2F06%2F23%2Flinux%25EF%25BC%259A%25E5%25B8%25B8%25E7%2594%25A8%25E5%2591%25BD%25E4%25BB%25A4%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux：常用命令</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%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何重启动网络服务</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>关于tokyo cabinet和tokyo tyrant是什么请google之。下面是如何安装tokyo cabinet和tokyo tyrant的步骤，请注意如果你安装的版本有区别，请根据版本修改相应的安装命令：</p>
<p>1、首先编译安装tokyocabinet数据库</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">wget <a title="http://tokyocabinet.sourceforge.net/tokyocabinet-1.3.22.tar.gz" href="http://tokyocabinet.sourceforge.net/tokyocabinet-1.3.22.tar.gz" target="_blank" rel="nofollow">http://tokyocabinet.sourceforge.net/tokyocabinet-1.3.22.tar.gz</a></p>
<p>tar zxvf tokyocabinet-1.3.22.tar.gz</p>
<p>cd tokyocabinet-1.3.22/</p>
<p>./configure</p>
<p>make</p>
<p>make install</p>
<p>cd ../</p></div>
<p>2、然后编译安装tokyotyrant</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">wget <a title="http://tokyocabinet.sourceforge.net/tyrantpkg/tokyotyrant-1.1.8.tar.gz" href="http://tokyocabinet.sourceforge.net/tyrantpkg/tokyotyrant-1.1.8.tar.gz" target="_blank" rel="nofollow">http://tokyocabinet.sourceforge.net/t &#8230; /tokyotyrant-1.1.8.tar.gz</a></p>
<p>tar zxvf tokyotyrant-1.1.8.tar.gz</p>
<p>cd tokyotyrant-1.1.8/</p>
<p>./configure</p>
<p>make</p>
<p>make install</p>
<p>cd ../</p></div>
<hr /><strong>二、配置</strong></p>
<p><strong>1、创建tokyotyrant数据文件存放目录</strong></p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">mkdir -p /ttserver/</div>
<p><strong>2、启动tokyotyrant的主进程（ttserver）</strong></p>
<p><strong>(1)、单机模式</strong></p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">ulimit -SHn 51200</p>
<p>ttserver -host 127.0.0.1 -port 11211 -thnum 8 -dmn -pid /ttserver/ttserver.pid -log /ttserver/ttserver.log -le -ulog /ttserver/ -ulim 128m -sid 1 -rts /ttserver/ttserver.rts /ttserver/database.tch</p></div>
<p><strong>(2)、双机互为主辅模式</strong></p>
<p>服务器192.168.1.91：</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">ulimit -SHn 51200</p>
<p>ttserver -host 192.168.1.91 -port 11211 -thnum 8 -dmn -pid /ttserver/ttserver.pid -log /ttserver/ttserver.log -le -ulog /ttserver/ -ulim 128m -sid 91 -mhost 192.168.1.92 -mport 11211 -rts /ttserver/ttserver.rts /ttserver/database.tch</p></div>
<p>服务器192.168.1.92：</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">ulimit -SHn 51200</p>
<p>ttserver -host 192.168.1.92 -port 11211 -thnum 8 -dmn -pid /ttserver/ttserver.pid -log /ttserver/ttserver.log -le -ulog /ttserver/ -ulim 128m -sid 92 -mhost 192.168.1.91 -mport 11211 -rts /ttserver/ttserver.rts /ttserver/database.tch</p></div>
<p><strong>(3)、参数说明</strong></p>
<p>ttserver [-host name] [-port num] [-thnum num] [-tout num] [-dmn] [-pid path] [-log path] [-ld|-le] [-ulog path] [-ulim num] [-uas] [-sid num] [-mhost name] [-mport num] [-rts path] [dbname]</p>
<p>-host name : 指定需要绑定的服务器域名或IP地址。默认绑定这台服务器上的所有IP地址。</p>
<p>-port num : 指定需要绑定的端口号。默认端口号为1978</p>
<p>-thnum num : 指定线程数。默认为8个线程。</p>
<p>-tout num : 指定每个会话的超时时间（单位为秒）。默认永不超时。</p>
<p>-dmn : 以守护进程方式运行。</p>
<p>-pid path : 输出进程ID到指定文件（这里指定文件名）。</p>
<p>-log path : 输出日志信息到指定文件（这里指定文件名）。</p>
<p>-ld : 在日志文件中还记录DEBUG调试信息。</p>
<p>-le : 在日志文件中仅记录错误信息。</p>
<p>-ulog path : 指定同步日志文件存放路径（这里指定目录名）。</p>
<p>-ulim num : 指定每个同步日志文件的大小（例如128m）。</p>
<p>-uas : 使用异步IO记录更新日志（使用此项会减少磁盘IO消耗，但是数据会先放在内存中，不会立即写入磁盘，如果重启服务器或ttserver进程被kill掉，将导致部分数据丢失。一般情况下不建议使用）。</p>
<p>-sid num : 指定服务器ID号（当使用主辅模式时，每台ttserver需要不同的ID号）</p>
<p>-mhost name : 指定主辅同步模式下，主服务器的域名或IP地址。</p>
<p>-mport num : 指定主辅同步模式下，主服务器的端口号。</p>
<p>-rts path : 指定用来存放同步时间戳的文件名。</p>
<p>如果使用的是哈希数据库，可以指定参数“#bnum=xxx”来提高性能。它可以指定bucket存储桶的数量。例如指定“#bnum=1000000”，就可以将最新最热的100万条记录缓存在内存中：</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">ttserver -host 127.0.0.1 -port 11211 -thnum 8 -dmn -pid /ttserver/ttserver.pid -log /ttserver/ttserver.log -le -ulog /ttserver/ -ulim 128m -sid 1 -rts /ttserver/ttserver.rts /ttserver/database.tch#bnum=1000000</div>
<p>如果大量的客户端访问ttserver，请确保文件描述符够用。许多服务器的默认文件描述符为1024，可以在启动ttserver前使用ulimit命令提高这项值。例如：</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">ulimit -SHn 51200</div>
<p><strong>3、停止tokyotyrant（ttserver）</strong></p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">ps -ef | grep ttserver</div>
<p>找到ttserver的进程号并kill，例如：</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">kill -TERM 2159</div>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/'>svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/linux-cp-force/'>Linux中cp总是提示覆盖文件的解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/01/speed-simple-vps/'>速度快，操作简单的VPS</a></li>
<li><a href='http://www.pkphp.com/2009/03/08/tokyo-tyrant-using/'>Tokyo Tyrant使用小结</a></li>
</ul>
<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(1)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="Tokyo Tyrant（TTServer）" style="font-size: 13px;">Tokyo Tyrant（TTServer）</a>(1)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="Tokyo Cabinet" style="font-size: 13px;">Tokyo Cabinet</a>(245)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="ttserver" style="font-size: 13px;">ttserver</a>(3)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="Tokyo Tyrant" style="font-size: 13px;">Tokyo Tyrant</a>(3)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="tokyo tyrant php" style="font-size: 13px;">tokyo tyrant php</a>(2)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="Tokyo Cabinet php" style="font-size: 13px;">Tokyo Cabinet php</a>(33)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="Tokyo Cabinet 安装" style="font-size: 13px;">Tokyo Cabinet 安装</a>(14)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="tokyo tyrant cabinet" style="font-size: 13px;">tokyo tyrant cabinet</a>(2)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="cabinet tokyo" style="font-size: 13px;">cabinet tokyo</a>(1)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="tokyotyrant" style="font-size: 13px;">tokyotyrant</a>(3)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="linux 下 php数据库 超时" style="font-size: 13px;">linux 下 php数据库 超时</a>(1)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="tokyotyrant php" style="font-size: 13px;">tokyotyrant php</a>(3)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="ubuntu Tokyo Tyrant（TTServer）" style="font-size: 13px;">ubuntu Tokyo Tyrant（TTServer）</a>(2)<a href="http://www.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/" title="TOKYO" style="font-size: 13px;">TOKYO</a>(1)<br /><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%2Fwww.pkphp.com%2F2009%2F03%2F08%2Ftokyo-tyrant-using%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Tokyo Tyrant使用小结</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%2Fwww.pkphp.com%2F2008%2F09%2F02%2Flinux-install-uninstall-software%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何安装、卸载软件</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%2Fwww.pkphp.com%2F2008%2F06%2F23%2Flinux%25EF%25BC%259A%25E5%25B8%25B8%25E7%2594%25A8%25E5%2591%25BD%25E4%25BB%25A4%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux：常用命令</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%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F03%2F08%2Flinux-install-tokyo-cabinet-and-tokyo-tyrant%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何重启动网络服务</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2009/03/08/linux-install-tokyo-cabinet-and-tokyo-tyrant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[转]开源PHP中文分词扩展:PHPCWS 1.0.0发布啦</title>
		<link>http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/</link>
		<comments>http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 13:57:39 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[分词]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=897</guid>
		<description><![CDATA[非常佩服这位兄弟开发的开源php分词系统，现在终于发布1.0.0版本了。本版本的功能有了很大的加强，同时也简化了使用，仅一个php函数。现在转帖全部内容，对张宴表示强烈的支持!！ [文章/程序 作者：张宴 本文版本：v1.0 最后修改：2009.02.16 原文链接：http://blog.s135.com/post/398.htm] 名称：PHPCWS（PHP中文分词扩展） 协议：New BSD License 作者：张宴 网址：http://code.google.com/p/phpcws/ SVN：http://code.google.com/p/phpcws/source/browse/#svn/trunk/phpcws 一、PHPCWS 简介 1、什么是 PHPCWS ？ PHPCWS 是一款开源的PHP中文分词扩展，目前仅支持Linux/Unix系统。 PHPCWS 先使用“ICTCLAS 3.0 共享版中文分词算法”的API进行初次分词处理，再使用自行编写的“逆向最大匹配算法”对分词和进行词语合并处理，并增加标点符号过滤功能，得出分词结果。 ICTCLAS（Institute of Computing Technology, Chinese Lexical Analysis System）是中国科学院计算技术研究所在多年研究工作积累的基础上，基于多层隐马模型研制出的汉语词法分析系统，主要功能包括中文分词；词性标注；命 名实体识别；新词识别；同时支持用户词典。ICTCLAS经过五年精心打造，内核升级6次，目前已经升级到了ICTCLAS3.0，分词精度 98.45%，各种词典数据压缩后不到3M。ICTCLAS在国内973专家组组织的评测中活动获得了第一名，在第一届国际中文处理研究机构SigHan 组织的评测中都获得了多项第一名，是当前世界上最好的汉语词法分析器。 ICTCLAS 3.0 商业版是收费的，而免费提供的 ICTCLAS 3.0 共享版不开源，词库是根据人民日报一个月的语料得出的，很多词语不存在。所以本人对ICTCLAS分词后的结果，再采用逆向最大匹配算法，根据自己补充的 一个9万条词语的自定义词库（与ICTCLAS词库中的词语不重复），对ICTCLAS分词结果进行合并处理，输出最终分词结果。 由于 ICTCLAS 3.0 共享版只支持GBK编码，因此，如果是UTF-8编码的字符串，可以先用PHP的iconv函数转换成GBK编码，再用phpcws_split函数进行分词处理，最后转换回UTF-8编码。 2、PHPCWS 中文分词在线演示 演示网址：http://blog.s135.com/demo/phpcws/ 3、PHPCWS 分词速度及用途 初次使用时，Apache 或 php-cgi(FastCGI) 进程，需要加载一次词库到内存中，需要0.0X秒。58字节的一句话——“2009年2月13日，我编写了一款PHP中文分词扩展：PHPCWS [...]<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%2Fwww.pkphp.com%2F2008%2F07%2F25%2Fphp%25E6%259F%25A5%25E8%25AF%25A2alexa%25E6%258E%2592%25E5%2590%258D%25E7%259A%2584%25E4%25BB%25A3%25E7%25A0%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F17%2F%25E8%25BD%25AC%25E5%25BC%2580%25E6%25BA%2590php%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E6%2589%25A9%25E5%25B1%2595phpcws-100%25E5%258F%2591%25E5%25B8%2583%25E5%2595%25A6%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php查询alexa排名的代码</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%2Fwww.pkphp.com%2F2009%2F01%2F21%2Fphp-dom-phpqurey%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F17%2F%25E8%25BD%25AC%25E5%25BC%2580%25E6%25BA%2590php%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E6%2589%25A9%25E5%25B1%2595phpcws-100%25E5%258F%2591%25E5%25B8%2583%25E5%2595%25A6%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php如何解析网页DOM？phpQurey给你搞定一切！</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%2Fwww.pkphp.com%2F2008%2F09%2F17%2Fphp-generic-xml-parser%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F17%2F%25E8%25BD%25AC%25E5%25BC%2580%25E6%25BA%2590php%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E6%2589%25A9%25E5%25B1%2595phpcws-100%25E5%258F%2591%25E5%25B8%2583%25E5%2595%25A6%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php通用xml解析类</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%2Fwww.pkphp.com%2F2008%2F06%2F12%2Fscws%25E7%25AE%2580%25E6%2598%2593%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E7%25B3%25BB%25E7%25BB%259F%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F17%2F%25E8%25BD%25AC%25E5%25BC%2580%25E6%25BA%2590php%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E6%2589%25A9%25E5%25B1%2595phpcws-100%25E5%258F%2591%25E5%25B8%2583%25E5%2595%25A6%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">SCWS简易中文分词系统</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>非常佩服这位兄弟开发的开源php分词系统，现在终于发布1.0.0版本了。本版本的功能有了很大的加强，同时也简化了使用，仅一个php函数。现在转帖全部内容，对<strong>张宴</strong>表示强烈的支持!！</p>
<p>[文章/程序 作者：张宴 本文版本：v1.0 最后修改：2009.02.16 原文链接：<a href="http://blog.s135.com/post/398.htm" target="_blank" rel="nofollow">http://blog.s135.com/post/398.htm</a>]</p>
<p>名称：PHPCWS（PHP中文分词扩展）<br />
协议：New BSD License<br />
作者：张宴<br />
网址：<a href="http://code.google.com/p/phpcws/" target="_blank" rel="nofollow">http://code.google.com/p/phpcws/</a><br />
SVN：<a href="http://code.google.com/p/phpcws/source/browse/#svn/trunk/phpcws" target="_blank" rel="nofollow">http://code.google.com/p/phpcws/source/browse/#svn/trunk/phpcws</a></p>
<p><span style="font-size: 14px;"><strong>一、PHPCWS 简介</strong></span></p>
<p><strong>1、什么是 PHPCWS ？</strong><br />
PHPCWS 是一款开源的PHP中文分词扩展，目前仅支持Linux/Unix系统。</p>
<p>PHPCWS 先使用“ICTCLAS 3.0 共享版中文分词算法”的API进行初次分词处理，再使用自行编写的“逆向最大匹配算法”对分词和进行词语合并处理，并增加标点符号过滤功能，得出分词结果。</p>
<p><a href="http://ictclas.org/sub_1_2.html" target="_blank" rel="nofollow">ICTCLAS</a>（Institute of Computing Technology, Chinese Lexical Analysis System）是中国科学院计算技术研究所在多年研究工作积累的基础上，基于多层隐马模型研制出的汉语词法分析系统，主要功能包括中文分词；词性标注；命 名实体识别；新词识别；同时支持用户词典。ICTCLAS经过五年精心打造，内核升级6次，目前已经升级到了ICTCLAS3.0，分词精度 98.45%，各种词典数据压缩后不到3M。ICTCLAS在国内973专家组组织的评测中活动获得了第一名，在第一届国际中文处理研究机构SigHan 组织的评测中都获得了多项第一名，是当前世界上最好的汉语词法分析器。</p>
<p>ICTCLAS 3.0 商业版是收费的，而免费提供的 ICTCLAS 3.0 共享版不开源，词库是根据人民日报一个月的语料得出的，很多词语不存在。所以本人对ICTCLAS分词后的结果，再采用逆向最大匹配算法，根据自己补充的 一个9万条词语的自定义词库（与ICTCLAS词库中的词语不重复），对ICTCLAS分词结果进行合并处理，输出最终分词结果。</p>
<p>由于 ICTCLAS 3.0 共享版只支持GBK编码，因此，如果是UTF-8编码的字符串，可以先用PHP的iconv函数转换成GBK编码，再用phpcws_split函数进行分词处理，最后转换回UTF-8编码。</p>
<p><strong>2、PHPCWS 中文分词在线演示</strong></p>
<p><span style="color: #ff0000;">演示网址：</span><a href="http://blog.s135.com/demo/phpcws/" target="_blank" rel="nofollow">http://blog.s135.com/demo/phpcws/</a></p>
<p><strong>3、PHPCWS 分词速度及用途</strong></p>
<p>初次使用时，Apache 或 php-cgi(FastCGI) 进程，需要加载一次词库到内存中，需要0.0X秒。58字节的一句话——“2009年2月13日，我编写了一款PHP中文分词扩展：PHPCWS 1.0.0。”，分词速度只需0.0003秒。</p>
<p>PHPCWS 属于《<a href="http://blog.s135.com/post/385.htm" target="_blank" rel="nofollow">亿级数据的高并发通用搜索引擎架构设计</a>》 的一部分，用作“搜索查询接口”的关键字分词处理。在此架构中，Sphinx索引引擎对于CJK（中日韩）语言支持一元切分，假设【反恐行动是国产主视角 射击网络游戏】这段文字，Sphinx会将其切成【反 恐 行 动 是 国 产 主 视 角 射 击 网 络 游 戏】，然后对每个字建立反向索引。如果用这句话中包含的字组成一个不存在的词语，例如【恐动】，也会被搜索到，所以搜索时，需要加引号，例如搜索【&#8221;反恐 行动&#8221;】，就能完全匹配连在一起的四个字，不连续的【&#8221;恐动&#8221;】就不会被搜索到。但是，这样还有一个问题，搜索【&#8221;反恐行动游戏&#8221;】或【&#8221;国产网络游 戏&#8221;】就会搜索不到。所以，我在搜索层写了个PHP中文分词扩展，搜索“反恐行动游戏”、“国产网络游戏”，会被PHPCWS中文分词函数分别切分为“反 恐行动 游戏”、“国产 网络游戏”，这时候，用PHP函数给以空格分隔的词语加上引号，去搜索【&#8221;反恐行动&#8221; &#8220;游戏&#8221;】或【&#8221;国产&#8221; &#8220;网络游戏&#8221;】，就能搜索到这条记录了。由于PHPCWS位于搜索层，中文分词词库发生增、删、改，只需平滑重启一次Web服务器或php-cgi进程即 可，无需重建搜索索引。</p>
<p>根据上述情况，对于那些采用二元交叉切分的搜索引擎，PHPCWS用在前端搜索层对用户输入的搜索关键字、短语进行分词处理，同样适合。PHPCWS开发的目的正在于此，对于短句、小文本中文分词切分，速度非常之快。</p>
<p><strong>4、自定义词库</strong></p>
<p>自定义词库名称为<a href="http://code.google.com/p/phpcws/source/browse/trunk/phpcws-dict/userdict.tch" target="_blank" rel="nofollow">userdict.tch</a>，格式为 Tokyo Cabinet DBM 的 Abstract key-value 内存哈希数据库（key为GBK编码的词语名词，value为词频。目前词频均填1，暂时用不上）。自定义词库的修改在安装步骤中会详细介绍。</p>
<hr /><span style="font-size: 14px;"><strong>二、PHPCWS 1.0.0 安装步骤</strong></span></p>
<p><strong>1、安装 Tokyo Cabinet 数据库：</strong></p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">wget <a href="http://tokyocabinet.sourceforge.net/tokyocabinet-1.4.5.tar.gz" target="_blank" rel="nofollow">http://tokyocabinet.sourceforge.net/tokyocabinet-1.4.5.tar.gz</a><br />
tar zxvf tokyocabinet-1.4.5.tar.gz<br />
cd tokyocabinet-1.4.5/<br />
./configure &#8211;prefix=/usr/local/tokyocabinet-1.4.5<br />
make &amp;&amp; make install<br />
mkdir -p /usr/local/tokyocabinet-1.4.5/lib/static/<br />
cp -f /usr/local/tokyocabinet-1.4.5/lib/*.a /usr/local/tokyocabinet-1.4.5/lib/static/<br />
echo &#8220;/usr/local/tokyocabinet-1.4.5/lib&#8221; &gt;&gt; /etc/ld.so.conf<br />
/sbin/ldconfig<br />
cd ../</div>
<p><strong>2、安装 PHPCWS 扩展：</strong></p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">wget <a href="http://phpcws.googlecode.com/files/phpcws-1.0.0.tar.gz" target="_blank" rel="nofollow">http://phpcws.googlecode.com/files/phpcws-1.0.0.tar.gz</a><br />
tar zxvf phpcws-1.0.0.tar.gz<br />
cd phpcws-1.0.0/<br />
/usr/local/webserver/php/bin/phpize<br />
./configure &#8211;with-php-config=/usr/local/webserver/php/bin/php-config &#8211;with-tc=/usr/local/tokyocabinet-1.4.5<br />
make &amp;&amp; make install<br />
cd ../</div>
<p>注：其中/usr/local/webserver/php/为您的PHP安装目录。</p>
<p><strong>3、安装 ICTCLAS 3.0 词库和 PHPCWS 自定义词库（词库汉字编码均为GBK）：</strong></p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">cd /usr/local/<br />
wget <a href="http://phpcws.googlecode.com/files/phpcws-dict-1.0.0.tar.gz" target="_blank" rel="nofollow">http://phpcws.googlecode.com/files/phpcws-dict-1.0.0.tar.gz</a><br />
tar zxvf phpcws-dict-1.0.0.tar.gz<br />
mv phpcws-dict-1.0.0 phpcws</div>
<p>您可以往自定义词库内增加自己的词语，方法如下：</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">cd /usr/local/phpcws/</p>
<p>#如果userdict.tch已经被PHP加载，请拷贝一个备份<br />
cp userdict.tch userdict_new.tch</p>
<p>#添加新词语<br />
/usr/local/tokyocabinet-1.4.5/bin/tcamgr put userdict_new.tch 词语一 1<br />
/usr/local/tokyocabinet-1.4.5/bin/tcamgr put userdict_new.tch 词语二 1</p>
<p>查询某个词语是否已经在词库内<br />
/usr/local/tokyocabinet-1.4.5/bin/tcamgr get userdict_new.tch 词语名词</p>
<p>#删除一个词语<br />
/usr/local/tokyocabinet-1.4.5/bin/tcamgr out userdict_new.tch 词语名称</p>
<p>#将修改后的新词库覆盖回原词库<br />
mv userdict_new.tch userdict.tch</p>
<p>#重启您的Apache服务器，或php-cgi(FastCGI)进程。<br />
#例如重启php-cgi(FastCGI)进程：<br />
/usr/local/webserver/php/sbin/php reload</p></div>
<p>您可以从<a href="http://pinyin.sogou.com/dict/" target="_blank" rel="nofollow">搜狗细胞词库网站</a>下载自己需要的行业分类文本词库，整合到PHPCWS自定义词库中。</p>
<p><strong>4、修改您的php.ini文件，增加以下几行内容：</strong></p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">[phpcws]<br />
extension = &#8220;phpcws.so&#8221;<br />
phpcws.dict_path = &#8220;/usr/local/phpcws&#8221;</div>
<p><strong>5、重启您的Apache服务器，或php-cgi(FastCGI)进程</strong></p>
<p><strong>6、查看您的phpinfo信息，如果搜索到以下内容，则表明安装成功：</strong></p>
<p><a href="http://blog.s135.com/attachment/200902/phpcws.gif" target="_blank" rel="nofollow"><img class="insertimage" title="点击在新窗口中浏览此图片" src="http://blog.s135.com/attachment/200902/phpcws.gif" border="0" alt="点击在新窗口中浏览此图片" /></a></p>
<hr /><span style="font-size: 14px;"><strong>三、PHPCWS 1.0.0 调用方式</strong></span></p>
<p><strong>1、PHPCWS扩展拥有一个PHP函数：</strong><br />
string <span style="color: #ff0000;">phpcws_split</span> ( string <span style="color: #00008b;">$text</span> [, string <span style="color: #00008b;">$interpunction</span> ] )</p>
<p><strong>参数说明：</strong><br />
<span style="color: #00008b;">$text</span> 为GBK编码的文本内容；</p>
<p><span style="color: #00008b;">$interpunction</span> 为可选参数，用来控制是否过滤标点符号。<br />
①、值为空时，表示不过滤；</p>
<p>②、值为&#8221;default&#8221;时，过滤掉默认的标点符号，即以下标点符号：<br />
,.!！＂＃￥％＆｀＇（）〔〕〈〉《》「」『』〖〗【】．＊＋，－．。、？…—·ˉˇ¨‘’“”々～‖∶＂／：；｜〃＜＝＞？＠［＼］＾＿｀｛｜｝￣</p>
<p>③、值为其他字符串时，表示过滤掉自定义的标点符号，例如值为&#8221;,.!，。！&#8221;即过滤掉半角、全角的逗号、句号、感叹号。</p>
<p><strong>2、PHP中文分词实例：</strong></p>
<p>①、对GBK编码的字符串进行中文分词处理（example_gbk.php）：</p>
<div class="dp-highlighter">
<ol class="dp-c">
<li class="alt"><span><span>&lt;?php </span></span></li>
<li><span>@header(<span class="string">&#8216;Content-Type: text/html; charset=gb2312&#8242;</span><span>); </span></span></li>
<li class="alt"><span><span class="vars">$text</span><span> = </span><span class="string">&#8220;2009年2月13日，我编写了一款PHP中文分词扩展：PHPCWS 1.0.0。&#8221;</span><span>; </span></span></li>
<li><span> </span></li>
<li class="alt"><span><span class="func">echo</span><span> </span><span class="string">&#8220;分词结果为：&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li><span><span class="vars">$result</span><span> = phpcws_split(</span><span class="vars">$text</span><span>); </span></span></li>
<li class="alt"><span><span class="func">echo</span><span> </span><span class="vars">$result</span><span> . </span><span class="string">&#8220;&lt;BR&gt;&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li><span> </span></li>
<li class="alt"><span><span class="func">echo</span><span> </span><span class="string">&#8220;过滤掉默认标点符号的分词结果为：&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li><span><span class="vars">$result</span><span> = phpcws_split(</span><span class="vars">$text</span><span>, </span><span class="string">&#8220;default&#8221;</span><span>); </span></span></li>
<li class="alt"><span><span class="func">echo</span><span> </span><span class="vars">$result</span><span> . </span><span class="string">&#8220;&lt;BR&gt;&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li><span> </span></li>
<li class="alt"><span><span class="func">echo</span><span> </span><span class="string">&#8220;过滤掉全角逗号与冒号的分词结果为：&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li><span><span class="vars">$result</span><span> = phpcws_split(</span><span class="vars">$text</span><span>, </span><span class="string">&#8220;，：&#8221;</span><span>); </span></span></li>
<li class="alt"><span><span class="func">echo</span><span> </span><span class="vars">$result</span><span> . </span><span class="string">&#8220;&lt;BR&gt;&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li><span>?&gt; </span></li>
</ol>
</div>
<p><textarea class="php" style="display: none;" cols="100" rows="15" name="code">&lt;?php @header(&#8216;Content-Type: text/html; charset=gb2312&#8242;); $text = &#8220;2009年2月13日，我编写了一款PHP中文分词扩展：PHPCWS 1.0.0。&#8221;;  echo &#8220;分词结果为：&lt;BR&gt;&#8221;; $result = phpcws_split($text); echo $result . &#8220;&lt;BR&gt;&lt;BR&gt;&#8221;;  echo &#8220;过滤掉默认标点符号的分词结果为：&lt;BR&gt;&#8221;; $result = phpcws_split($text, &#8220;default&#8221;); echo $result . &#8220;&lt;BR&gt;&lt;BR&gt;&#8221;;  echo &#8220;过滤掉全角逗号与冒号的分词结果为：&lt;BR&gt;&#8221;; $result = phpcws_split($text, &#8220;，：&#8221;); echo $result . &#8220;&lt;BR&gt;&lt;BR&gt;&#8221;; ?&gt;</textarea><br />
②、对UTF-8编码的字符串进行中文分词处理（example_utf8.php）：</p>
<div class="dp-highlighter">
<ol class="dp-c">
<li class="alt"><span><span>&lt;?php </span></span></li>
<li><span>@header(<span class="string">&#8216;Content-Type: text/html; charset=utf-8&#8242;</span><span>); </span></span></li>
<li class="alt"><span><span class="vars">$text</span><span> = </span><span class="string">&#8220;2009年2月13日，我编写了一款PHP中文分词扩展：PHPCWS 1.0.0。&#8221;</span><span>; </span></span></li>
<li><span><span class="vars">$text</span><span> = iconv(</span><span class="string">&#8220;UTF-8&#8243;</span><span>, </span><span class="string">&#8220;GBK//IGNORE&#8221;</span><span>, </span><span class="vars">$text</span><span>); </span></span></li>
<li class="alt"><span> </span></li>
<li><span><span class="func">echo</span><span> </span><span class="string">&#8220;分词结果为：&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li class="alt"><span><span class="vars">$result</span><span> = phpcws_split(</span><span class="vars">$text</span><span>); </span></span></li>
<li><span><span class="vars">$result</span><span> = iconv(</span><span class="string">&#8220;GBK&#8221;</span><span>, </span><span class="string">&#8220;UTF-8//IGNORE&#8221;</span><span>, </span><span class="vars">$result</span><span>); </span></span></li>
<li class="alt"><span><span class="func">echo</span><span> </span><span class="vars">$result</span><span> . </span><span class="string">&#8220;&lt;BR&gt;&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li><span> </span></li>
<li class="alt"><span><span class="func">echo</span><span> </span><span class="string">&#8220;过滤掉默认标点符号的分词结果为：&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li><span><span class="vars">$result</span><span> = phpcws_split(</span><span class="vars">$text</span><span>, </span><span class="string">&#8220;default&#8221;</span><span>); </span></span></li>
<li class="alt"><span><span class="vars">$result</span><span> = iconv(</span><span class="string">&#8220;GBK&#8221;</span><span>, </span><span class="string">&#8220;UTF-8//IGNORE&#8221;</span><span>, </span><span class="vars">$result</span><span>); </span></span></li>
<li><span><span class="func">echo</span><span> </span><span class="vars">$result</span><span> . </span><span class="string">&#8220;&lt;BR&gt;&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li class="alt"><span> </span></li>
<li><span><span class="func">echo</span><span> </span><span class="string">&#8220;过滤掉全角逗号与冒号的分词结果为：&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li class="alt"><span><span class="vars">$result</span><span> = phpcws_split(</span><span class="vars">$text</span><span>, </span><span class="string">&#8220;，：&#8221;</span><span>); </span></span></li>
<li><span><span class="vars">$result</span><span> = iconv(</span><span class="string">&#8220;GBK&#8221;</span><span>, </span><span class="string">&#8220;UTF-8//IGNORE&#8221;</span><span>, </span><span class="vars">$result</span><span>); </span></span></li>
<li class="alt"><span><span class="func">echo</span><span> </span><span class="vars">$result</span><span> . </span><span class="string">&#8220;&lt;BR&gt;&lt;BR&gt;&#8221;</span><span>; </span></span></li>
<li><span>?&gt; </span></li>
</ol>
</div>
<p><textarea class="php" style="display: none;" cols="100" rows="15" name="code">&lt;?php @header(&#8216;Content-Type: text/html; charset=utf-8&#8242;); $text = &#8220;2009年2月13日，我编写了一款PHP中文分词扩展：PHPCWS 1.0.0。&#8221;; $text = iconv(&#8220;UTF-8&#8243;, &#8220;GBK//IGNORE&#8221;, $text);  echo &#8220;分词结果为：&lt;BR&gt;&#8221;; $result = phpcws_split($text); $result = iconv(&#8220;GBK&#8221;, &#8220;UTF-8//IGNORE&#8221;, $result); echo $result . &#8220;&lt;BR&gt;&lt;BR&gt;&#8221;;  echo &#8220;过滤掉默认标点符号的分词结果为：&lt;BR&gt;&#8221;; $result = phpcws_split($text, &#8220;default&#8221;); $result = iconv(&#8220;GBK&#8221;, &#8220;UTF-8//IGNORE&#8221;, $result); echo $result . &#8220;&lt;BR&gt;&lt;BR&gt;&#8221;;  echo &#8220;过滤掉全角逗号与冒号的分词结果为：&lt;BR&gt;&#8221;; $result = phpcws_split($text, &#8220;，：&#8221;); $result = iconv(&#8220;GBK&#8221;, &#8220;UTF-8//IGNORE&#8221;, $result); echo $result . &#8220;&lt;BR&gt;&lt;BR&gt;&#8221;; ?&gt;</textarea><br />
输出结果为：</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">分词结果为：<br />
2009年 2月 13日 ， 我 编写 了 一款 PHP 中文 分词 扩展 ： PHPCWS 1.0.0 。</p>
<p>过滤掉默认标点符号的分词结果为：<br />
2009年 2月 13日 我 编写 了 一款 PHP 中文 分词 扩展 PHPCWS 1.0.0</p>
<p>过滤掉全角逗号与冒号的分词结果为：<br />
2009年 2月 13日 我 编写 了 一款 PHP 中文 分词 扩展 PHPCWS 1.0.0 。</p></div>
<p>以上两个实例PHP程序文件可以从SVN中获取：</p>
<div style="border: 1px dashed #00a0c6; margin: 5px 5px 0px; padding: 3px; background-color: #ffffff;">svn checkout <a href="http://phpcws.googlecode.com/svn/trunk/php-example/" target="_blank" rel="nofollow">http://phpcws.googlecode.com/svn/trunk/php-example/</a> php-example</div>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/06/12/scws%e7%ae%80%e6%98%93%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e7%b3%bb%e7%bb%9f/'>SCWS简易中文分词系统</a></li>
<li><a href='http://www.pkphp.com/2009/01/21/php-dom-phpqurey/'>php如何解析网页DOM？phpQurey给你搞定一切！</a></li>
<li><a href='http://www.pkphp.com/2008/09/17/php-generic-xml-parser/'>php通用xml解析类</a></li>
<li><a href='http://www.pkphp.com/2008/09/03/spy-getstring-function/'>蝈蝈采集程序核心代码：任意字符串截取函数</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/'>Ubuntu下安装 apache+php+mysql文本服务器！</a></li>
</ul>
<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(2)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="php 中文分词" style="font-size: 13px;">php 中文分词</a>(8)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="php中文分词" style="font-size: 13px;">php中文分词</a>(1)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="php分词" style="font-size: 13px;">php分词</a>(2)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="ictclas 3.0" style="font-size: 13px;">ictclas 3.0</a>(3)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="phpcws" style="font-size: 13px;">phpcws</a>(3)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="php　分词" style="font-size: 13px;">php　分词</a>(1)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="开源php" style="font-size: 13px;">开源php</a>(1)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="中文分词开源" style="font-size: 13px;">中文分词开源</a>(2)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="utf-8 逗号" style="font-size: 13px;">utf-8 逗号</a>(1)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="ictclas 过滤 标点" style="font-size: 13px;">ictclas 过滤 标点</a>(1)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="开源词库,下载" style="font-size: 13px;">开源词库,下载</a>(1)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="PHP 中文分词系统" style="font-size: 13px;">PHP 中文分词系统</a>(1)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="php 中英文 分词" style="font-size: 13px;">php 中英文 分词</a>(1)<a href="http://www.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/" title="php 匹配中文句号" style="font-size: 13px;">php 匹配中文句号</a>(1)<br /><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%2Fwww.pkphp.com%2F2008%2F07%2F25%2Fphp%25E6%259F%25A5%25E8%25AF%25A2alexa%25E6%258E%2592%25E5%2590%258D%25E7%259A%2584%25E4%25BB%25A3%25E7%25A0%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F17%2F%25E8%25BD%25AC%25E5%25BC%2580%25E6%25BA%2590php%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E6%2589%25A9%25E5%25B1%2595phpcws-100%25E5%258F%2591%25E5%25B8%2583%25E5%2595%25A6%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php查询alexa排名的代码</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%2Fwww.pkphp.com%2F2009%2F01%2F21%2Fphp-dom-phpqurey%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F17%2F%25E8%25BD%25AC%25E5%25BC%2580%25E6%25BA%2590php%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E6%2589%25A9%25E5%25B1%2595phpcws-100%25E5%258F%2591%25E5%25B8%2583%25E5%2595%25A6%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php如何解析网页DOM？phpQurey给你搞定一切！</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%2Fwww.pkphp.com%2F2008%2F09%2F17%2Fphp-generic-xml-parser%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F17%2F%25E8%25BD%25AC%25E5%25BC%2580%25E6%25BA%2590php%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E6%2589%25A9%25E5%25B1%2595phpcws-100%25E5%258F%2591%25E5%25B8%2583%25E5%2595%25A6%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">php通用xml解析类</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%2Fwww.pkphp.com%2F2008%2F06%2F12%2Fscws%25E7%25AE%2580%25E6%2598%2593%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E7%25B3%25BB%25E7%25BB%259F%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F17%2F%25E8%25BD%25AC%25E5%25BC%2580%25E6%25BA%2590php%25E4%25B8%25AD%25E6%2596%2587%25E5%2588%2586%25E8%25AF%258D%25E6%2589%25A9%25E5%25B1%2595phpcws-100%25E5%258F%2591%25E5%25B8%2583%25E5%2595%25A6%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">SCWS简易中文分词系统</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2009/02/17/%e8%bd%ac%e5%bc%80%e6%ba%90php%e4%b8%ad%e6%96%87%e5%88%86%e8%af%8d%e6%89%a9%e5%b1%95phpcws-100%e5%8f%91%e5%b8%83%e5%95%a6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>wordpress启用memcache详解</title>
		<link>http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/</link>
		<comments>http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 14:20:47 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=888</guid>
		<description><![CDATA[大名鼎鼎的memcache你应该知道吧？这个可是好东西，他可以大大增加mysql的相应速度。这几天觉得wordpress速度有些慢，于是建议朋友在服务器上安装memcache来提高mysql效率。首先按照安装memCache for PHP这个方法安装并启动memcache守候进程。 接下来需要配置wordpress，首先在http://dev.wp-plugins.org/browser/memcached/trunk下载object-cache.php文件，将该文件存放在wp-content文件夹内。 一般的说法就是这样子就算启动了wordpress的memcache插件了，但是有可能还没有启动。 首先你要确认，你的memcache守候进程是在哪个端口，默认的端口是11211，如果你守候了其他的进程（例如：13112），那么需要你在wp-config.php文件中增加如下代码： global $memcached_servers; $memcached_servers = array(’default’ => array(’127.0.0.1:13112′));//这里的13112替换为你设置的守候端口 这样配置后，看看你的wordpress是不是速度大大提高了？ 另外一个简单的不需要修改wp-config.php的配置方案就是，在启动memcache的守候进程的时候使用11211端口，使用如下命令： /usr/local/bin/memcached -d -m 32 -u root -l 127.0.0.1 -p 11211 -c 1024 -P /tmp/memcached.pid 这是你就不需要修改wp-config.php文件了，只要把object-cache.php放在wp-content文件夹内即可激活memecached插件了。 今天启用了memecached之后，wordpress访问速度大大提高了，爽！嘎嘎！ Related items centOS带宽实时流量查看工具 [wordpress plugin]原创文章保护插件（小名“垃圾变原创”插件）发布！ svn: REPORT 请求“/!svn/vcc/default”失败 解决办法 Linux中cp总是提示覆盖文件的解决办法 速度快，操作简单的VPS memcache(21)WordPress (2)wordpress 自动采集(1)memcached php wordpress(2)memecached mysql(1)mysql memcached配置(1)memcache 图片(1)wordpress memcache(29)memcache 端口(3)wordpress memcached(33)memcached端口(2)memcache 淘宝(1)memcached wordpress(10)wp [...]<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%2Fwww.pkphp.com%2F2008%2F08%2F08%2Fwordpress-auto-blogroll-design%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F06%2Fwordpress%25E5%2590%25AF%25E7%2594%25A8memcache%25E8%25AF%25A6%25E8%25A7%25A3%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接auto-blogroll插件设计细节！</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%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fwordpress-blog-quickly-shout%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F06%2Fwordpress%25E5%2590%25AF%25E7%2594%25A8memcache%25E8%25AF%25A6%25E8%25A7%25A3%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【发布】wordpress便携通告插件！</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%2Fwww.pkphp.com%2F2008%2F03%2F29%2Fmemcache%25E6%25B5%258B%25E8%25AF%2595%25E8%2584%259A%25E6%259C%25AC%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F06%2Fwordpress%25E5%2590%25AF%25E7%2594%25A8memcache%25E8%25AF%25A6%25E8%25A7%25A3%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">memcache测试脚本</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%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F06%2Fwordpress%25E5%2590%25AF%25E7%2594%25A8memcache%25E8%25AF%25A6%25E8%25A7%25A3%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助插件auto blogroll V1.4 发布!</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>大名鼎鼎的memcache你应该知道吧？这个可是好东西，他可以大大增加mysql的相应速度。这几天觉得wordpress速度有些慢，于是建议朋友在服务器上安装memcache来提高mysql效率。首先按照<a href="http://www.pkphp.com/2008/03/28/%E5%AE%89%E8%A3%85memcache-for-php/">安装memCache for PHP</a>这个方法安装并启动memcache守候进程。</p>
<p>接下来需要配置wordpress，首先在<a href="http://dev.wp-plugins.org/browser/memcached/trunk" rel="nofollow">http://dev.wp-plugins.org/browser/memcached/trunk</a>下载object-cache.php文件，将该文件存放在wp-content文件夹内。</p>
<p>一般的说法就是这样子就算启动了wordpress的memcache插件了，但是有可能还没有启动。<br />
首先你要确认，你的memcache守候进程是在哪个端口，默认的端口是11211，如果你守候了其他的进程（例如：13112），那么需要你在wp-config.php文件中增加如下代码：<br />
<code><br />
global $memcached_servers;<br />
$memcached_servers = array(’default’ => array(’127.0.0.1:13112′));//这里的13112替换为你设置的守候端口<br />
</code><br />
这样配置后，看看你的wordpress是不是速度大大提高了？</p>
<p>另外一个简单的不需要修改wp-config.php的配置方案就是，在启动memcache的守候进程的时候使用11211端口，使用如下命令：<br />
<code>/usr/local/bin/memcached -d -m 32 -u root -l 127.0.0.1 -p 11211 -c 1024 -P /tmp/memcached.pid</code><br />
这是你就不需要修改wp-config.php文件了，只要把object-cache.php放在wp-content文件夹内即可激活memecached插件了。</p>
<p>今天启用了memecached之后，wordpress访问速度大大提高了，爽！嘎嘎！<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2010/02/11/wordpress-articles-protection/'>[wordpress plugin]原创文章保护插件（小名“垃圾变原创”插件）发布！</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/'>svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/linux-cp-force/'>Linux中cp总是提示覆盖文件的解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/01/speed-simple-vps/'>速度快，操作简单的VPS</a></li>
</ul>
<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="memcache" style="font-size: 13px;">memcache</a>(21)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="WordPress " style="font-size: 13px;">WordPress </a>(2)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="wordpress 自动采集" style="font-size: 13px;">wordpress 自动采集</a>(1)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="memcached php wordpress" style="font-size: 13px;">memcached php wordpress</a>(2)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="memecached mysql" style="font-size: 13px;">memecached mysql</a>(1)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="mysql memcached配置" style="font-size: 13px;">mysql memcached配置</a>(1)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="memcache 图片" style="font-size: 13px;">memcache 图片</a>(1)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="wordpress memcache" style="font-size: 13px;">wordpress memcache</a>(29)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="memcache 端口" style="font-size: 13px;">memcache 端口</a>(3)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="wordpress memcached" style="font-size: 13px;">wordpress memcached</a>(33)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="memcached端口" style="font-size: 13px;">memcached端口</a>(2)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="memcache 淘宝" style="font-size: 13px;">memcache 淘宝</a>(1)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="memcached wordpress" style="font-size: 13px;">memcached wordpress</a>(10)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="wp memcache" style="font-size: 13px;">wp memcache</a>(8)<a href="http://www.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/" title="我爱水煮鱼 memcache" style="font-size: 13px;">我爱水煮鱼 memcache</a>(1)<br /><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%2Fwww.pkphp.com%2F2008%2F08%2F08%2Fwordpress-auto-blogroll-design%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F06%2Fwordpress%25E5%2590%25AF%25E7%2594%25A8memcache%25E8%25AF%25A6%25E8%25A7%25A3%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助链接auto-blogroll插件设计细节！</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%2Fwww.pkphp.com%2F2008%2F09%2F07%2Fwordpress-blog-quickly-shout%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F06%2Fwordpress%25E5%2590%25AF%25E7%2594%25A8memcache%25E8%25AF%25A6%25E8%25A7%25A3%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">【发布】wordpress便携通告插件！</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%2Fwww.pkphp.com%2F2008%2F03%2F29%2Fmemcache%25E6%25B5%258B%25E8%25AF%2595%25E8%2584%259A%25E6%259C%25AC%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F06%2Fwordpress%25E5%2590%25AF%25E7%2594%25A8memcache%25E8%25AF%25A6%25E8%25A7%25A3%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">memcache测试脚本</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%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fwordpress-plugin-auto-blogroll-v14-released%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F06%2Fwordpress%25E5%2590%25AF%25E7%2594%25A8memcache%25E8%25AF%25A6%25E8%25A7%25A3%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress自助插件auto blogroll V1.4 发布!</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2009/02/06/wordpress%e5%90%af%e7%94%a8memcache%e8%af%a6%e8%a7%a3/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>linux下如何重启动网络服务</title>
		<link>http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/</link>
		<comments>http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 07:49:18 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=875</guid>
		<description><![CDATA[修改了hosts表之后，需要重新启动linux的网络服务才能使的新的修改生效。 淘宝商品免费推广 成人用品 成人保健品专卖 淘宝精品 3G数码配件市场 淘宝热卖 MM衣橱 淘宝女装精品 淘客精品 淘客网 淘宝精品 童装/婴儿服/鞋帽/亲子装 淘宝热卖 宠物用品 淘宝精品 淘宝化妆品 linux下重启网络服务有两种的命令： service network restart 或者 /etc/init.d/network restart Related items linux下如何安装、卸载软件 apache中虚拟目录和虚拟主机设置 linux下的脚本文件要注意换行符与Windows不同！ linux下为什么0777的文件夹和文件apache无法写入呢？ Linux新手要了解的十个知识点 http://www.pkphp.com/(9)php 启动(3)linux启动网络服务(21)linux 启动网络服务命令(2)linux php启动(1)启动网络服务(2)linux 重启网络 网络服务(1)linux 启动网络服务(57)linux下如何启动服务(1)Linux重新启动网络和网络服务的命令(1)network 服务 重启动(1)Linux下重新启动网络(4)php 启动服务(1)linux 重启 启动 网络(1)重新启动网络 linux(1)<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%2Fwww.pkphp.com%2F2008%2F09%2F02%2Flinux-install-uninstall-software%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何安装、卸载软件</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%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下为什么0777的文件夹和文件apache无法写入呢？</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%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下mysql自动远程备份</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%2Fwww.pkphp.com%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下svn命令大全</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>修改了hosts表之后，需要重新启动linux的网络服务才能使的新的修改生效。</p>
<style type="text/css">
<!--
#xxlink {
	visibility: hidden;
}
-->
</style>
<div id="xxlink">
<ul>
<li><a href="http://www.autobloglink.com" title="这里是一个淘宝商品广告代码生成的免费网站！" target="_blank" rel="nofollow">淘宝商品免费推广</a></li>
<li><a href="http://www.cryp001.com" title="成人用品001 成人保健品 淘宝热卖 淘宝精品" target="_blank" rel="nofollow">成人用品 成人保健品专卖</a></li>
<li><a href="http://www.3ghotdeals.com" title="3G时代已经带来，淘宝精品 为你提供最丰富便宜 3G数码配件市场 淘宝热卖" target="_blank" rel="nofollow">淘宝精品 3G数码配件市场 淘宝热卖</a></li>
<li><a href="http://www.mmcloths.com/" title="MM衣橱 淘宝女装精品" target="_blank" rel="nofollow">MM衣橱 淘宝女装精品</a></li>
<li><a href="http://www.autobloglink.com/taoke/" title="淘客精品 淘客网 淘宝商品推广" target="_blank" rel="nofollow">淘客精品 淘客网</a></li>
<li><a href="http://www.3babydeals.com" title="孩子必需品精品介绍 婴儿用品使用指南 淘宝精品童装/婴儿服/鞋帽/亲子装 淘宝热卖" target="_blank" rel="nofollow">淘宝精品 童装/婴儿服/鞋帽/亲子装 淘宝热卖</a></li>
<li><a href="http://www.popopet.com/" title="宠物用品 淘宝精品" target="_blank" rel="nofollow">宠物用品 淘宝精品</a></li>
<li><a href="http://www.5huazhuangpin.com/" title="我的化妆品 淘宝化妆品精品 流行化妆品" target="_blank" rel="nofollow">淘宝化妆品</a></li>
</ul>
</div>
<p>linux下重启网络服务有两种的命令：<br />
<code>service network restart</code><br />
或者<br />
<code>/etc/init.d/network restart</code><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/'>linux下如何安装、卸载软件</a></li>
<li><a href='http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/'>apache中虚拟目录和虚拟主机设置</a></li>
<li><a href='http://www.pkphp.com/2008/08/30/linux%e4%b8%8b%e7%9a%84%e8%84%9a%e6%9c%ac%e6%96%87%e4%bb%b6%e8%a6%81%e6%b3%a8%e6%84%8f%e6%8d%a2%e8%a1%8c%e7%ac%a6%e4%b8%8ewindows%e4%b8%8d%e5%90%8c%ef%bc%81/'>linux下的脚本文件要注意换行符与Windows不同！</a></li>
<li><a href='http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/'>linux下为什么0777的文件夹和文件apache无法写入呢？</a></li>
<li><a href='http://www.pkphp.com/2008/07/25/linux%e6%96%b0%e6%89%8b%e8%a6%81%e4%ba%86%e8%a7%a3%e7%9a%84%e5%8d%81%e4%b8%aa%e7%9f%a5%e8%af%86%e7%82%b9/'>Linux新手要了解的十个知识点</a></li>
</ul>
<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(9)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="php 启动" style="font-size: 13px;">php 启动</a>(3)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="linux启动网络服务" style="font-size: 13px;">linux启动网络服务</a>(21)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="linux 启动网络服务命令" style="font-size: 13px;">linux 启动网络服务命令</a>(2)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="linux php启动" style="font-size: 13px;">linux php启动</a>(1)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="启动网络服务" style="font-size: 13px;">启动网络服务</a>(2)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="linux 重启网络 网络服务" style="font-size: 13px;">linux 重启网络 网络服务</a>(1)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="linux 启动网络服务" style="font-size: 13px;">linux 启动网络服务</a>(57)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="linux下如何启动服务" style="font-size: 13px;">linux下如何启动服务</a>(1)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="Linux重新启动网络和网络服务的命令" style="font-size: 13px;">Linux重新启动网络和网络服务的命令</a>(1)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="network 服务 重启动" style="font-size: 13px;">network 服务 重启动</a>(1)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="Linux下重新启动网络" style="font-size: 13px;">Linux下重新启动网络</a>(4)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="php 启动服务" style="font-size: 13px;">php 启动服务</a>(1)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="linux 重启 启动 网络" style="font-size: 13px;">linux 重启 启动 网络</a>(1)<a href="http://www.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/" title="重新启动网络 linux" style="font-size: 13px;">重新启动网络 linux</a>(1)<br /><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%2Fwww.pkphp.com%2F2008%2F09%2F02%2Flinux-install-uninstall-software%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下如何安装、卸载软件</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%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下为什么0777的文件夹和文件apache无法写入呢？</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%2Fwww.pkphp.com%2F2008%2F07%2F01%2Flinux%25E4%25B8%258Bmysql%25E8%2587%25AA%25E5%258A%25A8%25E8%25BF%259C%25E7%25A8%258B%25E5%25A4%2587%25E4%25BB%25BD%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下mysql自动远程备份</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%2Fwww.pkphp.com%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2009%2F02%2F05%2Flinux%25E4%25B8%258B%25E5%25A6%2582%25E4%25BD%2595%25E9%2587%258D%25E5%2590%25AF%25E5%258A%25A8%25E7%25BD%2591%25E7%25BB%259C%25E6%259C%258D%25E5%258A%25A1%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下svn命令大全</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2009/02/05/linux%e4%b8%8b%e5%a6%82%e4%bd%95%e9%87%8d%e5%90%af%e5%8a%a8%e7%bd%91%e7%bb%9c%e6%9c%8d%e5%8a%a1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn错误：Authentication realm 解决办法</title>
		<link>http://www.pkphp.com/2008/10/06/svn-authentication-realm/</link>
		<comments>http://www.pkphp.com/2008/10/06/svn-authentication-realm/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 14:12:51 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[百宝箱]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[realm]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[错误]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=734</guid>
		<description><![CDATA[今天把主svn服务器域名进行了更换，跟换的过程中遇到了这样的问题：当对一个已经现在的副本重定向（relocat...<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%2Fwww.pkphp.com%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下svn命令大全</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%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</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%2Fwww.pkphp.com%2F2008%2F04%2F23%2Fwordpress%25E5%25BD%2593%25E5%2589%258D%25E6%259C%2580%25E6%2596%25B0%25E7%2589%2588%25E6%259C%25ACsvn%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress当前最新版本SVN服务器</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%2Fwww.pkphp.com%2F2008%2F08%2F27%2Fzend-framework-exception%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">zend framework错误或者异常信息捕捉</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>今天把主svn服务器域名进行了更换，跟换的过程中遇到了这样的问题：当对一个已经现在的副本重定向（relocation）到新域名时，svn不断的提示输入密码，即使密码正确也无法实现重新定向（relocation），错误提示如下：</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;">Authentication realm: &lt;http://www.domain.com:80&gt; myproject</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">username:</pre>
</div>
</div>
<p>于是不断按照提示输入用户名和密码，但是正确的用户名和密码也没有办法登录，最终提示权限认证错误而终止。郁闷极了，因为同样的命令在dreamhost主机是没有问题的，为什么到了自己的服务器就不行了呢。我在linux下命令行对已经下载的副本进行svn重定向操作的命令如下：</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;">svn switch http://www.domain1.com/myproject --relocate http://www.domain2.com/myproject</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">这条命令在dreamhost执行是没有问题的</pre>
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;"></pre>
</div>
</div>
<p>在另外的linux redhat服务器执行后没有结果，于是翻svn手册查到了需要这样执行：</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;">svn switch --relocate http://www.domain1.com/myproject http://www.domain2.com/myproject</pre>
</div>
</div>
<p>一样是提示重复提示输入用户名和密码的错误：Authentication realm</p>
<p>继续查手册，发现svn switch命令可以直接带&#8211;username和&#8211;password，于是对上面的命令加入了用户名和密码后，svn重定向成功！完整的代码如下：</p>
<div style="border: 1px solid gray; margin: 20px 0px 10px; padding: 4px; overflow: auto; font-size: 8pt; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<div style="border-style: none; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: #f4f4f4;">
<pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: white;">svn switch --relocate http://www.domain1.com/myproject http://www.domain2.com/myproject --username usera --password pswordabc</pre>
</div>
</div>
<p>ok！一切搞定，我google一下好像有人也遇到了同样的问题，但是他们的解决办法是修改svn的密码文件，感觉比较复杂，所以写出来供有用的朋友拿！<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2008/08/30/linux%e4%b8%8b%e7%9a%84%e8%84%9a%e6%9c%ac%e6%96%87%e4%bb%b6%e8%a6%81%e6%b3%a8%e6%84%8f%e6%8d%a2%e8%a1%8c%e7%ac%a6%e4%b8%8ewindows%e4%b8%8d%e5%90%8c%ef%bc%81/'>linux下的脚本文件要注意换行符与Windows不同！</a></li>
<li><a href='http://www.pkphp.com/2008/08/30/520zuixin-com-linux-secure-iptables/'>如何防止服务器被暴力破解密码？</a></li>
<li><a href='http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/'>linux下为什么0777的文件夹和文件apache无法写入呢？</a></li>
<li><a href='http://www.pkphp.com/2008/07/15/linux%e4%b8%8bsvn%e5%91%bd%e4%bb%a4%e5%a4%a7%e5%85%a8/'>linux下svn命令大全</a></li>
</ul>
<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="svn Authentication realm" style="font-size: 13px;">svn Authentication realm</a>(3)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="svn authentication" style="font-size: 13px;">svn authentication</a>(2)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="Authentication realm: &lt;svn://" style="font-size: 13px;">Authentication realm: &lt;svn://</a>(1)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="svn Authentication realm:" style="font-size: 13px;">svn Authentication realm:</a>(1)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="SVN HTTP Authentication" style="font-size: 13px;">SVN HTTP Authentication</a>(1)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="svn 更换域名" style="font-size: 13px;">svn 更换域名</a>(1)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="svn realm" style="font-size: 13px;">svn realm</a>(11)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="Authentication realm SVN" style="font-size: 13px;">Authentication realm SVN</a>(7)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="realm svn" style="font-size: 13px;">realm svn</a>(2)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="Authentication realm" style="font-size: 13px;">Authentication realm</a>(4)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="Authentiation realm svn" style="font-size: 13px;">Authentiation realm svn</a>(1)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="Authentication realm: &lt;http:" style="font-size: 13px;">Authentication realm: &lt;http:</a>(1)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="svn realm windows" style="font-size: 13px;">svn realm windows</a>(1)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="Authentication realm:" style="font-size: 13px;">Authentication realm:</a>(8)<a href="http://www.pkphp.com/2008/10/06/svn-authentication-realm/" title="svn重定向" style="font-size: 13px;">svn重定向</a>(1)<br /><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%2Fwww.pkphp.com%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下svn命令大全</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%2Fwww.pkphp.com%2F2010%2F01%2F25%2Fsvn-report-svn-vcc-default%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</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%2Fwww.pkphp.com%2F2008%2F04%2F23%2Fwordpress%25E5%25BD%2593%25E5%2589%258D%25E6%259C%2580%25E6%2596%25B0%25E7%2589%2588%25E6%259C%25ACsvn%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress当前最新版本SVN服务器</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%2Fwww.pkphp.com%2F2008%2F08%2F27%2Fzend-framework-exception%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F10%2F06%2Fsvn-authentication-realm%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">zend framework错误或者异常信息捕捉</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="无觅相关文章插件" rel="nofollow">
                <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.pkphp.com/2008/10/06/svn-authentication-realm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

