部署ElasticJob-Lite-UI
- 下载链接,博主下载目前最新版的
(和ElasticJob-Lite-UI
版本一致)。ElasticJob‐Lite
使用
Xftp
上传压缩包到虚拟机上(该项目需要
JDK
环境,这个很简单,自行百度)。
解压:
tar -zxvf apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin.tar.gz
查看配置文件:
[root@localhost ~]# cd /usr/local/
[root@localhost local]# cd apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin
[root@localhost apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin]# cd conf
[root@localhost conf]# ll
总用量 8
-rw-r--r--. 1 501 games 1106 7月 10 21:59 application.properties
-rw-r--r--. 1 501 games 1322 7月 10 21:59 logback.xml
[root@localhost conf]# vim application.properties
启动服务:
[root@localhost conf]# cd ../bin
[root@localhost bin]# ll
总用量 12
-rwxr-xr-x. 1 501 games 1439 7月 10 21:59 start.bat
-rwxr-xr-x. 1 501 games 1782 7月 10 21:59 start.sh
-rwxr-xr-x. 1 501 games 1442 7月 10 21:59 stop.sh
[root@localhost bin]# ./start.sh
Starting the ShardingSphere-ElasticJob-UI ...
Please check the STDOUT file: /usr/local/apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin/logs/stdout.log
访问
UI
管理界面,登陆账号(这里登陆
root
账号),默认只提供了
root
超级管理员账号和
guest
账号,
root
账号有所有操作权限,
guest
账号只有浏览权限。
注册中心
添加注册中心。
- ZooKeeper汇总
连接注册中心。
查看作业,可以对它们进行操作。
查看执行作业的节点。
事件追踪数据源
这里使用
Mysql 8
作为事件追踪数据源,首先将
Mysql 8
的连接
jar
包(博主的本地
maven
仓库中)上传到项目的
ext-lib
目录下。
重新启动项目。
[root@localhost bin]# ./stop.sh
Stopping the ShardingSphere-ElasticJob-UI ....OK!
PID: 1349
[root@localhost bin]# ./start.sh
Starting the ShardingSphere-ElasticJob-UI ...
Please check the STDOUT file: /usr/local/apache-shardingsphere-elasticjob-3.0.0-lite-ui-bin/logs/stdout.log
添加事件追踪数据源。
jdbc:mysql://localhost:3306/trace?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
连接事件追踪数据源。
查看
Job trace
。
查看
History status
。