1、下载elastic-job源码
https://github.com/elasticjob/elastic-job-lite
1.1下载zip包:
elastic-job-lite-dev.zip
1.2解压
2、maven编译安装
进入到elastic-job目录elastic-job-lite-dev\elastic-job-lite-dev,按住Shift+鼠标右键,选择“在此处打开命令窗口(W)”,执行如下命令:
mvn clean install package '-Dmaven.test.skip=true'
或使用 cmd 进入命令行执行:
mvn clean install package -Dmaven.test.skip=true
等待便于完成:
3、解压打包好的zip文件
路径:elastic-job-lite-dev\elastic-job-lite-dev\elastic-job-lite-console\target\elastic-job-lite-console-3.0.0.M1-SNAPSHOT.tar.gz
目录下是启动脚本:elastic-job-lite-dev\elastic-job-lite-dev\elastic-job-lite-console\target\elastic-job-lite-console-3.0.0.M1-SNAPSHOT\elastic-job-lite-console-3.0.0.M1-SNAPSHOT\bin
windows环境用:
start.bat
linux环境用:
start.sh
4、配置的用户名和密码
elastic-job-lite-console-3.0.0.M1-SNAPSHOT\conf目录下是配置文件auth.properties,配置的用户名和密码
root.username=root
root.password=root
guest.username=guest
guest.password=guest
5、启动
5.1 windows环境启动
以windows环境为例,双击start.bat启动
5.2 启动端口8899
5.2 访问
访问:localhost:8899 ,登录用户名:root,密码:root
添加配置中心
作业维度