2013-12-08 43 views
1

在Windovs 8.1 64位上启动web spider。试图不连接额外的库,并最终爬错了。在Java上运行web-spider

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> 

什么和我应该在哪里输入密码和登录?

+0

C:\用户\我:\桌面\ Heritrix的-1.14.4 \ BIN> Heritrix的--admin =登录名:密码 警告:这是目前无法在后台运行 Heritrix的在Windows上。它刚刚开始在新窗口 中最小化,并且在您注销后立即关闭。 10.12.2013 16:13:09,88启动heritrix Heritrix无法正常启动。可能的原因: - 未指定登录名和密码(请参阅--admin开关) - 另一个程序使用Web用户界面的端口(默认为8080) (例如另一个Heritrix实例) - 缺少JMX密码文件或权限设置不正确 – user3057645

+0

缺少JMX权限文件。可以在 \ Users \ I \ Desktop \ heritrix-1.14.4 \ conf \ jmxremote.password.template中找到模板。 将其复制到 \ Users \ I \ Desktop \ heritrix-1.14.4 \ jmxremote.password 并在文件末尾编辑密码。然后,确保 该文件被限制为只读Heritrix Java VM将运行的用户。 – user3057645

回答

-1

尽量简单

heritrix --admin=LOGIN:PASSWORD 
+0

在Windows上不起作用。 – Suriyaa