(以下说明是在windows平台操作的)
下载heritrix-1.14.4,解压,修改conf/heritrix.properties, 设置好jmxremote.password相关信息,在bin目录下写个简单的批处理脚本start.bat,用来启动heritrix,内容如下:
heritrix.cmd --admin=admin:admin
其中amin:admin为在配置文件中设置的登录用户名及密码。
接着双击start.bat,满怀期望地等待heritrix的成功启动,不料想等来了以下的错误:
Heritrix failed to start properly. Possible causes:
- Login and password have not been specified (see --admin switch)
- another program uses the port for the web UI (8080 by default)
(e.g. another Heritrix instance)
- JMX password file is missing or permissions not set correctly
排查,发现8080服务真的给占用了。可以直接修改conf/properties里面的属性,把8080改为其它端口。我这里直接把其它服务的端口给改了,并关闭该服务。接着再次双击start.bat,还是报以上的错误。登录账号和密码是没问题了,端口也没问题了,只能怀疑"JMX password file is missing or permissions not set