﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-ACFirst-随笔分类-Heritrix</title><link>http://www.cppblog.com/zzfmars/category/15109.html</link><description>行胜于言，孤行无益，思为行先。有所为，有所不为。进如登，退如崩，坚持才能成长。</description><language>zh-cn</language><lastBuildDate>Thu, 07 Oct 2010 14:36:44 GMT</lastBuildDate><pubDate>Thu, 07 Oct 2010 14:36:44 GMT</pubDate><ttl>60</ttl><item><title>Heritrix-1.14.1怎么配置?</title><link>http://www.cppblog.com/zzfmars/archive/2010/10/07/128956.html</link><dc:creator>Kevin_Zhang</dc:creator><author>Kevin_Zhang</author><pubDate>Thu, 07 Oct 2010 14:24:00 GMT</pubDate><guid>http://www.cppblog.com/zzfmars/archive/2010/10/07/128956.html</guid><wfw:comment>http://www.cppblog.com/zzfmars/comments/128956.html</wfw:comment><comments>http://www.cppblog.com/zzfmars/archive/2010/10/07/128956.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/zzfmars/comments/commentRss/128956.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/zzfmars/services/trackbacks/128956.html</trackback:ping><description><![CDATA[<span class=Apple-style-span style="WORD-SPACING: 0px; FONT: medium Simsun; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"><span class=Apple-style-span style="FONT-SIZE: 14px; LINE-HEIGHT: 22px; FONT-FAMILY: Arial">
<pre style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 14px; PADDING-BOTTOM: 0px; MARGIN: 0px; LINE-HEIGHT: 22px; PADDING-TOP: 0px; ZOOM: 1; FONT-FAMILY: Arial; WORD-WRAP: break-word">1.下载heritrix-1.14.1.zip和heritrix-1.14.1.src 并解压，解压heritrix-1.14.1.jar.
2.在eclipse下创建java project,命名为比如heritrix，进入其工程的目录，我的是F:\workspace\myeclipse\heritrix，删除src文件夹。
3.copy解压后的heritrix-1.14.1.zip文件夹下的lib，webapps，heritrix-1.14.1到F:\workspace\myeclipse\heritrix目录下，并删除F:\workspace\myeclipse\heritrix\heritrix-1.14.1目录下的org和st两个文件夹。
copy解压后的heritrix-1.14.1.src 文件夹下的heritrix-1.14.1\src\java下的org和st两个文件夹到F:\workspace\myeclipse\heritrix\heritrix-1.14.1\目录下
4.修改heritrix-1.14.1文件夹名称为src
5.修改src\heritrix.properties文件中的heritrix.cmdline.admin = 为 heritrix.cmdline.admin = admin:sun,这个就是要设置你的用户名和密码，可以随便，中间是冒号。
6.刷新工程，把lib下的jar包全部添加到工程中，即点击heritrix工程，右键属性---java build path---libraries--- add jars选择heritrix工程下lib所有jar。
7.运行org.archive.crawler.Heritrix类，在地址栏输入<a style="COLOR: rgb(38,28,220)" href="http://localhost:8080/" target=_blank><u>http://localhost:8080/</u></a>
OK!就是这么简单！ </pre>
转</span></span>自：<a href="http://zhidao.baidu.com/question/72080439.html">http://zhidao.baidu.com/question/72080439.html</a> 
<img src ="http://www.cppblog.com/zzfmars/aggbug/128956.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/zzfmars/" target="_blank">Kevin_Zhang</a> 2010-10-07 22:24 <a href="http://www.cppblog.com/zzfmars/archive/2010/10/07/128956.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>