1.下载Heritrix-1.14.4.zip和Heritrix-1.14.4-src.zip两个文件http://sourceforge.net/projects/archive-crawler/files/archive- crawler%20%28heritrix%201.x%29/1.14.4/
2.解压文件,分别命名为Heritrix-1.14.4和Heritrix-1.14.4-src(方便记忆)
3.在eclipse下面新建一个java project命名为heritrix
4.将Heritrix-1.14.4-src/src/java 中的文件com、org、st导入到项目heritrix的src目录下
5.将Heritrix-1.14.4-src/src中的文件conf、resources导入到项目heritrix的根目录下
6.将Heritrix-1.14.4下的lib、webapps导入到根目录下
7.将lib下的包加到classpath上。
8.修改heritrix.properties下的配置如:
# Version is filled in by the maven.xml pregoal. It copies here the project
# currentVersion property.
heritrix.version = @14.4.0@
# Location of the heritrix jobs directory.
heritrix.jobsdir = jobs
# Default commandline startup values.
# Below values are used if unspecified on the command line.
heritrix.cmdline.admin = admin:admin//原来是空值
heritrix.cmdline.port = 8088 //原来是8080
heritrix.cmdline.run = false
heritrix.cmdline.nowui = false
heritrix.cmdline.order =
##############################################################################
# LOGGING
##############################################################################
9.运行src/org.archive.crawler/Heritrix.java
10.浏览器登陆127.0.0.1:8088
11.要想等到mirror需要将modules下的Select Writers项中的org.archive.crawler.writer.ARCWriterProcessor改为
org.archive.crawler.writer.MirrorWriterProcessor |