代码拉取完成,页面将自动刷新
同步操作将从 小螺旋丸/srt-data 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
datax-cloud-pro -- 后端工程
├── datax-ui-pro -- 前端工程[9528]
├── datax-eureka -- 注册中心[8610]
├── datax-config -- 配置中心[8611]
├── datax-gateway -- Spring Cloud Gateway网关[8612]
├── datax-auth -- 授权服务提供[8613]
├── datax-common -- 系统公共模块
├ ├── datax-common-core -- 公共工具类核心包
├ ├── datax-common-database -- 数据库相关工具类包
├ ├── datax-common-log -- 日志服务类包
├ ├── datax-common-mybatis -- 数据源类包
├ ├── datax-common-office -- word工具类包
├ ├── datax-common-rabbitmq -- rabbitmq消息队列类包
├ ├── datax-common-redis -- redis类包
├ ├── datax-common-security -- 安全工具类包
├── datax-modules -- 业务模块
├ ├── codegen-service-parent -- 后端代码生成管理模块[8830]
├ ├── data-market-service-parent -- 数据集市管理模块[8822]
├ ├── data-masterdata-service-parent -- 主数据管理模块[8828]
├ ├── data-metadata-service-parent -- 元数据管理模块[8820]
├ ├── data-quality-service-parent -- 数据质量管理模块[8826]
├ ├── data-standard-service-parent -- 数据标准管理模块[8825]
├ ├── data-visual-service-parent -- 可视化管理模块[8827]
├ ├── email-service-parent -- 邮件管理模块[8812]
├ ├── file-service-parent -- 文件管理模块[8811]
├ ├── quartz-service-parent -- 定时任务管理模块[8813]
├ ├── system-service-parent -- 平台基础设置管理模块[8810]
├ ├── workflow-service-parent -- 流程管理模块[8814]
└── datax-tools -- 图形化模块
├ ├── datax-tool-monitor -- Spring Boot Admin监控 [8711]
数据库版本为 mysql5.7 及以上版本
依次创建以下数据库: data_cloud data_cloud_flowable data_cloud_quartz foodmart2 robot 字符集:utf8mb4 排序规则:utf8mb4_general_ci
数据库创建完毕,导入 db 文件夹下的 sql 脚本 即可完成数据库初始化
修改 datax-config 配置中心 config 文件夹下的配置文件,把 redis,mysql 和 rabbitmq 的配置信息改成自己的
把系统导入 idea 中,等待 maven 依赖下载完毕,在项目根目录下执行 mvn install,install 完毕后可以获取到各个模块的 jar 包,上传到服务器的同一个文件夹,依次执行即可,部署脚本在 sh 目录下,内容如下(服务较多,一台服务器内存可能不够用,可考虑分开部署,自行修改脚本):
#!/bin/sh
# eureka 注册中心
dataxEureka=./datax-eureka.jar
# config 配置中心
dataxConfig=./datax-config.jar
# gateway 网关
dataxGateway=./datax-gateway.jar
# oauth2 认证服务
dataxAuth=./datax-auth.jar
# 系统服务
systemService=./system-service.jar
# 任务调度服务
quartzService=./quartz-service.jar
# 工作流服务
workflowService=./workflow-service.jar
# 元数据服务
metadataService=./data-metadata-service.jar
# 元数据 sql 控制台服务
metadataConsoleService=./data-metadata-service-console.jar
# 数据标准服务
standardService=./data-standard-service.jar
# 数据质量服务
qualityService=./data-quality-service.jar
# 数据集市数据集服务
marketService=./data-market-service.jar
# 数据集市接口映射服务
marketServiceMapping=./data-market-service-mapping.jar
# 数据集市数据集成服务
marketServiceIntegration=./data-market-service-integration.jar
# 主数据服务
masterdataService=./data-masterdata-service.jar
# 可视化服务
visualService=./data-visual-service.jar
case "$1" in
start)
echo "--------dataxEureka 开始启动--------------"
nohup java -jar $dataxEureka >/dev/null 2>&1 &
dataxEurekaPid=`ps -ef|grep $dataxEureka |grep -v grep|awk '{print $2}'`
until [ -n "$dataxEurekaPid" ]
do
dataxEurekaPid=`ps -ef|grep $dataxEureka |grep -v grep|awk '{print $2}'`
done
echo "dataxEurekaPid is $dataxEurekaPid"
echo "--------dataxEureka 启动成功--------------"
sleep 30
echo "--------dataxConfig 开始启动--------------"
nohup java -jar $dataxConfig >/dev/null 2>&1 &
dataxConfigPid=`ps -ef|grep $dataxConfig |grep -v grep|awk '{print $2}'`
until [ -n "$dataxConfigPid" ]
do
dataxConfigPid=`ps -ef|grep $dataxConfig |grep -v grep|awk '{print $2}'`
done
echo "dataxConfigPid is $dataxConfigPid"
echo "--------dataxConfig 启动成功--------------"
sleep 30
echo "--------dataxGateway 开始启动--------------"
nohup java -jar $dataxGateway >/dev/null 2>&1 &
dataxGatewayPid=`ps -ef|grep $dataxGateway |grep -v grep|awk '{print $2}'`
until [ -n "$dataxConfigPid" ]
do
dataxGatewayPid=`ps -ef|grep $dataxGateway |grep -v grep|awk '{print $2}'`
done
echo "dataxGatewayPid is $dataxGatewayPid"
echo "--------dataxGateway 启动成功--------------"
sleep 30
echo "--------dataxAuth 开始启动--------------"
nohup java -jar $dataxAuth >/dev/null 2>&1 &
dataxAuthPid=`ps -ef|grep $dataxAuth |grep -v grep|awk '{print $2}'`
until [ -n "$dataxAuthPid" ]
do
dataxAuthPid=`ps -ef|grep $dataxAuth |grep -v grep|awk '{print $2}'`
done
echo "dataxAuthPid is $dataxAuthPid"
echo "--------dataxAuth 启动成功--------------"
echo "--------systemService 开始启动--------------"
nohup java -jar $systemService >/dev/null 2>&1 &
systemServicePid=`ps -ef|grep $systemService |grep -v grep|awk '{print $2}'`
until [ -n "$systemServicePid" ]
do
systemServicePid=`ps -ef|grep $systemService |grep -v grep|awk '{print $2}'`
done
echo "systemServicePid is $systemServicePid"
echo "--------systemService 启动成功--------------"
echo "--------quartzService 开始启动--------------"
nohup java -jar $quartzService >/dev/null 2>&1 &
quartzServicePid=`ps -ef|grep $quartzService |grep -v grep|awk '{print $2}'`
until [ -n "$quartzServicePid" ]
do
quartzServicePid=`ps -ef|grep $quartzService |grep -v grep|awk '{print $2}'`
done
echo "quartzServicePid is $quartzServicePid"
echo "--------quartzService 启动成功--------------"
echo "--------workflowService 开始启动--------------"
nohup java -jar $workflowService >/dev/null 2>&1 &
workflowServicePid=`ps -ef|grep $workflowService |grep -v grep|awk '{print $2}'`
until [ -n "$workflowServicePid" ]
do
workflowServicePid=`ps -ef|grep $workflowService |grep -v grep|awk '{print $2}'`
done
echo "workflowServicePid is $workflowServicePid"
echo "--------workflowService 启动成功--------------"
echo "--------metadataService 开始启动--------------"
nohup java -jar $metadataService >/dev/null 2>&1 &
metadataServicePid=`ps -ef|grep $metadataService |grep -v grep|awk '{print $2}'`
until [ -n "$metadataServicePid" ]
do
metadataServicePid=`ps -ef|grep $metadataService |grep -v grep|awk '{print $2}'`
done
echo "metadataServicePid is $metadataServicePid"
echo "--------metadataService 启动成功--------------"
echo "--------metadataConsoleService 开始启动--------------"
nohup java -jar $metadataConsoleService >/dev/null 2>&1 &
metadataConsoleServicePid=`ps -ef|grep $metadataConsoleService |grep -v grep|awk '{print $2}'`
until [ -n "$metadataConsoleServicePid" ]
do
metadataConsoleServicePid=`ps -ef|grep $metadataConsoleService |grep -v grep|awk '{print $2}'`
done
echo "metadataConsoleServicePid is $metadataConsoleServicePid"
echo "--------metadataConsoleService 启动成功--------------"
echo "--------standardService 开始启动--------------"
nohup java -jar $standardService >/dev/null 2>&1 &
standardServicePid=`ps -ef|grep $standardService |grep -v grep|awk '{print $2}'`
until [ -n "$standardServicePid" ]
do
standardServicePid=`ps -ef|grep $standardService |grep -v grep|awk '{print $2}'`
done
echo "standardServicePid is $standardServicePid"
echo "--------standardService 启动成功--------------"
echo "--------qualityService 开始启动--------------"
nohup java -jar $qualityService >/dev/null 2>&1 &
qualityServicePid=`ps -ef|grep $qualityService |grep -v grep|awk '{print $2}'`
until [ -n "$qualityServicePid" ]
do
qualityServicePid=`ps -ef|grep $qualityService |grep -v grep|awk '{print $2}'`
done
echo "qualityServicePid is $qualityServicePid"
echo "--------qualityService 启动成功--------------"
echo "--------marketService 开始启动--------------"
nohup java -jar $marketService >/dev/null 2>&1 &
marketServicePid=`ps -ef|grep $marketService |grep -v grep|awk '{print $2}'`
until [ -n "$marketServicePid" ]
do
marketServicePid=`ps -ef|grep $marketService |grep -v grep|awk '{print $2}'`
done
echo "marketServicePid is $marketServicePid"
echo "--------marketService 启动成功--------------"
sleep 30
echo "--------marketServiceMapping 开始启动--------------"
nohup java -jar $marketServiceMapping >/dev/null 2>&1 &
marketServiceMappingPid=`ps -ef|grep $marketServiceMapping |grep -v grep|awk '{print $2}'`
until [ -n "$marketServiceMappingPid" ]
do
marketServiceMappingPid=`ps -ef|grep $marketServiceMapping |grep -v grep|awk '{print $2}'`
done
echo "marketServiceMappingPid is $marketServiceMappingPid"
echo "--------marketServiceMapping 启动成功--------------"
echo "--------marketServiceIntegration 开始启动--------------"
nohup java -jar $marketServiceIntegration >/dev/null 2>&1 &
marketServiceIntegrationPid=`ps -ef|grep $marketServiceIntegration |grep -v grep|awk '{print $2}'`
until [ -n "$marketServiceIntegrationPid" ]
do
marketServiceIntegrationPid=`ps -ef|grep $marketServiceIntegration |grep -v grep|awk '{print $2}'`
done
echo "marketServiceIntegrationPid is $marketServiceIntegrationPid"
echo "--------marketServiceIntegration 启动成功--------------"
echo "--------masterdataService 开始启动--------------"
nohup java -jar $masterdataService >/dev/null 2>&1 &
masterdataServicePid=`ps -ef|grep $masterdataService |grep -v grep|awk '{print $2}'`
until [ -n "$masterdataServicePid" ]
do
masterdataServicePid=`ps -ef|grep $masterdataService |grep -v grep|awk '{print $2}'`
done
echo "masterdataServicePid is $masterdataServicePid"
echo "--------masterdataService 启动成功--------------"
echo "--------visualService 开始启动--------------"
nohup java -jar $visualService >/dev/null 2>&1 &
visualServicePid=`ps -ef|grep $visualService |grep -v grep|awk '{print $2}'`
until [ -n "$visualServicePid" ]
do
visualServicePid=`ps -ef|grep $visualService |grep -v grep|awk '{print $2}'`
done
echo "visualServicePid is $visualServicePid"
echo "--------visualService 启动成功--------------"
;;
stop)
P_ID=`ps -ef|grep $dataxEureka |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===dataxEureka process not exists or stop success"
else
kill -9 $P_ID
echo "dataxEureka killed success"
fi
P_ID=`ps -ef|grep $dataxConfig |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===dataxConfig process not exists or stop success"
else
kill -9 $P_ID
echo "dataxConfig killed success"
fi
P_ID=`ps -ef|grep $dataxGateway |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===dataxGateway process not exists or stop success"
else
kill -9 $P_ID
echo "dataxGateway killed success"
fi
P_ID=`ps -ef|grep $dataxAuth |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===dataxAuth process not exists or stop success"
else
kill -9 $P_ID
echo "dataxAuth killed success"
fi
P_ID=`ps -ef|grep $systemService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===systemService process not exists or stop success"
else
kill -9 $P_ID
echo "systemService killed success"
fi
P_ID=`ps -ef|grep $quartzService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===quartzService process not exists or stop success"
else
kill -9 $P_ID
echo "quartzService killed success"
fi
P_ID=`ps -ef|grep $workflowService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===workflowService process not exists or stop success"
else
kill -9 $P_ID
echo "workflowService killed success"
fi
P_ID=`ps -ef|grep $metadataService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===metadataService process not exists or stop success"
else
kill -9 $P_ID
echo "metadataService killed success"
fi
P_ID=`ps -ef|grep $metadataConsoleService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===metadataConsoleService process not exists or stop success"
else
kill -9 $P_ID
echo "metadataConsoleService killed success"
fi
P_ID=`ps -ef|grep $standardService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===standardService process not exists or stop success"
else
kill -9 $P_ID
echo "standardService killed success"
fi
P_ID=`ps -ef|grep $qualityService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===qualityService process not exists or stop success"
else
kill -9 $P_ID
echo "qualityService killed success"
fi
P_ID=`ps -ef|grep $marketService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===marketService process not exists or stop success"
else
kill -9 $P_ID
echo "marketService killed success"
fi
P_ID=`ps -ef|grep $marketServiceMapping |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===marketServiceMapping process not exists or stop success"
else
kill -9 $P_ID
echo "marketServiceMapping killed success"
fi
P_ID=`ps -ef|grep $marketServiceIntegration |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===marketServiceIntegration process not exists or stop success"
else
kill -9 $P_ID
echo "marketServiceIntegration killed success"
fi
P_ID=`ps -ef|grep $masterdataService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===masterdataService process not exists or stop success"
else
kill -9 $P_ID
echo "masterdataService killed success"
fi
P_ID=`ps -ef|grep $visualService |grep -v grep|awk '{print $2}'`
if [ "$P_ID" == "" ]; then
echo "===visualService process not exists or stop success"
else
kill -9 $P_ID
echo "visualService killed success"
fi
;;
restart)
$0 stop
sleep 10
$0 start
echo "===restart success==="
;;
esac
exit 0
启动:datx-cloud-pro.sh start
关闭:datx-cloud-pro.sh stop
重启:datx-cloud-pro.sh restart
用户名:admin
密码:123456
如有问题可关注公众号 螺旋编程极客 交流,共同学习进步。
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。