<?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; linux</title>
	<atom:link href="http://www.pkphp.com/tag/linux/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>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) var escFun = window.encodeURIComponent ? window.encodeURIComponent : escape; var relatedlinks_js [...]<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>linux下如何安装、卸载软件</title>
		<link>http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/</link>
		<comments>http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 15:14:26 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[卸载]]></category>
		<category><![CDATA[安装]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=575</guid>
		<description><![CDATA[在Linux下有一个功能强大的软件安装卸载工具，名为RPM。它可以用来建立、安装、查询、更新、卸载软件。该工具是在命令行下使用的。在Shell的提示符后输入rpm，就可获得该命令的帮助信息。Linux软件的安装和卸载一直是困扰许多新用户的难题。在Windows中，我们可以使用软件自带的安装卸载程序或在控制面板中的“添加/删除程序...<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%2F2008%2F09%2F02%2Flinux-install-uninstall-software%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%2F2008%2F09%2F02%2Flinux-install-uninstall-software%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%2F2010%2F01%2F01%2Flinux-vps-linode-com%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Flinux-install-uninstall-software%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%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%2F2008%2F09%2F02%2Flinux-install-uninstall-software%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>在Linux下有一个功能强大的软件安装卸载工具，名为RPM。它可以用来建立、安装、查询、更新、卸载软件。该工具是在命令行下使用的。在Shell的提示符后输入rpm，就可获得该命令的帮助信息。Linux软件的安装和卸载一直是困扰许多新用户的难题。在Windows中，我们可以使用软件自带的安装卸载程序或在控制面板中的“添加/删除程序”来实现。</p>
<p>linux下软件的安装：</p>
<p>Linux下软件的安装主要有两种不同的形式。第一种安装文件名为xxx.tar.gz；另一种安装文件名为xxx.i386.rpm。以第一种方式发行的软件多为以源码形式发送的；第二种方式则是直接以二进制形式发送的。</p>
<p>对于第一种，安装方法如下：</p>
<ul>
<li>1.首先，将安装文件拷贝至你的目录中。例如，如果你是以root身份登录上的，就将软件拷贝至/root中。
<p>#cp xxx.tar.gz /root</li>
<li>2.由于该文件是被压缩并打包的,应对其解压缩。命令为：
<p>#tar xvzf filename.tar.gz</li>
<li>3.执行该命令后，安装文件按路径，解压缩在当前目录下。用ls命令可以看到解压缩后的文件。通常在解压缩后产生的文件中，有“Install”的文件。该文件为纯文本文件，详细讲述了该软件包的安装方法。</li>
<li>4.执行解压缩后产生的一个名为configure的可执行脚本程序。它是用于检查系统是否有编译时所需的库，以及库的版本是否满足编译的需要等安装所需要的系统信息。为随后的编译工作做准备。命令为：#./configure。</li>
<li>5.检查通过后，将生成用于编译的MakeFile文件。此时，可以开始进行编译了。编译的过程视软件的规模和计算机性能的不同，所耗费的时间也不同。命令为：#make。</li>
<li>6.成功编译后，键入如下的命令开始安装：
<p>#make install</li>
<li>7.安装完毕，应清除编译过程中产生的临时文件和配置过程中产生的文件。键入如下命令：
<p>#make clean<br />
#make distclean</li>
</ul>
<p>至此，软件的安装结束。</p>
<p>对于第二种，其安装方法要简单得多。</p>
<p>同第一种方式一样，将安装文件拷贝至你的目录中。然后使用rpm来安装该文件。命令如下：</p>
<p>#rpm -i filename.i386.rpm</p>
<p>rpm将自动将安装文件解包，并将软件安装到缺省的目录下。并将软件的安装信息注册到rpm的数据库中。参数i的作用是使rpm进入安装模式。</p>
<p>linux下软件的卸载：</p>
<ul>
<li>1.软件的卸载主要是使用rpm来进行的。卸载软件首先要知道软件包在系统中注册的名称。键入命令：<br />
#rpm -q -a<br />
即可查询到当前系统中安装的所有的软件包。
</li>
<li>2.确定了要卸载的软件的名称，就可以开始实际卸载该软件了。键入如下命令即可卸载软件：
<p>#rpm -e [package name]</p>
<p>参数e的作用是使rpm进入卸载模式。对名为[package name]的软件包进行卸载。由于系统中各个软件包之间相互有依赖关系。如果因存在依赖关系而不能卸载，rpm将给予提示并停止卸载。你可以使用如下的命令来忽略依赖关系，直接开始卸载：</p>
<p>#rpm -e [package name] -nodeps</p>
<p>忽略依赖关系的卸载可能会导致系统中其它的一些软件无法使用。</li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><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/'>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/2008/09/02/linux-install-uninstall-software/" title="如何在linux中查找是否安装的软件" style="font-size: 13px;">如何在linux中查找是否安装的软件</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux下php卸载" style="font-size: 13px;">linux下php卸载</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux下如何安装package" style="font-size: 13px;">linux下如何安装package</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux 中以代码安装的软件的卸载" style="font-size: 13px;">linux 中以代码安装的软件的卸载</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="卸载软件如何进入安装模式" style="font-size: 13px;">卸载软件如何进入安装模式</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="软件如何进入安装模式" style="font-size: 13px;">软件如何进入安装模式</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="Linux下如何安装软件" style="font-size: 13px;">Linux下如何安装软件</a>(4)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux下如何安装文件" style="font-size: 13px;">linux下如何安装文件</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux" style="font-size: 13px;">linux</a>(2)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux 卸载 程序" style="font-size: 13px;">linux 卸载 程序</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux卸载" style="font-size: 13px;">linux卸载</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux 卸载编译的php" style="font-size: 13px;">linux 卸载编译的php</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux下怎样进入目录" style="font-size: 13px;">linux下怎样进入目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux 卸载" style="font-size: 13px;">linux 卸载</a>(5)<a href="http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/" title="linux下压缩文件如何安装" style="font-size: 13px;">linux下压缩文件如何安装</a>(5)<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%2F2008%2F09%2F02%2Flinux-install-uninstall-software%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%2F2008%2F09%2F02%2Flinux-install-uninstall-software%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%2F2010%2F01%2F01%2Flinux-vps-linode-com%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Flinux-install-uninstall-software%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%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%2F2008%2F09%2F02%2Flinux-install-uninstall-software%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/2008/09/02/linux-install-uninstall-software/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>apache中虚拟目录和虚拟主机设置</title>
		<link>http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/</link>
		<comments>http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 15:07:33 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[权限]]></category>
		<category><![CDATA[虚拟主机]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=573</guid>
		<description><![CDATA[在apache的配置文件http.conf中设置如下信息，可以将该目录变成一个web可以放的目录：

          Opiones Indexes MultiViews
          AllowOverride None
          Order allow,deny
          Allow from all

这里面的几个参数说明如下：


	Indexes 允许目录浏览（即列出此目录下所有文件名称）；MultiVi...<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%2F05%2Flinux-0777-write-disabled%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%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%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用pam_chroot限定用户ssh登录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>在apache的配置文件http.conf中设置如下信息，可以将该目录变成一个web可以放的目录：<br />
<code><br />
Options Indexes MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
</code><br />
这里面的几个参数说明如下：</p>
<ul>
<li>Indexes 允许目录浏览（即列出此目录下所有文件名称）；MultiViews 允许内容协商的多重视图。<br />
比如：客户端输入“http://10.0.0.1/icone/a&#8221;这将会显示此目录下所有 a.* 文件，并不是出错信息。All 包含了初MultiViews 之外的所有特性，若无Options 语句，默认为All</li>
<li>AllowOverride 定义对于每个目录下的 .htalless 文件中的指含类型，一般禁止使用。</li>
<li>设置缺省的访问权限，当前设置表示允许所有客户机都能访问。比如仅允许192.168.16.0/24 这个段能访问，除了192.168.16.5/24 之外。<br />
使用方法：Oredr allow ,deny<br />
Allow from 192.168.16.0/24<br />
Deny from 192.168.16.5/24</li>
</ul>
<p>如果想在服务器上增加一个虚拟主机，就是增加个另外的域名的可用空间，在apache的http.conf文件最后增加如下代码：<br />
<code><br />
DocumentRoot /www/pkphp_com/<br />
ServerName   www.pkphp.com</p>
<p>Options FollowSymLinks<br />
AllowOverride All<br />
order allow,deny<br />
Allow from all</p>
<p></code></p>
<ul>
<li>214.118.36.117换成你的服务器绑定的静态ip，同时将域名www.pkphp.com的A记录指定到这个ip</li>
<li>www.pkphp.com是需要绑定的域名，注意：如果你要事情pkphp.com，需要复制上面的代码增加一个到配置文件最后同时将www.pkphp.com设置为pkphp.com。这样设置就可以使用www.pkphp.com和pkphp.com都可以访问/www/pkphp_com/目录了！</li>
<li>其他的设置与目录的设置相同，见上！</li>
</ul>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<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/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/'>使用pam_chroot限定用户ssh登录linux主机后的权限</a></li>
<li><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/'>linux下如何重启动网络服务</a></li>
<li><a href='http://www.pkphp.com/2008/10/04/linux%e5%ae%89%e8%a3%85awstats%e5%af%b9apache%e6%97%a5%e5%bf%97%e8%bf%9b%e8%a1%8c%e7%9b%91%e6%b5%8b/'>linux安装awstats对apache日志进行监测</a></li>
<li><a href='http://www.pkphp.com/2008/09/02/linux-install-uninstall-software/'>linux下如何安装、卸载软件</a></li>
</ul>
<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="wordpress一个虚拟目录" style="font-size: 13px;">wordpress一个虚拟目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 增加虚拟目录" style="font-size: 13px;">apache 增加虚拟目录</a>(5)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 设置图片文件目录" style="font-size: 13px;">apache 设置图片文件目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 虚拟目录 无内容" style="font-size: 13px;">apache 虚拟目录 无内容</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="wordpress 虚拟 目录" style="font-size: 13px;">wordpress 虚拟 目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 虚拟目录外" style="font-size: 13px;">apache 虚拟目录外</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="appche 虚拟站点" style="font-size: 13px;">appche 虚拟站点</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="PHP 虚拟目录" style="font-size: 13px;">PHP 虚拟目录</a>(5)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache linux 虚拟目录 权限" style="font-size: 13px;">apache linux 虚拟目录 权限</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="虚拟主机中设置目录浏览" style="font-size: 13px;">虚拟主机中设置目录浏览</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="Apache的虚拟站点设置" style="font-size: 13px;">Apache的虚拟站点设置</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="apache 链接目录" style="font-size: 13px;">apache 链接目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="主机访问　虚拟机linux php虚拟目录" style="font-size: 13px;">主机访问　虚拟机linux php虚拟目录</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="php 虚拟目录 linux 权限" style="font-size: 13px;">php 虚拟目录 linux 权限</a>(1)<a href="http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/" title="linux php 虚拟目录" style="font-size: 13px;">linux php 虚拟目录</a>(4)<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%2F05%2Flinux-0777-write-disabled%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%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%2F10%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F09%2F02%2Fapache-config-directory-virtualhost%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">使用pam_chroot限定用户ssh登录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/2008/09/02/apache-config-directory-virtualhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下的脚本文件要注意换行符与Windows不同！</title>
		<link>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/</link>
		<comments>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/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 06:45:26 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[百宝箱]]></category>
		<category><![CDATA[bad interpreter]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=546</guid>
		<description><![CDATA[编写linux下的sh脚本文件的时候要注意，在Windows下直接记事本中编写的文件无法在linuxshell下直接执行，会提示如下错误：


   1: : bad interpreter: 没有那个文件或目录


原因是：Windows下换行符号是“
”，而linux下是“
”没有""，当shell文件是在Windows下编写的时候，所有的换行符都是“
”，shell...<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%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">
                        <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%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">
                        <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%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">
                        <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%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%2F&from=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">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux和windows下均可查询pr的php代码</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>编写linux下的sh脚本文件的时候要注意，在Windows下直接记事本中编写的文件无法在linuxshell下直接执行，会提示如下错误：</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;"><span style="color: #606060;">   1:</span> : bad interpreter: 没有那个文件或目录</pre>
</div>
</div>
<p>原因是：Windows下换行符号是“\r\n”，而linux下是“\n”没有&#8221;\r&#8221;，当shell文件是在Windows下编写的时候，所有的换行符都是“\r\n”，shell下是没办法执行这个文件的，会提示以上错误。请在ultraedit下将该文件执行“File-&gt;conversions-&gt;Dos to Unix”，执行这个转化后的sh文件能够直接在linux下执行。这步操作能够就是取消&#8221;\r&#8221;符号。</p>
<p>以前遇到多这个问题，今天遇到了这个问题，查了半天资料，还是把结果写在这里做个记录吧！<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<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/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><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/'>linux下如何重启动网络服务</a></li>
<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/09/02/linux-install-uninstall-software/'>linux下如何安装、卸载软件</a></li>
</ul>
<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/" title="wordpress 换行符" style="font-size: 13px;">wordpress 换行符</a>(1)<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/" title="linux shell换行" style="font-size: 13px;">linux shell换行</a>(1)<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/" title="linux sh bad interpeter" style="font-size: 13px;">linux sh bad interpeter</a>(1)<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/" title="linux shell 换行" style="font-size: 13px;">linux shell 换行</a>(3)<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/" title="linux" style="font-size: 13px;">linux</a>(1)<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/" title="linux shell 换行符" style="font-size: 13px;">linux shell 换行符</a>(2)<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/" title="php win 换行" style="font-size: 13px;">php win 换行</a>(1)<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/" title="linux下的php换行符" style="font-size: 13px;">linux下的php换行符</a>(1)<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/" title="php windows下的换行" style="font-size: 13px;">php windows下的换行</a>(1)<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/" title="脚本文件如何换行" style="font-size: 13px;">脚本文件如何换行</a>(1)<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/" title="linux sh文件" style="font-size: 13px;">linux sh文件</a>(1)<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/" title="linux文件换行符" style="font-size: 13px;">linux文件换行符</a>(3)<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/" title="bad interpreter 没有那个件或目录" style="font-size: 13px;">bad interpreter 没有那个件或目录</a>(1)<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/" title="linux shell換行符號" style="font-size: 13px;">linux shell換行符號</a>(1)<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/" title="shell bad interpreter" style="font-size: 13px;">shell bad interpreter</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%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" 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%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" 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%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" 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%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%2F&from=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" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux和windows下均可查询pr的php代码</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" 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/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/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下为什么0777的文件夹和文件apache无法写入呢？</title>
		<link>http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/</link>
		<comments>http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 16:53:58 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[百宝箱]]></category>
		<category><![CDATA[0777]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nobody]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=387</guid>
		<description><![CDATA[原来以为只要是0777的文件夹都可以写入，没想到还与所有者有关系。解决这个问题的办法是把文件夹或者文件的所有者设置为httpd的用户，具体命令：

chmod -Rf nobody ./<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%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2F09%2F02%2Fapache-config-directory-virtualhost%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">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%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2Flinux%25E4%25B8%258B%25E8%25AE%25A9apache%25E6%2594%25AF%25E6%258C%2581mod_rewrite%25E6%25A8%25A1%25E5%259D%2597%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下让apache支持mod_rewrite模块</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>原来以为只要是0777的文件夹都可以写入，没想到还与所有者有关系。解决这个问题的办法是把文件夹或者文件的所有者设置为httpd的用户，具体命令：</p>
<p><code>chmod -Rf nobody ./</code><br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<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/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><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/'>linux下如何重启动网络服务</a></li>
<li><a href='http://www.pkphp.com/2008/10/06/svn-authentication-realm/'>svn错误：Authentication realm 解决办法</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux" style="font-size: 13px;">linux</a>(3)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux nobody" style="font-size: 13px;">linux nobody</a>(11)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="ubuntu php 写入文件" style="font-size: 13px;">ubuntu php 写入文件</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 文件夹 Nobody" style="font-size: 13px;">linux 文件夹 Nobody</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="php 文件夹所有者是apache" style="font-size: 13px;">php 文件夹所有者是apache</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 0777" style="font-size: 13px;">linux 0777</a>(9)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 搜索 可以写入的文件" style="font-size: 13px;">linux 搜索 可以写入的文件</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 文件无法写入" style="font-size: 13px;">linux 文件无法写入</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux chmod nobody" style="font-size: 13px;">linux chmod nobody</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux 无法写文件" style="font-size: 13px;">linux 无法写文件</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="php文件夹 权限 0777" style="font-size: 13px;">php文件夹 权限 0777</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="apache 無法寫入" style="font-size: 13px;">apache 無法寫入</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="网站目录下无法写入文件 php" style="font-size: 13px;">网站目录下无法写入文件 php</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="nobody linux" style="font-size: 13px;">nobody linux</a>(1)<a href="http://www.pkphp.com/2008/08/05/linux-0777-write-disabled/" title="linux php无法写入文件" style="font-size: 13px;">linux php无法写入文件</a>(2)<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%2F04%2Flinux%25E5%25AE%2589%25E8%25A3%2585awstats%25E5%25AF%25B9apache%25E6%2597%25A5%25E5%25BF%2597%25E8%25BF%259B%25E8%25A1%258C%25E7%259B%2591%25E6%25B5%258B%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux安装awstats对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%2F09%2F02%2Fapache-config-directory-virtualhost%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">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%2F06%2F05%2Flinux%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585apache22openssl%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下安装apache2.2+openssl</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%2Flinux%25E4%25B8%258B%25E8%25AE%25A9apache%25E6%2594%25AF%25E6%258C%2581mod_rewrite%25E6%25A8%25A1%25E5%259D%2597%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F05%2Flinux-0777-write-disabled%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux下让apache支持mod_rewrite模块</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/08/05/linux-0777-write-disabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux新手要了解的十个知识点</title>
		<link>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/</link>
		<comments>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/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 14:53:54 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[命令]]></category>
		<category><![CDATA[新手]]></category>
		<category><![CDATA[知识点]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=331</guid>
		<description><![CDATA[Linux新手要了解的十个知识点

　　1.Linux是大小写敏感的系统，举个例子，Mozilla, MOZILLA, mOzilla和 mozilla是四个不同的命令（但是只有第四个mozilla是真正有效的命令）。还有，my_filE, my_file,和 my_FILE是三个不同的文件。用户的登录名和秘密也是大小写敏感的（这是因为UNIX系统和C语言的传统一向是大小写敏感所...<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%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%2F2008%2F07%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%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%2F2008%2F07%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%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%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%2F07%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%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%2F09%2F02%2Flinux-install-uninstall-software%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%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>Linux新手要了解的十个知识点</p>
<p>　　1.Linux是大小写敏感的系统，举个例子，Mozilla, MOZILLA, mOzilla和 mozilla是四个不同的命令（但是只有第四个mozilla是真正有效的命令）。还有，my_filE, my_file,和 my_FILE是三个不同的文件。用户的登录名和秘密也是大小写敏感的（这是因为UNIX系统和C语言的传统一向是大小写敏感所致）。<br />
　　2.文件名最多可以有256个字符，可以包含数字，点号”.”，下划线”_”，横杆”-”，加上其他一些不被建议使用的字符。<br />
　　3.文件名前面带”.”的文件在输入”ls”或者”dir” 命令时一般不显示。可以把这些文件看作是隐含文件，当然你也可以使用命令”ls –a”来显示这些文件。<br />
　　4.“/”对等于DOS下的””(根目录，意味着所有其他目录的父目录，或者是在目录之间和目录和文件之间的一个间隔符号)。举个例子，cd /usr/doc。<br />
　　5.在Linux系统下，所有的目录显示在单一目录树下（有别于DOS系统的驱动器标识）。这意味着所有的物理设备上的所有文件和目录都合并在单一的目录树下。<br />
　　6.在配置文件里，以#打头的行是注释行。在修改配置文件的时候尽量不要删除旧的设置――可以把原来的设置加上”#”变成注释行，总是在修改地方对应地加入一些关于修改的注释，你会发觉在以后的管理中获益多多。<br />
　　7.Linux是继承性的多用户操作系统。你的个人设定（和其他用户的个人设定）放在你的主目录下（一般是/home/your_user_login_name）。许多的配置文件的文件名都以”.”开头，这样用户一般看不到这些文件。<br />
　　8.整个系统范围的设定一般放在目录/etc下。<br />
　　9.和其他的多用户操作系统类似，在Linux下，文件和目录有自己的拥有者和访问权限。一般来说，你只被允许文件到你的主目录下（/home /your_user_login_name）。学习一些关于文件权限管理的相关知识，否则你肯定会觉得Linux实在很麻烦。<br />
　　10.命令参数选项一般由”-”引导，后面跟一个字符（或者”&#8211;“,当选项超过一个字符时）。这样,”-”有点象DOS下的”/”。举个例子，输入命令 rm &#8211;help。<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<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>
<li><a href='http://www.pkphp.com/2008/06/23/linux%ef%bc%9a%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4/'>linux：常用命令</a></li>
<li><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/'>linux下如何重启动网络服务</a></li>
<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>
</ul>
<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/" title="linux" style="font-size: 13px;">linux</a>(1)<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/" title="cialis" style="font-size: 13px;">cialis</a>(1)<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/" title="linux用户操作记录" style="font-size: 13px;">linux用户操作记录</a>(1)<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/" title="viagra" style="font-size: 13px;">viagra</a>(1)<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/" 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%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%2F2008%2F07%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%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%2F2008%2F07%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%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%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%2F07%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%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%2F09%2F02%2Flinux-install-uninstall-software%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%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/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/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux和windows下均可查询pr的php代码</title>
		<link>http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/</link>
		<comments>http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 17:13:57 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pr]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[查询]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=324</guid>
		<description><![CDATA[                  1: &#60;?php

         2: // 7/25/2008 - Updated by Askie (http://www.pkphp.com/)

         3: // 3/20/2008 - Updated by Roger Collins (http://www.rogercollins.com/)

         4: // to remove graphing step

         5:&#160; 

         6: //PageRank Lookup v1.1 by HM2K (update: 31/0...<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%2F2008%2F07%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%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%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%2F2008%2F07%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%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%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%2F07%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%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%2F01%2Flinux-vps-linode-com%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%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  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[<blockquote><div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> &lt;?php</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   2:</span> <span style="color: #008000">// 7/25/2008 - Updated by Askie (http://www.pkphp.com/)</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   3:</span> <span style="color: #008000">// 3/20/2008 - Updated by Roger Collins (http://www.rogercollins.com/)</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   4:</span> <span style="color: #008000">// to remove graphing step</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   5:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   6:</span> <span style="color: #008000">//PageRank Lookup v1.1 by HM2K (update: 31/01/07)</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   7:</span> <span style="color: #008000">//based on an alogoritham found here: http://pagerank.gamesaga.net/</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   8:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   9:</span> <span style="color: #0000ff">class</span> PageRank</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  10:</span> {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  11:</span> <span style="color: #008000">//settings - host and user agent</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  12:</span> var $googlehost=<span style="color: #006080">'toolbarqueries.google.com'</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  13:</span> var $googleua=<span style="color: #006080">'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5'</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  14:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  15:</span> <span style="color: #008000">//convert a string to a 32-bit integer</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  16:</span> function StrToNum($Str, $Check, $Magic) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  17:</span>     $Int32Unit = 4294967296;  <span style="color: #008000">// 2^32</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  18:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  19:</span>     $length = strlen($Str);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  20:</span>     <span style="color: #0000ff">for</span> ($i = 0; $i &lt; $length; $i++) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  21:</span>         $Check *= $Magic;     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  22:</span>         <span style="color: #008000">//If the float is beyond the boundaries of integer (usually +/- 2.15e+9 = 2^31), </span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  23:</span>         <span style="color: #008000">//  the result of converting to integer is undefined</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  24:</span>         <span style="color: #008000">//  refer to http://www.php.net/manual/en/language.types.integer.php</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  25:</span>         <span style="color: #0000ff">if</span> ($Check &gt;= $Int32Unit) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  26:</span>             $Check = ($Check - $Int32Unit * (<span style="color: #0000ff">int</span>) ($Check / $Int32Unit));</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  27:</span>             <span style="color: #008000">//if the check less than -2^31</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  28:</span>             $Check = ($Check &lt; -2147483648) ? ($Check + $Int32Unit) : $Check;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  29:</span>         }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  30:</span>         $Check += ord($Str{$i}); </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  31:</span>     }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  32:</span>     <span style="color: #0000ff">return</span> $Check;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  33:</span> }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  34:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  35:</span> <span style="color: #008000">//genearate a hash for a url</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  36:</span> function HashURL($String) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  37:</span>     $Check1 = $<span style="color: #0000ff">this</span>-&gt;StrToNum($String, 0x1505, 0x21);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  38:</span>     $Check2 = $<span style="color: #0000ff">this</span>-&gt;StrToNum($String, 0, 0x1003F);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  39:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  40:</span>     $Check1 &gt;&gt;= 2;     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  41:</span>     $Check1 = (($Check1 &gt;&gt; 4) &amp; 0x3FFFFC0 ) | ($Check1 &amp; 0x3F);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  42:</span>     $Check1 = (($Check1 &gt;&gt; 4) &amp; 0x3FFC00 ) | ($Check1 &amp; 0x3FF);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  43:</span>     $Check1 = (($Check1 &gt;&gt; 4) &amp; 0x3C000 ) | ($Check1 &amp; 0x3FFF);    </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  44:</span>     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  45:</span>     $T1 = (((($Check1 &amp; 0x3C0) &lt;&lt; 4) | ($Check1 &amp; 0x3C)) &lt;&lt;2 ) | ($Check2 &amp; 0xF0F );</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  46:</span>     $T2 = (((($Check1 &amp; 0xFFFFC000) &lt;&lt; 4) | ($Check1 &amp; 0x3C00)) &lt;&lt; 0xA) | ($Check2 &amp; 0xF0F0000 );</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  47:</span>     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  48:</span>     <span style="color: #0000ff">return</span> ($T1 | $T2);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  49:</span> }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  50:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  51:</span> <span style="color: #008000">//genearate a checksum for the hash string</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  52:</span> function CheckHash($Hashnum) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  53:</span>     $CheckByte = 0;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  54:</span>     $Flag = 0;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  55:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  56:</span>     $HashStr = sprintf(<span style="color: #006080">'%u'</span>, $Hashnum) ;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  57:</span>     $length = strlen($HashStr);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  58:</span>     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  59:</span>     <span style="color: #0000ff">for</span> ($i = $length - 1;  $i &gt;= 0;  $i --) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  60:</span>         $Re = $HashStr{$i};</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  61:</span>         <span style="color: #0000ff">if</span> (1 === ($Flag % 2)) {              </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  62:</span>             $Re += $Re;     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  63:</span>             $Re = (<span style="color: #0000ff">int</span>)($Re / 10) + ($Re % 10);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  64:</span>         }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  65:</span>         $CheckByte += $Re;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  66:</span>         $Flag ++;    </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  67:</span>     }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  68:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  69:</span>     $CheckByte %= 10;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  70:</span>     <span style="color: #0000ff">if</span> (0 !== $CheckByte) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  71:</span>         $CheckByte = 10 - $CheckByte;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  72:</span>         <span style="color: #0000ff">if</span> (1 === ($Flag % 2) ) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  73:</span>             <span style="color: #0000ff">if</span> (1 === ($CheckByte % 2)) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  74:</span>                 $CheckByte += 9;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  75:</span>             }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  76:</span>             $CheckByte &gt;&gt;= 1;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  77:</span>         }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  78:</span>     }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  79:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  80:</span>     <span style="color: #0000ff">return</span> <span style="color: #006080">'7'</span>.$CheckByte.$HashStr;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  81:</span> }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  82:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  83:</span> <span style="color: #008000">//return the pagerank checksum hash</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  84:</span> function getch($url) { <span style="color: #0000ff">return</span> $<span style="color: #0000ff">this</span>-&gt;CheckHash($<span style="color: #0000ff">this</span>-&gt;HashURL($url)); }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  85:</span>&#160; </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  86:</span> <span style="color: #008000">//return the pagerank figure</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  87:</span> function printrank($url) </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  88:</span> {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  89:</span>     $urlinfo=parse_url($url);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  90:</span>     $start=$urlinfo[<span style="color: #006080">&quot;scheme&quot;</span>]&lt;&gt;<span style="color: #006080">&quot;&quot;</span>?strlen($urlinfo[<span style="color: #006080">&quot;scheme&quot;</span>].<span style="color: #006080">&quot;://&quot;</span>):0;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  91:</span>     $url=substr($url,$start);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  92:</span>     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  93:</span>     $pr = 0;    <span style="color: #008000">// default return</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  94:</span>     $ch = $<span style="color: #0000ff">this</span>-&gt;getch($url);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  95:</span>     $fp = fsockopen($<span style="color: #0000ff">this</span>-&gt;googlehost, 80, $errno, $errstr, 30);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  96:</span>     <span style="color: #0000ff">if</span> ($fp) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  97:</span>        $<span style="color: #0000ff">out</span> = <span style="color: #006080">&quot;GET /search?client=navclient-auto&amp;ch=$ch&amp;features=Rank&amp;q=info:$url HTTP/1.1
&quot;</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  98:</span>        <span style="color: #008000">//echo &quot;&lt;pre&gt;$out&lt;/pre&gt;
&quot;; //debug only</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  99:</span>        $<span style="color: #0000ff">out</span> .= <span style="color: #006080">&quot;User-Agent: {$this-&gt;googleua}
&quot;</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 100:</span>        $<span style="color: #0000ff">out</span> .= <span style="color: #006080">&quot;Host: {$this-&gt;googlehost}
&quot;</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 101:</span>        $<span style="color: #0000ff">out</span> .= <span style="color: #006080">&quot;Connection: Close

&quot;</span>;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 102:</span>     </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 103:</span>        fwrite($fp, $<span style="color: #0000ff">out</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 104:</span>        </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 105:</span>        <span style="color: #008000">//$pagerank = substr(fgets($fp, 128), 4); //debug only</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 106:</span>        <span style="color: #008000">//echo $pagerank; //debug only</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 107:</span>        <span style="color: #0000ff">while</span> (!feof($fp)) {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 108:</span>             $data = fgets($fp, 128);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 109:</span>             <span style="color: #008000">//echo $data;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 110:</span>             $pos = strpos($data, <span style="color: #006080">&quot;Rank_&quot;</span>);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 111:</span>             <span style="color: #0000ff">if</span>($pos === <span style="color: #0000ff">false</span>){} <span style="color: #0000ff">else</span>{</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 112:</span>                 $pr=substr($data, $pos + 9);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 113:</span>                 $pr=trim($pr);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 114:</span>                 $pr=str_replace(<span style="color: #006080">&quot;
&quot;</span>,<span style="color: #006080">''</span>,$pr);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 115:</span>                 <span style="color: #0000ff">return</span> $pr;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 116:</span>             }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 117:</span>        }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 118:</span>        <span style="color: #008000">//else { echo &quot;$errstr ($errno)&lt;br /&gt;
&quot;; } //debug only</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 119:</span>        fclose($fp);</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 120:</span>     }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 121:</span>     <span style="color: #0000ff">return</span> $pr;</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 122:</span>     }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 123:</span> }</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060"> 124:</span> <span style="color: #008000">//$gpr = new PageRank();</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060"> 125:</span> //print_r($gpr-&gt;printrank(<span style="color: #006080">&quot;http://www.pkphp.com/&quot;</span>));</pre>
</p></div>
</p></div>
<p>
    <br />&lt;?</p>
</blockquote>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/07/25/php%e6%9f%a5%e8%af%a2alexa%e6%8e%92%e5%90%8d%e7%9a%84%e4%bb%a3%e7%a0%81/'>php查询alexa排名的代码</a></li>
<li><a href='http://www.pkphp.com/2008/09/03/spy-getstring-function/'>蝈蝈采集程序核心代码：任意字符串截取函数</a></li>
<li><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/'>[转]开源PHP中文分词扩展:PHPCWS 1.0.0发布啦</a></li>
<li><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/'>linux下如何重启动网络服务</a></li>
<li><a href='http://www.pkphp.com/2009/01/24/how-to-determin-a-ajax-request-using-php/'>PHP如何判断ajax请求</a></li>
</ul>
<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="linux" style="font-size: 13px;">linux</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="php linux 和 windows" style="font-size: 13px;">php linux 和 windows</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="pagerank查询 php" style="font-size: 13px;">pagerank查询 php</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="php查询pr 代码" style="font-size: 13px;">php查询pr 代码</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="pr查询 代码" style="font-size: 13px;">pr查询 代码</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="中文URL PR值" style="font-size: 13px;">中文URL PR值</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="php pr" style="font-size: 13px;">php pr</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="php toolbarqueries.google.com" style="font-size: 13px;">php toolbarqueries.google.com</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="php 查询 pr" style="font-size: 13px;">php 查询 pr</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="pr查询代码 php" style="font-size: 13px;">pr查询代码 php</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="pr php google linux" style="font-size: 13px;">pr php google linux</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="PageRank Lookup v1.1 by HM2K" style="font-size: 13px;">PageRank Lookup v1.1 by HM2K</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="Windows下php版的查询代码" style="font-size: 13px;">Windows下php版的查询代码</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="Google PR查询代码" style="font-size: 13px;">Google PR查询代码</a>(1)<a href="http://www.pkphp.com/2008/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/" title="php 查pr" style="font-size: 13px;">php 查pr</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%2F2008%2F07%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%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%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%2F2008%2F07%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%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%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%2F07%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%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%2F01%2Flinux-vps-linode-com%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F25%2Flinux%25E5%2592%258Cwindows%25E4%25B8%258B%25E5%259D%2587%25E5%258F%25AF%25E6%259F%25A5%25E8%25AF%25A2pr%25E7%259A%2584php%25E4%25BB%25A3%25E7%25A0%2581%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  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/07/25/linux%e5%92%8cwindows%e4%b8%8b%e5%9d%87%e5%8f%af%e6%9f%a5%e8%af%a2pr%e7%9a%84php%e4%bb%a3%e7%a0%81/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>linux文件系统基础知识</title>
		<link>http://www.pkphp.com/2008/07/24/linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86/</link>
		<comments>http://www.pkphp.com/2008/07/24/linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 14:39:31 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[基础知识]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=309</guid>
		<description><![CDATA[这两天看了一本fedora 6的实践教程，下面是有关linux文件系统知识的学习笔记：
1、linux文件系统分配策略：
块分配( block allocation ) 和 扩展分配  ( extent allocation )
块分配：磁盘上的文件块根据需要分配给文件，避免了存储空间的浪费。但当文件扩充时，会造成文件中文件块的不连续，从而导致过多的磁盘寻道时...<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%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%2F&from=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">
                        <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%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">
                        <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%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">
                        <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%2F09%2F02%2Flinux-install-uninstall-software%2F&from=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">
                        <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>这两天看了一本fedora 6的实践教程，下面是有关linux文件系统知识的学习笔记：<br />
1、linux文件系统分配策略：<br />
块分配( block allocation ) 和 扩展分配  ( extent allocation )<br />
块分配：磁盘上的文件块根据需要分配给文件，避免了存储空间的浪费。但当文件扩充时，会造成文件中文件块的不连续，从而导致过多的磁盘寻道时间。<br />
每一次文件扩展时，块分配算法就需要写入文件块的结构信息，也就是 meta-dada 。meta-data总是与文件一起写入存储设备，改变文件的操作要等到所有meta-data的操作都完成后才能进行，<br />
因此，meta-data的操作会明显降低整个文件系统的性能。<br />
扩展分配： 文件创建时，一次性分配一连串连续的块，当文件扩展时，也一次分配很多块。meta-data在文件创建时写入，当文件大小没有超过所有已分配文件块大小时，就不用写入meta-data，直到需要再分配文件块的时候。<br />
扩展分配采用成组分配块的方式，减少了SCSI设备写数据的时间，在读取顺序文件时具有良好的性能，但随机读取文件时，就和块分配类似了。<br />
文件块的组或块簇 ( block cluster) 的大小是在编译时确定的。簇的大小对文件系统的性能有很大的影响。<br />
注： meta-data 元信息：和文件有关的信息，比如权限、所有者以及创建、访问或更改时间等。<br />
2、文件的记录形式<br />
linux文家系统使用索引节点(inode)来记录文件信息。索引节点是一种数据结构，它包含了一个文件的长度、创建及修改时间、权限、所属关系、磁盘中的位置等信息。<br />
一个文件系统维护了一个索引节点的数组，每个文件或目录都与索引节点数组中的唯一的元素对应。每个索引节点在数组中的索引号，称为索引节点号。<br />
linux文件系统将文件索引节点号和文件名同时保存在目录中，所以，目录只是将文件的名称和它的索引节点号结合在一起的一张表，目录中每一对文件名称和索引节点号称为一个连接。<br />
对于一个文件来说，有一个索引节点号与之对应；而对于一个索引节点号，却可以对应多个文件名。<br />
连接分为软连接和硬连接，其中软连接又叫符号连接。<br />
硬连接： 原文件名和连接文件名都指向相同的物理地址。目录不能有硬连接；硬连接不能跨文件系统(不能跨越不同的分区)，文件在磁盘中只有一个拷贝。<br />
由于删除文件要在同一个索引节点属于唯一的连接时才能成功，因此硬连接可以防止不必要的误删除。<br />
软连接： 用 ln -s 命令建立文件的符号连接。符号连接是linux特殊文件的一种，作为一个文件，它的数据是它所连接的文件的路径名。没有防止误删除的功能。<br />
3、文件系统类型：</p>
<p>ext2 ： 早期linux中常用的文件系统<br />
ext3 ： ext2的升级版，带日志功能<br />
RAMFS ： 内存文件系统，速度很快<br />
NFS ： 网络文件系统，由SUN发明，主要用于远程文件共享<br />
MS-DOS ： MS-DOS文件系统<br />
VFAT ： Windows 95/98 操作系统采用的文件系统<br />
FAT ： Windows XP 操作系统采用的文件系统<br />
NTFS ： Windows NT/XP 操作系统采用的文件系统<br />
HPFS ： OS/2 操作系统采用的文件系统<br />
PROC : 虚拟的进程文件系统<br />
ISO9660 ： 大部分光盘所采用的文件系统<br />
ufsSun : OS 所采用的文件系统<br />
NCPFS ： Novell 服务器所采用的文件系统<br />
SMBFS ： Samba 的共享文件系统<br />
XFS ： 由SGI开发的先进的日志文件系统，支持超大容量文件<br />
JFS ：IBM的AIX使用的日志文件系统<br />
ReiserFS : 基于平衡树结构的文件系统<br />
udf: 可擦写的数据光盘文件系统<br />
4、虚拟文件系统VFS</p>
<p>linux支持的所有文件系统称为逻辑文件系统，而linux在传统的逻辑文件系统的基础上增加料一个蓄念文件系统( Vitual File System ,VFS) 的接口层。<br />
虚拟文件系统(VFS) 位于文件系统的最上层，管理各种逻辑文件系统，并可以屏蔽各种逻辑文件系统之间的差异，提供统一文件和设备的访问接口。<br />
5、文件的逻辑结构<br />
文件的逻辑结构可分为两大类： 字节流式的无结构文件 和 记录式的有结构文件。<br />
由字节流（字节序列）组成的文件是一种无结构文件或流式文件 ，不考虑文件内部的逻辑结构，只是简单地看作是一系列字节的序列，便于在文件的任意位置添加内容。<br />
由记录组成的文件称为记录式文件 ，记录是这种文件类型的基本信息单位，记录式文件通用于信息管理。<br />
6、文件类型</p>
<p>普通文件 ： 通常是流式文件<br />
目录文件 ： 用于表示和管理系统中的全部文件<br />
连接文件 ： 用于不同目录下文件的共享<br />
设备文件 ： 包括块设备文件和字符设备文件，块设备文件表示磁盘文件、光盘等，字符设备文件按照字符操作终端、键盘等设备。<br />
管道(FIFO)文件 :  提供进程建通信的一种方式<br />
套接字(socket) 文件： 该文件类型与网络通信有关<br />
7、文件结构： 包括索引节点和数据<br />
索引节点 ： 又称 I 节点，在文件系统结构中，包含有关相应文件的信息的一个记录，这些信息包括文件权限、文件名、文件大小、存放位置、建立日期等。文件系统中所有文件的索引节点保存在索引节点表中。<br />
数据  ： 文件的实际内容。可以是空的，也可以非常大，并且拥有自己的结构。<br />
8、ext2文件系统</p>
<p>ext2文件系统的数据块大小一般为 1024B、2048B 或 4096B<br />
ext2文件系统采用的索引节点(inode)：<br />
索引节点采用了多重索引结构，主要体现在直接指针和3个间接指针。直接指针包含12个直接指针块，它们直接指向包含文件数据的数据块，紧接在后面的3个间接指针是为了适应文件的大小变化而设计的。<br />
e.g： 假设数据块大小为1024B ，利用12个直接指针，可以保存最大为12KB的文件，当文件超过12KB时，则要利用单级间接指针，该指针指向的数据块保存有一组数据块指针，这些指针依次指向包含有实际数据的数据块，<br />
假如每个指针占用4B，则每个单级指针数据块可保存 1024/4＝256 个数据指针，因此利用直接指针和单级间接指针可保存 1024*12＋1024*256＝268 KB的文件。当文件超过268KB时，再利用二级间接指针，直到使用三级间接指针。<br />
利用直接指针、单级间接指针、二级间接指针、三级间接指针可保存的最大文件大小为：<br />
1024*12+1024*256+1024*256*256+1024*256*256*256＝16843020 KB，约 16GB<br />
若数据块大小为2048B，指针占4B，则最大文件大小为： 2048*12+2048*512+2048*512*512+2048*512*512*512＝268,960,792 KB 约 268GB<br />
若数据块大小为4096B，指针占4B，则最大文件大小为： 4096*12+4096*1024+4096*1024*1024+4096*1024*1024*1024＝4,299,165,744 KB ，约 4TB<br />
注： 命令 tune2fs -l /dev/sda5  可查看文件系统<br />
ext2文件系统最大文件名长度： 255个字符</p>
<p>ext2文件系统的缺点：<br />
ext2在写入文件内容的同时并没有同时写入文件meta-data，    其工作顺序是先写入文件的内容，然后等空闲时候才写入文件的meta-data。若发生意外，则文件系统就会处于不一致状态。<br />
在重新启动系统的时候，linux会启动 fsk ( file system check) 的程序，扫描整个文件系统并试图修复，但不提供保证。<br />
9、ext3文件系统：</p>
<p>ext3基于ext2的代码，所以磁盘格式与ext2相同，使用相同的元数据。<br />
ext2文件系统无损转化为ext3文件系统：  tune2fs  -j /dev/sda6</p>
<p>日志块设备( Journaling block device layer,JBD)完成ext3文件系统日志功能。JBD不是ext3文件系统所特有的，它的设计目标是为了向一个块设备添加日志功能。<br />
当一个文件修改执行时，ext3文件系统代码将通知JBD，称为一个事务(transaction)。发生意外时，日志功能具有的重放功能，能重新执行中断的事务。</p>
<p>日志中的3种数据模式：<br />
1)、data=writeback ：不处理任何形式的日志数据，给用户整体上的最高性能<br />
2)、data=odered ：只记录元数据日志，但将元数据和数据组成一个单元称为事务(transaction) 。此模式保持所句句的可靠性与文件系统的一致性，性能远低于data=writeback模式，但比data=journal模式快<br />
3)、data=journal ：提供完整的数据及元数据日志，所有新数据首先被写入日志，然后才被定位。意外发生过后，日志可以被重放，将数据与元数据带回一致状态。这种模式整体性能最慢，但数据需要从磁盘读取和写入磁盘时却是3种模式中最快的。<br />
ext3文件系统最大文件名长度： 255个字符<br />
ext3文件系统的优点：可用性、数据完整性、速度、兼容性<br />
10、ReiserFS文件系统</p>
<p>ReiserFS文件系统是由Hans Reiser和他领导的开发小组共同开发的，整个文件系统完全是从头设计的，是一个非常优秀的文件系统。也是最早用于Linux的日志文件系统之一。<br />
ReiserFS的特点<br />
先进的日志机制<br />
ReiserFS有先进的日志(Journaling/logging)功能 机制。日志机制保证了在每个实际数据修改之前，相应的日志已经写入硬盘。文件与数据的安全性有了很大提高。<br />
高效的磁盘空间利用<br />
Reiserfs对一些小文件不分配inode。而是将这些文件打包，存放在同一个磁盘分块中。而其它文件系统则为每个小文件分别放置到一个磁盘分块中。<br />
独特的搜寻方式<br />
ReiserFS基于快速平衡树(balanced tree)搜索，平衡树在性能上非常卓越，这是一种非常高效的算法。ReiserFS搜索大量文件时，搜索速度要比ext2快得多。Reiserfs文件 系统使用B*Tree存储文件，而其它文件系统使用B+Tree树。B*Tree查询速度比B+Tree要快很多。Reiserfs在文件定位上速度非常 快。<br />
在实际运用中，ReiserFS 在处理小于 4k 的文件时，比ext2 快 5 倍；带尾文件压缩功能（默认）的ReiserFS 比ext2文件系统多存储6%的数据。<br />
支持海量磁盘<br />
ReiserFS是一个非常优秀的文件系统，一直被用在高端UNIX系统上，可轻松管理上百G的文件系统，ReiserFS文件系统最大支持的文件系统尺寸为16TB。这非常适合企业级应用中。<br />
优异的性能<br />
由于它的高效存储和快速小文件I/O特点，使用ReiserFs文件系统的PC，在启动X窗口系统时，所花的时间要比在同一台机器上使用ext2文 件系统少1/3。另外，ReiserFS文件系统支持单个文件尺寸为4G的文件，这为大型数据库系统在linux上的应用提供了更好的选择。<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><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/'>linux下如何重启动网络服务</a></li>
<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>
</ul>
<a href="http://www.pkphp.com/2008/07/24/linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86/" title="linux 文件连接" style="font-size: 13px;">linux 文件连接</a>(1)<a href="http://www.pkphp.com/2008/07/24/linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86/" title="linux" style="font-size: 13px;">linux</a>(2)<a href="http://www.pkphp.com/2008/07/24/linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86/" title="php记录日志" style="font-size: 13px;">php记录日志</a>(1)<a href="http://www.pkphp.com/2008/07/24/linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86/" title="linux 存储海量小文件" style="font-size: 13px;">linux 存储海量小文件</a>(1)<a href="http://www.pkphp.com/2008/07/24/linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86/" title="viagra" style="font-size: 13px;">viagra</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%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%2F&from=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" 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%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" 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%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" 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%2F09%2F02%2Flinux-install-uninstall-software%2F&from=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" 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/2008/07/24/linux%e6%96%87%e4%bb%b6%e7%b3%bb%e7%bb%9f%e5%9f%ba%e7%a1%80%e7%9f%a5%e8%af%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下svn命令大全</title>
		<link>http://www.pkphp.com/2008/07/15/linux%e4%b8%8bsvn%e5%91%bd%e4%bb%a4%e5%a4%a7%e5%85%a8/</link>
		<comments>http://www.pkphp.com/2008/07/15/linux%e4%b8%8bsvn%e5%91%bd%e4%bb%a4%e5%a4%a7%e5%85%a8/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 13:45:43 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[svn]]></category>
		<category><![CDATA[命令]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=281</guid>
		<description><![CDATA[

1、将文件checkout到本地目录
svn checkout path（path是服务器上的目录）
例如：svn checkout svn://192.168.1.1/pro/domain
简写：svn co
2、往版本库中添加新的文件
 svn add file
例如：svn add test.php(添加test.php)
svn add *.php(添加当前目录下所有的php文件)
3、将改动的文件提交到版本库


 svn...<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%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%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%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%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%2F&from=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">
                        <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%2F10%2F06%2Fsvn-authentication-realm%2F&from=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">
                        <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%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%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%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[<div id="blog_text" class="cnt">
<p><strong>1、</strong>将文件checkout到本地目录</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"><strong>svn checkout</strong> path（path是服务器上的目录）<br />
例如：svn checkout svn:</span><span style="color: #808080;">//</span><span style="font-weight: bold; color: #800000;">192.168</span><span style="color: #000000;">.</span><span style="font-weight: bold; color: #800000;">1.1</span><span style="color: #808080;">/</span><span style="color: #000000;">pro</span><span style="color: #808080;">/</span><span style="color: #000000;">domain<br />
简写：svn co</span></div>
<p><strong>2、</strong>往版本库中添加新的文件</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn </strong></span><span style="color: #0000ff;"><strong>add</strong></span><span style="color: #000000;"> </span><span style="color: #0000ff;">file</span><span style="color: #000000;"><br />
例如：svn </span><span style="color: #0000ff;">add</span><span style="color: #000000;"> test.php(添加test.php)<br />
svn </span><span style="color: #0000ff;">add</span><span style="color: #000000;"> </span><span style="color: #808080;">*</span><span style="color: #000000;">.php(添加当前目录下所有的php文件)</span></div>
<p><strong>3、</strong>将改动的文件提交到版本库</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;">
<p><span style="color: #000000;"> <strong>svn commit</strong> -m </span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">LogMessage</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;"> </span><span style="font-weight: bold; color: #800000;">[</span><span style="color: #800000;">-N</span><span style="font-weight: bold; color: #800000;">]</span><span style="color: #000000;"> </span><span style="font-weight: bold; color: #800000;">[</span><span style="color: #800000;">--no-unlock</span><span style="font-weight: bold; color: #800000;">]</span><span style="color: #000000;"> PATH<img src="http://www.blogjava.net/Images/dot.gif" alt="" />(如果选择了保持锁，就使用&#8211;no-unlock开关)<br />
例如：svn commit -m </span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">add test file for my test</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;"> test.php<br />
简写：svn ci</span></div>
<p><strong>4、</strong>加锁/解锁</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn lock</strong> -m </span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">LockMessage</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;"> </span><span style="font-weight: bold; color: #800000;">[</span><span style="color: #800000;">--force</span><span style="font-weight: bold; color: #800000;">]</span><span style="color: #000000;"> PATH<img src="http://www.blogjava.net/Images/dot.gif" alt="" /><br />
例如：svn lock -m </span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">lock test  file</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;"> test.php<br />
<strong>svn unlock</strong> PATH</span></div>
<p><strong>5、</strong>更新到某个版本</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn update -r </strong>m path<br />
例如：<br />
svn update如果后面没有目录，默认将当前目录以及子目录下的所有文件都更新到最新版本。<br />
svn update  -r </span><span style="color: #000000;">200</span><span style="color: #000000;"> test.php(将版本库中的文件test.php还原到版本200)<br />
svn update  test.php(更新，于版本库同步。如果在提交的时候提示过期的话，是因为<strong>冲突，需要先update，修改文件</strong>，然后清除<strong>svn  resolved</strong>，最后再提交commit)<br />
简写：svn up</span></div>
<p><strong>6、</strong>查看文件或者目录状态</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> </span><span style="color: #000000;">1</span><span style="color: #000000;">）<strong>svn status</strong> path<img src="http://www.blogjava.net/Images/dot.gif" alt="" />（目录下的文件和子目录的状态，正常状态不显示）<br />
【?：不在svn的控制中；M：内容被修改；C：发生冲突；A：预定加入到版本库；K：被锁定】<br />
</span><span style="color: #000000;">2</span><span style="color: #000000;">）<strong>svn  status -v</strong> path<img src="http://www.blogjava.net/Images/dot.gif" alt="" />(显示文件和子目录状态)<br />
第一列保持相同，第二列显示工作版本号，第三和第四列显示最后一次修改的版本号和修改人。<br />
注：svn status、svn diff和 svn  revert这三条命令在没有网络的情况下也可以执行的，原因是svn在本地的.svn中保留了本地版本的原始拷贝。<br />
简写：svn  st</span></div>
<p><strong>7、</strong>删除文件</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn delete</strong> path -m </span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">delete test  fle</span><span style="color: #000000;">&#8220;</span><span style="color: #000000;"><br />
例如：svn delete svn://</span><span style="color: #000000;">192.168.1.1</span><span style="color: #000000;">/pro/domain/test.php -m </span><span style="color: #000000;">&#8220;</span><span style="color: #000000;">delete test  file</span><span style="color: #000000;">&#8221;<br />
或者直接svn delete test.php  然后再svn ci -m &#8216;delete test file‘，推荐使用这种<br />
简写：svn (del, remove, rm)</span></div>
<p><strong>8、</strong>查看日志</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn log</strong> path<br />
例如：svn log  test.php 显示这个文件的所有修改记录，及其版本号的变化</span></div>
<p><strong>9、</strong>查看文件详细信息</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn info</strong> path<br />
例如：svn info  test.php</span></div>
<p><strong>10、</strong>比较差异</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn diff</strong> path(将修改的文件与基础版本比较)<br />
例如：svn diff test.php<br />
<strong>svn diff</strong> -r m:n  path(对版本m和版本n比较差异)<br />
例如：svn diff -r 200:201 test.php<br />
简写：svn  di</span></div>
<p><strong>11、</strong>将两个版本之间的差异合并到当前文件</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn merge -r</strong> m:n path<br />
例如：svn  merge -r </span><span style="color: #000000;">200</span><span style="color: #000000;">:</span><span style="color: #000000;">205</span><span style="color: #000000;"> test.php（将版本200与205之间的差异合并到当前文件，但是一般都会产生冲突，需要处理一下）</span></div>
<p><strong>12、</strong>SVN 帮助</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn help<br />
svn help  ci</strong></span></div>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>以上是常用命令，下面写几个不经常用的</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><strong>13、</strong>版本库下的文件和目录列表</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"> <strong>svn list </strong>path<br />
显示path目录下的所有属于版本库的文件和目录<br />
简写：svn ls</span></div>
<p><strong>14、</strong>创建纳入版本控制下的新目录</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"><strong>svn mkdir</strong>: 创建纳入版本控制下的新目录。<br />
用法: 1、mkdir PATH&#8230;<br />
2、mkdir URL&#8230;<br />
创建版本控制的目录。<br />
1、每一个以工作副本 PATH 指定的目录，都会创建在本地端，并且加入新增<br />
调度，以待下一次的提交。<br />
2、每个以URL指定的目录，都会透过立即提交于仓库中创建。<br />
在这两个情况下，所有的中间目录都必须事先存在。</p>
<p></span></div>
<p><strong>15、</strong>恢复本地修改</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"><strong>svn revert</strong>: 恢复原始未改变的工作副本文件 (恢复大部份的本地修改)。revert:<br />
用法:  revert PATH&#8230;<br />
注意: 本子命令不会存取网络，并且会解除冲突的状况。但是它不会恢复<br />
被删除的目录</p>
<p></span></div>
<p><strong>16、</strong>代码库URL变更</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"><strong>svn switch (sw):</strong> 更新工作副本至不同的URL。<br />
用法: 1、switch URL  [PATH]<br />
2、switch &#8211;relocate FROM TO [PATH...]</p>
<p>1、更新你的工作副本，映射到一个新的URL，其行为跟“svn update”很像，也会将<br />
服务器上文件与本地文件合并。这是将工作副本对应到同一仓库中某个分支或者标记的<br />
方法。<br />
2、改写工作副本的URL元数据，以反映单纯的URL上的改变。当仓库的根URL变动<br />
(比如方案名或是主机名称变动)，但是工作副本仍旧对映到同一仓库的同一目录时使用<br />
这个命令更新工作副本与仓库的对应关系。</p>
<p></span></div>
<p><strong>17、</strong>解决冲突</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"><strong>svn resolved:</strong> 移除工作副本的目录或文件的“冲突”状态。<br />
用法: resolved  PATH&#8230;<br />
注意: 本子命令不会依语法来解决冲突或是移除冲突标记；它只是移除冲突的<br />
相关文件，然后让 PATH  可以再次提交。</p>
<p></span></div>
<p><strong>18、</strong>输出指定文件或URL的内容。</p>
<div style="border: 1px solid #cccccc; padding: 4px 5px 4px 4px; font-size: 13px; width: 98%; background-color: #eeeeee;"><span style="color: #000000;"><strong>svn </strong><strong>cat</strong> 目标[@版本]&#8230;如果指定了版本，将从指定的版本开始查找。<br />
svn cat -r PREV filename &gt; filename (PREV  是上一版本,也可以写具体版本号,这样输出结果是可以提交的)</p>
<p></span></div>
</div>
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<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>
<li><a href='http://www.pkphp.com/2008/06/23/linux%ef%bc%9a%e5%b8%b8%e7%94%a8%e5%91%bd%e4%bb%a4/'>linux：常用命令</a></li>
<li><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/'>linux下如何重启动网络服务</a></li>
<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/09/02/linux-install-uninstall-software/'>linux下如何安装、卸载软件</a></li>
</ul>
<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/" title="http://www.pkphp.com/" style="font-size: 13px;">http://www.pkphp.com/</a>(3)<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/" title="svn update命令" style="font-size: 13px;">svn update命令</a>(9)<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/" title="如何清楚svn下的.svn" style="font-size: 13px;">如何清楚svn下的.svn</a>(1)<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/" title="svn 命令" style="font-size: 13px;">svn 命令</a>(62)<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/" title="svn up skipped " style="font-size: 13px;">svn up skipped </a>(3)<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/" title="linux svn" style="font-size: 13px;">linux svn</a>(78)<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/" title="svn" style="font-size: 13px;">svn</a>(1)<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/" title="linux下 删除.svn文件" style="font-size: 13px;">linux下 删除.svn文件</a>(1)<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/" title="php SVN" style="font-size: 13px;">php SVN</a>(8)<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/" title="svn ci 远程" style="font-size: 13px;">svn ci 远程</a>(1)<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/" title="linux svn stat命令" style="font-size: 13px;">linux svn stat命令</a>(1)<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/" title="SVN 命令大全" style="font-size: 13px;">SVN 命令大全</a>(3)<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/" title="svn lock 目錄" style="font-size: 13px;">svn lock 目錄</a>(1)<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/" title="svn命令大全" style="font-size: 13px;">svn命令大全</a>(6)<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/" title="svn tag 命令" style="font-size: 13px;">svn tag 命令</a>(22)<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%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%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%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%2F25%2Flinux%25E6%2596%25B0%25E6%2589%258B%25E8%25A6%2581%25E4%25BA%2586%25E8%25A7%25A3%25E7%259A%2584%25E5%258D%2581%25E4%25B8%25AA%25E7%259F%25A5%25E8%25AF%2586%25E7%2582%25B9%2F&from=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" 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%2F10%2F06%2Fsvn-authentication-realm%2F&from=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" 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%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%2F2008%2F07%2F15%2Flinux%25E4%25B8%258Bsvn%25E5%2591%25BD%25E4%25BB%25A4%25E5%25A4%25A7%25E5%2585%25A8%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/2008/07/15/linux%e4%b8%8bsvn%e5%91%bd%e4%bb%a4%e5%a4%a7%e5%85%a8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用pam_chroot限定用户ssh登录linux主机后的权限</title>
		<link>http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/</link>
		<comments>http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 17:20:13 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[权限]]></category>
		<category><![CDATA[用户]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=160</guid>
		<description><![CDATA[作者: onquer     出自: http://www.linuxdiyf.com
问题背景：
为了加强linux服务器的安全性，要求指定的用户从ssh登录后只能在指定的目录下工作并只能运行指定的命令或脚本
解决：
修改ssh的登录验证方法
[root@localhost ~]# vi /etc/pam.d/sshd
#%PAM-1.0
auth include system-auth
account required pam_no...<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%2F2008%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%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%2F2008%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%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%2F2010%2F01%2F01%2Flinux-vps-linode-com%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%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%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%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%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>作者: onquer     出自: http://www.linuxdiyf.com<br />
问题背景：<br />
为了加强linux服务器的安全性，要求指定的用户从ssh登录后只能在指定的目录下工作并只能运行指定的命令或脚本<br />
解决：<br />
修改ssh的登录验证方法<br />
[root@localhost ~]# vi /etc/pam.d/sshd<br />
#%PAM-1.0<br />
auth include system-auth<br />
account required pam_nologin.so<br />
account include system-auth<br />
password include system-auth<br />
session include system-auth<br />
session required pam_loginuid.so<br />
session required pam_chroot.so (这是我们手动加入的一行)<br />
设置用户目录<br />
[root@localhost ~]# mkdir /virtual_root/chroot/lib -p<br />
[root@localhost ~]# mkdir /virtual_root/chroot/etc -p<br />
[root@localhost ~]# mkdir /virtual_root/chroot/bin -p<br />
[root@localhost ~]# mkdir /virtual_root/chroot/home/ziyang -p<br />
(你的/etc/passwd中应该有一个名为ziyang的用户)<br />
[root@localhost ~]# chown ziyang.ziyang /virtual_root/chroot/home/ziyang<br />
修改chroot配置文件<br />
[root@localhost ~]# vi /etc/security/chroot.conf<br />
ziyang /virtual_root/chroot (手动加入此行，ziyang就只能被限定在/virtual_root/chroot目录下了。<br />
注：是通过ssh登录的用户，对本地控制台登录的用户无效。但是可以有方法去实现)<br />
设置用户权限和可用命令<br />
[root@localhost ~]# cp /lib/ld-linux.so.2 /lib/libc.so.6 /lib/libdl.so.2 /lib/libtermcap.so.2 /virtual_root/chroot/lib<br />
[root@localhost ~]# cp /bin/bash /virtual_root/chroot/bin<br />
[root@localhost ~]# grep ziyang  /virtual_root/chroot/etc/passwd<br />
应用测试<br />
使用ssh从其他的主机登录你的linux服务器，你会发现ziyang这个用户登录后被限定在了/virtual_root/chroot目录下，并且没有可以使用的shell命令。<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/09/02/apache-config-directory-virtualhost/'>apache中虚拟目录和虚拟主机设置</a></li>
<li><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/'>linux下如何重启动网络服务</a></li>
<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/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>
</ul>
<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="ssh 限定目錄" style="font-size: 13px;">ssh 限定目錄</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="linux ssh 登录" style="font-size: 13px;">linux ssh 登录</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="ssh 用户目录设置" style="font-size: 13px;">ssh 用户目录设置</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="ssh pam_chroot" style="font-size: 13px;">ssh pam_chroot</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="ssh权限" style="font-size: 13px;">ssh权限</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="ssh 权限" style="font-size: 13px;">ssh 权限</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="linux ssh 权限" style="font-size: 13px;">linux ssh 权限</a>(4)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="pam_chroot.so" style="font-size: 13px;">pam_chroot.so</a>(2)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="php 登录ssh" style="font-size: 13px;">php 登录ssh</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="SSH 指定用户登录" style="font-size: 13px;">SSH 指定用户登录</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="linux ssh权限" style="font-size: 13px;">linux ssh权限</a>(2)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="required by /lib/libtermcap.so.2" style="font-size: 13px;">required by /lib/libtermcap.so.2</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="linux用户目录 chroot.conf" style="font-size: 13px;">linux用户目录 chroot.conf</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="linux ssh登录记录" style="font-size: 13px;">linux ssh登录记录</a>(1)<a href="http://www.pkphp.com/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/" title="linux ssh 記錄" style="font-size: 13px;">linux ssh 記錄</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%2F2008%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%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%2F2008%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%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%2F2010%2F01%2F01%2Flinux-vps-linode-com%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%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%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%2F07%2F06%2F%25E4%25BD%25BF%25E7%2594%25A8pam_chroot%25E9%2599%2590%25E5%25AE%259A%25E7%2594%25A8%25E6%2588%25B7ssh%25E7%2599%25BB%25E5%25BD%2595linux%25E4%25B8%25BB%25E6%259C%25BA%25E5%2590%258E%25E7%259A%2584%25E6%259D%2583%25E9%2599%2590%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/2008/07/06/%e4%bd%bf%e7%94%a8pam_chroot%e9%99%90%e5%ae%9a%e7%94%a8%e6%88%b7ssh%e7%99%bb%e5%bd%95linux%e4%b8%bb%e6%9c%ba%e5%90%8e%e7%9a%84%e6%9d%83%e9%99%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

