【问题标题】:how to configure nutch 1.8 in windows error: nutch : command not found如何在 Windows 中配置 nutch 1.8 错误:nutch : command not found
【发布时间】:2014-06-13 14:17:32
【问题描述】:

我正在尝试在 Windows 7 中配置 nutch,我已按照以下步骤操作

我已经下载并解压了 apache nutch 1.8, 我已经在 conf/nutch-site.xml 中指定了代理名称,例如

<configuration>
<property>
 <name>http.agent.name</name>
 <value>My Nutch Spider</value>
</property>
</configuration>

并且在 apache home follwing 命令中我做了 ->

mkdir -p 网址

光盘网址

touch seed.txt --> 在 urls/ 下创建一个文本文件 seed.txt,其内容如下(对于您希望 Nutch 抓取的每个站点,每行一个 URL)。

nutch.apache.org/

在 conf/regex-urlfilter.txt 中编辑 --> +^([a-z0-9]*.)*nutch.apache.org/

但是当我在做的时候在bin里

bin/nutch 抓取网址 -dir crawl -depth 3 -topN 5

发生错误 -> bash: nutch: command not found

为什么?

【问题讨论】:

    标签: apache nutch


    【解决方案1】:

    Nutch 脚本是为 linux 环境编写的。

    您可能会使用它(尽管它似乎需要完成更多工作):

    https://github.com/veggen/nutch-windows-script

    或者按照这里的建议设置 Cygwin:

    http://wiki.apache.org/nutch/GettingNutchRunningWithWindows

    【讨论】:

      猜你喜欢
      • 2020-09-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多