【问题标题】:Running a web-spider on Java在 Java 上运行 web-spider
【发布时间】:2013-12-25 20:09:42
【问题描述】:

在 Windovs 8.1 64 位上启动网络蜘蛛。试图不连接额外的库,最终爬错了。

C:\Users\I>cd c:\Users\i\Desktop\heritrix-1.14.4

c:\Users\I\Desktop\heritrix-1.14.4>cd bin

c:\Users\I\Desktop\heritrix-1.14.4\bin>heritrix.cmd
You have to specify either a username and password for the
web interface or start Heritrix without the web ui.

Example: heritrix.cmd --admin=admin:letmein
         heritrix.cmd --nowui myOrder.xml

c:\Users\I\Desktop\heritrix-1.14.4\bin>extractor
Error: Password file not found: \Users\I\Desktop\heritrix-1.14.4\jmxremote.password

c:\Users\I\Desktop\heritrix-1.14.4\bin>heritrix.cmd
You have to specify either a username and password for the
web interface or start Heritrix without the web ui.

Example: heritrix.cmd --admin=admin:letmein
         heritrix.cmd --nowui myOrder.xml

c:\Users\I\Desktop\heritrix-1.14.4\bin>

我应该在哪里输入密码并登录?

【问题讨论】:

  • c:\Users\I\Desktop\heritrix-1.14.4\bin>heritrix --admin=LOGIN:PASSWORD 警告:目前无法在 Windows 的后台运行 Heritrix。它刚刚开始在新窗口中最小化,并且在您注销后将立即关闭。 10.12.2013 16:13:09,88 启动 heritrix Heritrix 无法正常启动。可能的原因: - 未指定登录名和密码(请参阅 --admin 开关) - 另一个程序使用 Web UI 的端口(默认为 8080)(例如另一个 Heritrix 实例) - JMX 密码文件丢失或权限设置不正确
  • JMX 权限文件丢失。可以在 \Users\I\Desktop\heritrix-1.14.4\conf\jmxremote.password.template 中找到模板。将其复制到 \Users\I\Desktop\heritrix-1.14.4\jmxremote.password 并编辑文件末尾的密码。然后,确保文件被读取限制为只有 Heritrix Java VM 将运行的用户。

标签: java windows web web-crawler heritrix


【解决方案1】:

简单试试

heritrix --admin=LOGIN:PASSWORD

【讨论】:

    猜你喜欢
    • 2010-10-12
    • 2014-10-06
    • 2020-09-26
    • 2015-07-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-17
    • 1970-01-01
    相关资源
    最近更新 更多