[学习笔记]ElasticJob-UI

1,376 阅读1分钟

ElasticJob-UI 是 ElasticJob 的管理控制台,包含了动态配置、作业管控等功能。 本项目包括两部分:

shardingsphere-elasticjob-lite-ui:ElasticJob-Lite 管控端
shardingsphere-elasticjob-cloud-ui:ElasticJob-Cloud 管控端

ps:老版本中后端管理控制台是shardingsphere-elasticjob-lite-console项目,新版本替换为shardingsphere-elasticjob-lite-ui

下载源码

#从github中下载ui项目
git clone https://github.com/apache/shardingsphere-elasticjob-ui.git
cd shardingsphere-elasticjob-ui/
#编译
mvn clean package -Prelease -Darguments="-DskipTests"

编译过程中可能会失败原因因为shardingsphere-elasticjob-lite-ui-frontend & shardingsphere-elasticjob-cloud-ui-frontend 模块基于 vue, 并使用其相关 UI 工具包 element 开发。所以可能是node环境问题。

部署

从 shardingsphere-elasticjob-ui/shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/target/apache-shardingsphere-${latest.release.version}-shardingsphere-elasticjob-lite-ui-bin.tar.gz 中获取 lite 软件包。

#解压压缩包
tar -xvzf apache-shardingsphere-${latest.release.version}-shardingsphere-elasticjob-lite-ui-bin.tar.gz
#

运行

解压之后直接运行即可,项目端口号课在配置文件中自行修改。默认端口号:8899