<?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; 使用指南</title>
	<atom:link href="http://www.pkphp.com/tag/%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/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>Webalizer 安装使用指南</title>
		<link>http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/</link>
		<comments>http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 04:49:01 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[webalizer]]></category>
		<category><![CDATA[使用指南]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=539</guid>
		<description><![CDATA[Webalizer 的配置不是很困难，但是对于新手来说，安装起来却十分的麻烦，本文将详细叙述安装过程，帮你一步一步走向成功！
Webalizer 吹牛在一台 200 Mhz 的普通 Pentium 机器上处理一万条记录只需要一秒钟，但是在我的赛扬机器上可没有那么快。大概是我做了 IP 地址的反向解析的缘故。但是，不论速度如何，我认为 Webaliz...<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%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wget 使用指南</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%2F%25E5%2585%25B3%25E4%25BA%258Evi%25E6%259B%25BF%25E6%258D%25A2%25E5%2591%25BD%25E4%25BB%25A4%25E7%259A%2584%25E4%25BD%25BF%25E7%2594%25A8%25E8%25AF%25B4%25E6%2598%258E%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux关于vi替换命令的使用说明</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%2F08%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%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%2F06%2F12%2Fgoogle-app-engine-gae-cron-job%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">google app engine(GAE)无法使用cron job?</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>Webalizer 的配置不是很困难，但是对于新手来说，安装起来却十分的麻烦，本文将详细叙述安装过程，帮你一步一步走向成功！<br />
Webalizer 吹牛在一台 200 Mhz 的普通 Pentium 机器上处理一万条记录只需要一秒钟，但是在我的赛扬机器上可没有那么快。大概是我做了 IP 地址的反向解析的缘故。但是，不论速度如何，我认为 Webalizer 尽管不能和某些商业软件的界面媲美，但是和其他的开源软件比起来，其统计能力要强得多。<br />
一、安装<br />
Webalizer 需要用到相关的 jpeg, png 和 zlib库，这些库一般不缺省安装，因此初学者会感到难于下手。由于这些库具有相关性，因此下面的安装步骤不能颠倒：<br />
1、jpeg 库的安装<br />
从 http://www.ijg.org/ 下载 jpeg 库，解开压缩文件后，进入到这个目录：<br />
./configure<br />
make<br />
make install<br />
cd ..<br />
2、zlib 库的安装<br />
从 http://www.info-zip.org/pub/infozip/zlib/ 下载 zlib 库后，<br />
gunzip zlib*.tar.gz<br />
tar -xvpf zlib-1.1.3.tar<br />
mv zlib-1.1.3 zlib<br />
cd zlib<br />
./configure<br />
make<br />
make test<br />
make install<br />
cd ..<br />
3、libpng 库的安装<br />
从 http://www.libpng.org/ 下载 libpng 后：<br />
gunzip libpng*.tar.gz<br />
tar -xvpf libpng-1.0.10.tar<br />
mv libpng-1.0.10 libpng<br />
cd libpng<br />
cp scripts/makefile.linux makefile<br />
make<br />
make test<br />
make install<br />
cd ..<br />
你还可以从 http://www.freetype.org/download.html 选择下载 freetype 字库，但是这个步骤不是必须的。<br />
cd freetype*<br />
make setup<br />
make<br />
make install<br />
cd ..<br />
下面我们就可以开始安装 gd 库了：<br />
从 http://www.boutell.com/gd/ g下载 d-1.8.4.tar.gz ：<br />
cd gd-1.8.4<br />
#如果需要使用 Xpm 或者 TrueType 支持，在 make 之前修改 Makefile。<br />
make<br />
#很多人会经历找不到 gd.h 的问题，建议你在硬盘上搜索老的 gd.h 版本，然后<br />
make install<br />
接下来，我们就可以开始安装 Webalizer 了，从 http://www.mrunix.net/webalizer/ 下载后：<br />
cd webalizer-2.01-06<br />
./configure<br />
make<br />
make install<br />
如果不是通过源码编译的方法来安装 Webalizer 的话，你需要备份 /etc/webalizer.conf。<br />
如果需要使用 DNS 反向解析功能的话，我们还需要安装 Berkeley DB。具体的安装可以参考文档：DNS.README。<br />
二、配置：<br />
一个普通的配置文件为：<br />
HideReferrer www.freelamp.com<br />
Incremental yes<br />
PageType htm*<br />
PageType cgi<br />
PageType php<br />
PageType pl<br />
IgnoreHist no<br />
CountryGraph yes<br />
IndexAlias index.cgi<br />
IndexAlias index.php<br />
HideReferrer Direct Request<br />
HideURL *.gif<br />
HideURL *.GIF<br />
HideURL *.jpg<br />
HideURL *.JPG<br />
HideURL *.png<br />
HideURL *.PNG<br />
GroupURL /cgi-bin/* CGI Scripts<br />
GroupURL /images/* Images<br />
GroupReferrer yahoo.com/ Yahoo!<br />
GroupReferrer excite.com/ Excite<br />
GroupReferrer infoseek.com/ InfoSeek<br />
GroupReferrer webcrawler.com/ WebCrawler<br />
GroupReferrer google.com/ Google<br />
GroupReferrer lycos.com/ Lycos<br />
GroupReferrer metacrawler.com/ Metacrawler<br />
GroupAgent MSIE Internet Exploder<br />
GroupAgent Mozilla Netscape<br />
GroupShading yes<br />
MangleAgents 3<br />
然后我们运行<br />
/usr/local/bin/webalizer -Q -c /root/webalizer.conf -n www.freelamp.com -o /home/freelamp/public_html/log/ /home/freelamp/logs/freelamp.log<br />
把这句话写入 crontab ，我们就能从<br />
http://www.freelamp.com/log/ 看到日志统计结果了。<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/'>wget 使用指南</a></li>
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/'>svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/linux-cp-force/'>Linux中cp总是提示覆盖文件的解决办法</a></li>
<li><a href='http://www.pkphp.com/2010/01/01/speed-simple-vps/'>速度快，操作简单的VPS</a></li>
</ul>
<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="webalizer" style="font-size: 13px;">webalizer</a>(16)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="GD 使用手册" style="font-size: 13px;">GD 使用手册</a>(1)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="php webalizer" style="font-size: 13px;">php webalizer</a>(1)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="webalizer 安装配置" style="font-size: 13px;">webalizer 安装配置</a>(1)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="webalizer 安装" style="font-size: 13px;">webalizer 安装</a>(4)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="webalizer中文" style="font-size: 13px;">webalizer中文</a>(2)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="ubuntu安裝webalizer" style="font-size: 13px;">ubuntu安裝webalizer</a>(2)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="webalizer groupagent mozilla chrome" style="font-size: 13px;">webalizer groupagent mozilla chrome</a>(1)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="webalizer-2.安装出错" style="font-size: 13px;">webalizer-2.安装出错</a>(1)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="Webalizer CountryGraph" style="font-size: 13px;">Webalizer CountryGraph</a>(1)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="webalizer使用" style="font-size: 13px;">webalizer使用</a>(2)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="ubuntu webalizer" style="font-size: 13px;">ubuntu webalizer</a>(2)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="webalizer安装" style="font-size: 13px;">webalizer安装</a>(2)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="ubuntu webalizer 中文" style="font-size: 13px;">ubuntu webalizer 中文</a>(2)<a href="http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="zend framework 1.8.4 安装使用" style="font-size: 13px;">zend framework 1.8.4 安装使用</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%2F06%2F23%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wget 使用指南</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%2F%25E5%2585%25B3%25E4%25BA%258Evi%25E6%259B%25BF%25E6%258D%25A2%25E5%2591%25BD%25E4%25BB%25A4%25E7%259A%2584%25E4%25BD%25BF%25E7%2594%25A8%25E8%25AF%25B4%25E6%2598%258E%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">linux关于vi替换命令的使用说明</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%2F08%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%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%2F06%2F12%2Fgoogle-app-engine-gae-cron-job%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">google app engine(GAE)无法使用cron job?</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><p><div id="relatedlinks_container_div"></div>
<script language=javascript defer>
  var escFun = window.encodeURIComponent ? window.encodeURIComponent : escape;
  var relatedlinks_js = document.createElement("script");
  relatedlinks_js.setAttribute("charset", "utf-8");
  relatedlinks_js.src = "http://relatedlinks.googlelabs.com/client/client.js?url=" +
      escFun(document.URL) + "&referrer=" + escFun(document.referrer) +
      "&relatedlinks_id=10098_5845376649736343543&title=" + escFun(document.title);
  document.getElementsByTagName("head")[0].appendChild(relatedlinks_js);
</script></p> ]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>wget 使用指南</title>
		<link>http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/</link>
		<comments>http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 13:08:44 +0000</pubDate>
		<dc:creator>askie</dc:creator>
				<category><![CDATA[LAMP]]></category>
		<category><![CDATA[wget]]></category>
		<category><![CDATA[使用指南]]></category>
		<category><![CDATA[文件]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://www.pkphp.com/?p=81</guid>
		<description><![CDATA[wget是一个从网络上自动下载文件的自由工具。它支持HTTP，HTTPS和FTP协议，可以使用HTTP代理.

所谓的自动下载是指，wget可以在用户退出系统的之后在后台执行。这意味这你可以登录系统，启动一个wget下载任务，然后退出系统，wget将在后台执行直到任务完成，相对于其它大部分浏览器在下载大量数据时需要用户一直的参与，这...<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%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F23%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Webalizer 安装使用指南</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%2F12%2F20%2Fwget%25E5%25B8%25B8%25E7%2594%25A8%25E5%2591%25BD%25E4%25BB%25A4%25E4%25BB%258B%25E7%25BB%258D%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F23%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wget常用命令介绍</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F23%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu下安装 apache+php+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%2F08%2F30%2F520zuixin-com-linux-secure-iptables%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F23%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何防止服务器被暴力破解密码？</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>wget是一个从网络上自动下载文件的自由工具。它支持HTTP，HTTPS和FTP协议，可以使用HTTP代理.</p>
<p>所谓的自动下载是指，wget可以在用户退出系统的之后在后台执行。这意味这你可以登录系统，启动一个wget下载任务，然后退出系统，wget将在后台执行直到任务完成，相对于其它大部分浏览器在下载大量数据时需要用户一直的参与，这省去了极大的麻烦。</p>
<p>wget可以跟踪HTML页面上的链接依次下载来创建远程服务器的本地版本，完全重建原始站点的目录结构。这又常被称作&#8221;递归下载&#8221;。在递归下载的时候，wget遵循Robot  Exclusion标准(/robots.txt). wget可以在下载的同时，将链接转换成指向本地文件，以方便离线浏览。</p>
<p>wget非常稳定,它在带宽很窄的情况下和不稳定网络中有很强的适应性.如果是由于网络的原因下载失败，wget会不断的尝试，直到整个文件下载完 毕。如果是服务器打断下载过程，它会再次联到服务器上从停止的地方继续下载。这对从那些限定了链接时间的服务器上下载大文件非常有用。</p>
<h3>wget的常见用法</h3>
<p>wget的使用格式</p>
<pre class="example">Usage: wget [OPTION]... [URL]...</pre>
<ul>
<li>用wget做站点镜像:</li>
</ul>
<pre class="example">wget -r -p -np -k http://dsec.pku.edu.cn/~usr_name/
# 或者
wget -m http://www.tldp.org/LDP/abs/html/</pre>
<ul>
<li>在不稳定的网络上下载一个部分下载的文件，以及在空闲时段下载</li>
</ul>
<pre class="example">wget -t 0 -w 31 -c http://dsec.pku.edu.cn/BBC.avi -o down.log &amp;
# 或者从filelist读入要下载的文件列表
wget -t 0 -w 31 -c -B ftp://dsec.pku.edu.cn/linuxsoft -i filelist.txt -o down.log &amp;</pre>
<p>上面的代码还可以用来在网络比较空闲的时段进行下载。我的用法是:在mozilla中将不方便当时下载的URL链接拷贝到内存中然后粘贴到文件filelist.txt中，在晚上要出去系统前执行上面代码的第二条。</p>
<ul>
<li>使用代理下载</li>
</ul>
<pre class="example">wget -Y on -p -k https://sourceforge.net/projects/wvware/</pre>
<p>代理可以在环境变量或wgetrc文件中设定</p>
<pre class="example"># 在环境变量中设定代理
export PROXY=http://211.90.168.94:8080/
# 在~/.wgetrc中设定代理
http_proxy = http://proxy.yoyodyne.com:18023/
ftp_proxy = http://proxy.yoyodyne.com:18023/</pre>
<h3>wget各种选项分类列表</h3>
<ul>
<li>启动</li>
</ul>
<pre class="example">  -V,  --version           显示wget的版本后退出
  -h,  --help              打印语法帮助
  -b,  --background        启动后转入后台执行
  -e,  --execute=COMMAND   执行`.wgetrc'格式的命令，wgetrc格式参见/etc/wgetrc或~/.wgetrc</pre>
<ul>
<li>记录和输入文件</li>
</ul>
<pre class="example">  -o,  --output-file=FILE     把记录写到FILE文件中
  -a,  --append-output=FILE   把记录追加到FILE文件中
  -d,  --debug                打印调试输出
  -q,  --quiet                安静模式(没有输出)
  -v,  --verbose              冗长模式(这是缺省设置)
  -nv, --non-verbose          关掉冗长模式，但不是安静模式
  -i,  --input-file=FILE      下载在FILE文件中出现的URLs
  -F,  --force-html           把输入文件当作HTML格式文件对待
  -B,  --base=URL             将URL作为在-F -i参数指定的文件中出现的相对链接的前缀
       --sslcertfile=FILE     可选客户端证书
       --sslcertkey=KEYFILE   可选客户端证书的KEYFILE
       --egd-file=FILE        指定EGD socket的文件名</pre>
<ul>
<li>下载</li>
</ul>
<pre class="example">       --bind-address=ADDRESS   指定本地使用地址(主机名或IP，当本地有多个IP或名字时使用)
  -t,  --tries=NUMBER           设定最大尝试链接次数(0 表示无限制).
  -O   --output-document=FILE   把文档写到FILE文件中
  -nc, --no-clobber             不要覆盖存在的文件或使用.#前缀
  -c,  --continue               接着下载没下载完的文件
       --progress=TYPE          设定进程条标记
  -N,  --timestamping           不要重新下载文件除非比本地文件新
  -S,  --server-response        打印服务器的回应
       --spider                 不下载任何东西
  -T,  --timeout=SECONDS        设定响应超时的秒数
  -w,  --wait=SECONDS           两次尝试之间间隔SECONDS秒
       --waitretry=SECONDS      在重新链接之间等待1...SECONDS秒
       --random-wait            在下载之间等待0...2*WAIT秒
  -Y,  --proxy=on/off           打开或关闭代理
  -Q,  --quota=NUMBER           设置下载的容量限制
       --limit-rate=RATE        限定下载输率</pre>
<ul>
<li>目录</li>
</ul>
<pre class="example">  -nd  --no-directories            不创建目录
  -x,  --force-directories         强制创建目录
  -nH, --no-host-directories       不创建主机目录
  -P,  --directory-prefix=PREFIX   将文件保存到目录 PREFIX/...
       --cut-dirs=NUMBER           忽略 NUMBER层远程目录</pre>
<ul>
<li>HTTP 选项</li>
</ul>
<pre class="example">       --http-user=USER      设定HTTP用户名为 USER.
       --http-passwd=PASS    设定http密码为 PASS.
  -C,  --cache=on/off        允许/不允许服务器端的数据缓存 (一般情况下允许).
  -E,  --html-extension      将所有text/html文档以.html扩展名保存
       --ignore-length       忽略 `Content-Length'头域
       --header=STRING       在headers中插入字符串 STRING
       --proxy-user=USER     设定代理的用户名为 USER
       --proxy-passwd=PASS   设定代理的密码为 PASS
       --referer=URL         在HTTP请求中包含 `Referer: URL'头
  -s,  --save-headers        保存HTTP头到文件
  -U,  --user-agent=AGENT    设定代理的名称为 AGENT而不是 Wget/VERSION.
       --no-http-keep-alive  关闭 HTTP活动链接 (永远链接).
       --cookies=off         不使用 cookies.
       --load-cookies=FILE   在开始会话前从文件 FILE中加载cookie
       --save-cookies=FILE   在会话结束后将 cookies保存到 FILE文件中</pre>
<ul>
<li>FTP 选项</li>
</ul>
<pre class="example">  -nr, --dont-remove-listing   不移走 `.listing'文件
  -g,  --glob=on/off           打开或关闭文件名的 globbing机制
       --passive-ftp           使用被动传输模式 (缺省值).
       --active-ftp            使用主动传输模式
       --retr-symlinks         在递归的时候，将链接指向文件(而不是目录)</pre>
<ul>
<li>递归下载</li>
</ul>
<pre class="example">  -r,  --recursive          递归下载－－慎用!
  -l,  --level=NUMBER       最大递归深度 (inf 或 0 代表无穷).
       --delete-after       在现在完毕后局部删除文件
  -k,  --convert-links      转换非相对链接为相对链接
  -K,  --backup-converted   在转换文件X之前，将之备份为 X.orig
  -m,  --mirror             等价于 -r -N -l inf -nr.
  -p,  --page-requisites    下载显示HTML文件的所有图片</pre>
<ul>
<li>递归下载中的包含和不包含(accept/reject)</li>
</ul>
<pre class="example">  -A,  --accept=LIST                分号分隔的被接受扩展名的列表
  -R,  --reject=LIST                分号分隔的不被接受的扩展名的列表
  -D,  --domains=LIST               分号分隔的被接受域的列表
       --exclude-domains=LIST       分号分隔的不被接受的域的列表
       --follow-ftp                 跟踪HTML文档中的FTP链接
       --follow-tags=LIST           分号分隔的被跟踪的HTML标签的列表
  -G,  --ignore-tags=LIST           分号分隔的被忽略的HTML标签的列表
  -H,  --span-hosts                 当递归时转到外部主机
  -L,  --relative                   仅仅跟踪相对链接
  -I,  --include-directories=LIST   允许目录的列表
  -X,  --exclude-directories=LIST   不被包含目录的列表
  -np, --no-parent                  不要追溯到父目录</pre>
<h3>问题</h3>
<p>在递归下载的时候，遇到目录中有中文的时候，wget创建的本地目录名会用URL编码规则处理。如&#8221;天网防火墙&#8221;会被存为&#8221;%CC%EC%CD%F8%B7%C0%BB%F0%C7%BD&#8221;,这造成阅读上的极大不方便。<br />
<h3 class="bsuite_related">Related items</h3>
<ul class="bsuite_related">
<li><a href='http://www.pkphp.com/2008/08/30/520zuixin-com-linux-secure-iptables/'>如何防止服务器被暴力破解密码？</a></li>
<li><a href='http://www.pkphp.com/2008/08/29/webalizer-%e5%ae%89%e8%a3%85%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/'>Webalizer 安装使用指南</a></li>
<li><a href='http://www.pkphp.com/2008/08/11/ubuntu%e4%b8%8b%e5%ae%89%e8%a3%85-apachephpmysql%e6%96%87%e6%9c%ac%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%81/'>Ubuntu下安装 apache+php+mysql文本服务器！</a></li>
<li><a href='http://www.pkphp.com/2011/04/07/centos-iftop/'>centOS带宽实时流量查看工具</a></li>
<li><a href='http://www.pkphp.com/2010/01/25/svn-report-svn-vcc-default/'>svn: REPORT 请求“/!svn/vcc/default”失败 解决办法</a></li>
</ul>
<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget 下载 大文件" style="font-size: 13px;">wget 下载 大文件</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget文件名" style="font-size: 13px;">wget文件名</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget 使用" style="font-size: 13px;">wget 使用</a>(3)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget 转换 php" style="font-size: 13px;">wget 转换 php</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget 中文" style="font-size: 13px;">wget 中文</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget 离线浏览 php mysql" style="font-size: 13px;">wget 离线浏览 php mysql</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget 编码" style="font-size: 13px;">wget 编码</a>(3)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget文件列表" style="font-size: 13px;">wget文件列表</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget 文件列表" style="font-size: 13px;">wget 文件列表</a>(6)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wgetrc 指定proxy" style="font-size: 13px;">wgetrc 指定proxy</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget 下载 失败" style="font-size: 13px;">wget 下载 失败</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget cookie file" style="font-size: 13px;">wget cookie file</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="taobao post wget" style="font-size: 13px;">taobao post wget</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget 大文件" style="font-size: 13px;">wget 大文件</a>(1)<a href="http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/" title="wget" style="font-size: 13px;">wget</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%2F08%2F29%2Fwebalizer-%25E5%25AE%2589%25E8%25A3%2585%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F23%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Webalizer 安装使用指南</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%2F12%2F20%2Fwget%25E5%25B8%25B8%25E7%2594%25A8%25E5%2591%25BD%25E4%25BB%25A4%25E4%25BB%258B%25E7%25BB%258D%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F23%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wget常用命令介绍</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.pkphp.com%2F2008%2F08%2F11%2Fubuntu%25E4%25B8%258B%25E5%25AE%2589%25E8%25A3%2585-apachephpmysql%25E6%2596%2587%25E6%259C%25AC%25E6%259C%258D%25E5%258A%25A1%25E5%2599%25A8%25EF%25BC%2581%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F23%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Ubuntu下安装 apache+php+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%2F08%2F30%2F520zuixin-com-linux-secure-iptables%2F&from=http%3A%2F%2Fwww.pkphp.com%2F2008%2F06%2F23%2Fwget-%25E4%25BD%25BF%25E7%2594%25A8%25E6%258C%2587%25E5%258D%2597%2F" rel="nofollow">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">如何防止服务器被暴力破解密码？</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件" rel="nofollow">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.pkphp.com/2008/06/23/wget-%e4%bd%bf%e7%94%a8%e6%8c%87%e5%8d%97/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

