大概步骤:
在终端拉取代码:git clone https://github.com/apache/shardingsphere-elasticjob-ui.git
或者在idea上操作
2、 在idea配置好maven(需要3.6以上的版本)、jdk;
3、在idea打开Terminal执行命令:mvn clean package -Prelease
这一步比较耗时
然后我们所需要的elasticjob-console压缩包在这个位置:
shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/target/apache-shardingsphere-elasticjob-3.1.0-SNAPSHOT-lite-ui-bin.tar.gz
4、解压apache-shardingsphere-elasticjob-3.1.0-SNAPSHOT-lite-ui-bin.tar.gz到指定目录
5、修改conf/application.properties,修改默认端口号、默认密码
6、window系统双击start.bat, linux、macOS执行sh start.sh
7、访问http://127.0.0.1:8899/,到这里就OK了!
8、存在一个问题,跟之前的版本一样,当某一个job每隔5分钟、1小时、1天或者更久执行一次时,等待分片没有触发按钮,这时候我们无法手动触发,部署的job无法及时验证
shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/operation-jobs/module/operationJobs.vue
解决方法:去掉第78行代码,然后按照上面的步骤重新构建打包