eclipse配置heritrix环境

      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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值