---
title: "Heritrix学习及部署（一）"
author: "koreyoshi"
date: "2014-10-05T12:56:05Z"
tags: ["heritrix"]
categories: ["互联网"]
slug: "heritrix"
draft: false
lastmod: "2014-10-05T13:47:59Z"
id: 2124714
url: "https://koreyoshi.iteye.com/blog/2124714"
---

下载地址------>
linux版本:http://download.csdn.net/detail/zzj1990/8003861
windows版本:http://download.csdn.net/detail/zzj1990/8003789
-------------------------部署步骤 start---------------------------
1.下载相应的zip包 解压到D:\heritrix\
2.进入c:/heritrix/conf复制文件jmxremote.password.template到c:/heritrix下并把文件重新命名为jmxremote.password，
然后修改其内容为下：
monitorRole @password@ 全部替换为 monitorRole admin
controlRole @password@ 全部替换为 controlRole shi
并设置文件jmxremote.password的属性为只读
3.进入c:/heritrix/conf打开文件heritrix.properties，修改其中的几项key-value值
heritrix.cmdline.admin = admin:123456789(用户名：密码)
heritrix.cmdline.port = 8080 (heritrix服务器默认端口号8080,保证该端口不被占用就不用改了)
这里普及下：win7 查看端口命令  netstat -ano 可以用netstat  /help查看命令
4.打开cmd，切换目录到c:/heritrix/bin
然后敲入命令：heritrix --admin=admin:123456789

-------------------------部署步骤 end---------------------------




