部署elastic job lite console

打个小guang告,搜索拼duoduo店铺: Boush杂货铺
物美价廉,你值得拥有

elastic-job的elastic-job-lite-console部署

公司项目用到了elastic job,自己可以在本地搭建zookeeper,并部署elastic-job-lite-console,这样方便自己在本地调试

准备工作

  • 1、安装jdk,maven,下载elastic-job源码
elastic job 官网:http://elasticjob.io/index_zh.html
地址:https://github.com/dangdangdotcom/elastic-job
托管在码云的源码:https://gitee.com/elasticjob/elastic-job

  • 2、maven编译安装

    我在ubuntu编译一直报错,也不知道是什么原因,在windows中编译就成功了,在下载的源码目录下执行如下代码,直到编译成功

mvn clean install -Dmaven.test.skip=true
  • 3、启动
    在该路径下elastic-job\elastic-job-lite\elastic-job-lite-console\target\找到elastic-job-lite-console-3.0.0.M1-SNAPSHOT.tar.gz,解压缩,bin目录下是启动脚本,start.bat是windows的启动脚本,start.sh是linux的启动脚本,启动后,浏览器输入localhost:8899,用户名密码默认都为root

  • 4、备注

    由于在window编译的缘故,在start.sh脚本的每一行末尾都加上了^M,在ubuntu下执行的时候会报错,在vim编辑器中,按住 " shift + : " 进入vim的编辑模式,输入“ %s/\r//g”,然后按 " Enter "键,这样脚本就可以执行了

参考:
1、http://blog.csdn.net/u013274055/article/details/77767506?locationNum=5&fps=1

2、https://jingyan.baidu.com/article/19020a0a041d61529d28423d.html

猜你喜欢

转载自blog.csdn.net/godloveleo9527/article/details/79633522
今日推荐