部署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
。