1 环境准备

主机 配置说明
物理配置 cpu 4核以上,内存4GB以上,磁盘100GB以上
操作系统 LINUX(centos7)
网络 数据交换服务器,需要和需要共享数据的数据库、大数据平台之间,网络设备畅通。如果存在网络不畅通情况下,必须通过前置机畅通,通过前置机跳转实现数据交换服务。

2 环境检查

2.1 防火墙服务检查

检查防火墙是否启动:
systemctl status firewalld.service
停止防火墙服务:
systemctl stop firewalld.service
禁用防火墙开机启动服务:
systemctl disable firewalld.service

3 软件下载

4 软件安装过程

4.1 解压命令

tar xvf zcbus.client_remote.docker.v2.0.1.x86_64.v1.plus.tar.gz
tar xvf zcbus.client_remote.docker.v2.0.1.x86_64.v2.plus.tar.gz

4.2 修改参数文件

[root@zcbustest client_remote]# cat common/zcbus.properties 
####################################################################
## Copyright(c) ZCBUS Corporation 2022. All rights reserved.      ##
##                                                                ##
## Specify values for the variables listed below to customize     ##
## your installation.                                             ##
##                                                                ##
## Each variable is associated with a comment. The comment        ##
## can help to populate the variables with the appropriate        ##
## values.                                                        ##
##                                                                ##
## IMPORTANT NOTE: This file should be secured to have read       ##
## permission only by the zcbus user or an administrator who      ##
## own this installation to protect any sensitive input values.   ##
##                                                                ##
####################################################################


#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify ZCBUS INSTALL home ,for storage docker's cache and images 
#-------------------------------------------------------------------------------
ZC_DATA_HOME=/data/docker02
--zcbus程序安装目录
#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify ZCBUS'S docker basic home ,for storage docker's cache and images 
#-------------------------------------------------------------------------------
ZC_DOCKER_HOME=/data/docker
--docker安装目录
#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify docker's username
#-------------------------------------------------------------------------------
ZC_DOCKER_USER=zcbus
--安装用户,默认即可
#-------------------------------------------------------------------------------
# Specify a location to install ZCBUS'S TYPE ,Only support cloud_client 
#-------------------------------------------------------------------------------
ZC_TYPE=cloud_client
--安装模式,默认即可
#-------------------------------------------------------------------------------
# Specify a docker's listener port
#-------------------------------------------------------------------------------
ZC_DOCKER_SERVER_PORT=8899
#-------------------------------------------------------------------------------
# Zcbus client remote location API service URL connection service
#-------------------------------------------------------------------------------
ZC_CUSTOMER_URL=http://192.168.2.33:8890/
--此处需要修改成服务端的URL地址
#-------------------------------------------------------------------------------
# Parameter set to zcbus_cache/zcbus_kafka
# zcbus_cache is zcbus's mq  for zcbus single mode
# kafka_cache is kafka or zcbus cluster mode
#-------------------------------------------------------------------------------
ZC_CACHE_TYPE=zcbus_cache
--此处根据服务端使用的数据缓存方式填写,服务端使用zcbusmq方式时填写zcbus_cache;使用kafka缓存时填写kafka_cache
#-------------------------------------------------------------------------------
# Remote receiving zcbus data stream port service,
#              zcbus_kafka for kafka connect,
#              zcbus_cache for zbmq 
#-------------------------------------------------------------------------------
ZC_CACHE_SERVER=192.168.2.33:6600
--此处根据上方ZC_CACHE_TYPE参数来填写对应的zcbusmq/kafka连接地址
#-------------------------------------------------------------------------------
# Remote receiving zcbus data resource port service
#-------------------------------------------------------------------------------
--以下参数无特殊需求默认即可
ZC_NET_DB_SERVER_DBNAME=zcbus
ZC_NET_DB_SERVER_HOST=zcbusnet
ZC_NET_DB_SERVER_PORT=33060
ZC_NET_DB_SERVER_USER=QFlYT0k6
ZC_NET_DB_SERVER_PWD=e0twWGp8aVtWfGB8dn9YdTo
ZC_NET_DB_SERVER_ID=2
ZC_INSTALL_MODE=0

#-------------------------------------------------------------------------------
# Remote receiving zcbus data resource port service,include master and slave's ip
#-------------------------------------------------------------------------------
ZC_DB_IPPORT=zcbusdb:3306

#-------------------------------------------------------------------------------
# Remote zcbus'services nodes ip
#-------------------------------------------------------------------------------
ZC_NODE_IPS=zcbusdb

#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Remote install zcbus type integrate/external
#-------------------------------------------------------------------------------
ZC_METHOD=integrate

#-------------------------------------------------------------------------------
# Remote install zcbus include database docker 
# 0 is equal ZC_METHOD's integrate mode,all server include docker,and other is external mode
# 1 is include zcbusvue/zcbusrestapi
# 2 is include zcbusvue/zcbusrestapi,zcbusdb
# 3 is include zcbusvue/zcbusrestapi,zcbuskafka/zcbuszookeeper
#-------------------------------------------------------------------------------
ZC_SERV_LOCALTION=0

#-------------------------------------------------------------------------------
# for ZCBUS COM CODE default 1
#-------------------------------------------------------------------------------
ZC_COM_CODE=1

#-------------------------------------------------------------------------------
# Parameter set to http/https  ,default http
#-------------------------------------------------------------------------------
ZC_HTTP_MODE=http

#-------------------------------------------------------------------------------
# Parameter set to 1, Kafka uses Sasl authentication, set to 0, no authentication method
#-------------------------------------------------------------------------------
ZC_CACHE_SASL=0

#-------------------------------------------------------------------------------
# if add zcbus's default container :1 is add container,0 is not add container
#-------------------------------------------------------------------------------
ZC_IF_ADD_DEFAULT_ZCBUS=1

#------------------------------------------------------------------------------
#- for check data file limit
#------------------------------------------------------------------------------
ZC_DATA_DIR_LIMIT=10G

#------------------------------------------------------------------------------
#- for check docker limit
#------------------------------------------------------------------------------
ZC_DOCKER_DIR_LIMIT=5G

#-------------------------------------------------------------------------------
# for ZCBUS use memory min limit set, Suggest setting the minimum value 4GB
#-------------------------------------------------------------------------------
ZC_MEMORY_LIMIT=0G

#-------------------------------------------------------------------------------
# for ZCBUS use proxy connect to zcbusnet,0 is not set 
#-------------------------------------------------------------------------------
ZC_NET_PROXY=0
ZC_NET_PROXY_PORT=3311
ZC_NET_PROXY_USER=QFkKCzo
ZC_NET_PROXY_PWD=QFkKC2p6SUlNCkheOg
ZC_NET_PROXY_POOL=128
ZC_NET_PROXY_PROCESS=1

4.3 安装参数说明

[INFO] whether to start install zcbus ... Please input 'y/Y' to continue/press Ctrl+C to exit :y
----选择是否安装或退出安装

[INFO] whether to install chinese[0]/english[1],defaut is 0:
----选择语言模式,默认中文

[INFO] whether to install integrate/external ,defaut is integrate:
----选择安装模式,默认即可(integrate包括zk+kafka和zcbusdb,external包括zk+kafka和zcbusdb,需要用到相对应的外部组件)
####################install module####################
192.168.2.56==➜ ======================================================================
192.168.2.56==➜ =Please Register Customer uuid:[198E4D56-F23F-7636-B4B3-7F6B1287AE7A] on zcbus server ....=
192.168.2.56==➜ ======================================================================
[INFO] whether to condition y|Y/n|N:y
192.168.2.56==➜ Install client on 198E4D56-F23F-7636-B4B3-7F6B1287AE7A...
----客户端主机的机器码,填写y

[INFO] Please input docker path /data/docker02:
----程序安装目录

[INFO] Please input if load images y/n:y
----是否挂载镜像文件

[INFO] whether input customerid :10015
----此处填写在服务端上创建的远程订阅客户端的customerid(查看方式见下方注释)

[INFO] whether input customerkey :b8c7c5d0-4304-4d5a-8ea0-02c66345f859
----此处填写在服务端上创建的远程订阅客户端的customerkey(查看方式见下方注释)

注:在服务端界面查看customerid/customerkey的方式

4.4 安装过程

[root@zcbustest client_remote]# ./zcmgr.sh install
192.168.2.56==➜ Check ZC_DOCKER_HOME=/data/docker ZC_DATA_HOME=/data/docker02 ok
192.168.2.56==➜ Check Memory 5 > 0 ok ...
192.168.2.56==➜ Check /etc/hosts Sucessfull...

192.168.2.56==[Step 1]: checking OS version/firewalld/seLinux  and config ...
############################## check host ::: /etc/hosts #############################################
192.168.2.56==➜ check host ::: 1 ::: OK
192.168.2.56==➜ 192.168.2.56 zcbustest
############################## check selinux ::: /etc/selinux/config #################################
192.168.2.56==➜ check selinux ::: disabled ::: OK
setenforce: SELinux is disabled
############################## check firewalld #######################################################
192.168.2.56==➜ check firewalld ::: not running ::: OK
############################## check sysctl ::: /etc/sysctl.conf #####################################
192.168.2.56==➜ vm.max_map_count ::: 2000000 (>=2000000) ::: OK
192.168.2.56==➜ kernel.shmall ::: 4294967296 (>=4294967296) ::: OK
192.168.2.56==➜ fs.aio-max-nr ::: 1048576 (>=1048576) ::: OK
192.168.2.56==➜ fs.file-max ::: 6815744 (>=6815744) ::: OK
192.168.2.56==➜ kernel.shmmax ::: 2070833152 (>=2070833152) ::: OK
192.168.2.56==➜ kernel.shmmni ::: 4096 (>=4096) ::: OK
192.168.2.56==➜ kernel.sem ::: 250 (>=250) 32000 (>=32000) 100 (>=100) 128 (>=128) ::: OK
192.168.2.56==➜ net.ipv4.ip_local_port_range ::: 1024 (>=1024) 65500 (>=65500) ::: OK
192.168.2.56==➜ net.core.rmem_default ::: 262144 (>=262144) ::: OK
192.168.2.56==➜ net.core.rmem_max ::: 4194304 (>=4194304) ::: OK
192.168.2.56==➜ net.core.wmem_default ::: 262144 (>=262144) ::: OK
192.168.2.56==➜ net.core.wmem_max ::: 1048576 (>=1048576) ::: OK
192.168.2.56==➜ kernel.threads-max ::: 999999 (>=999999) ::: OK
192.168.2.56==➜ kernel.pid_max ::: 999999 (>=999999) ::: OK
192.168.2.56==➜ vm.max_map_count ::: 2000000 (>=1999999) ::: OK
192.168.2.56==➜ net.ipv4.ip_forward ::: 1 (>=1) ::: OK
192.168.2.56==➜ fs.inotify.max_user_watches ::: 1048576 (>=1048576) ::: OK
192.168.2.56==➜ fs.inotify.max_user_instances ::: 1048576 (>=1048576) ::: OK
############################## check limits ::: /etc/security/limits.conf ############################
192.168.2.56==➜ soft-nofile ::: 1048500 (>=1048500) ::: OK
192.168.2.56==➜ hard-nofile ::: 1048500 (>=1048500) ::: OK
192.168.2.56==➜ soft-nproc ::: 65536 (>=65536) ::: OK
192.168.2.56==➜ hard-nproc ::: 65536 (>=65536) ::: OK
############################## CHECK RESULT ##########################################################
192.168.2.56==➜ OK : 25 ERROR : 0 WARNING : 0
[INFO] whether to start install zcbus ... Please input 'y/Y' to continue/press Ctrl+C to exit :y
[INFO] whether to install chinese[0]/english[1],defaut is 0:
[INFO] whether to install integrate/external ,defaut is integrate:
####################install module####################
192.168.2.56==➜ ======================================================================
192.168.2.56==➜ =Please Register Customer uuid:[198E4D56-F23F-7636-B4B3-7F6B1287AE7A] on zcbus server ....=
192.168.2.56==➜ ======================================================================
[INFO] whether to condition y|Y/n|N:y
192.168.2.56==➜ Install client on 198E4D56-F23F-7636-B4B3-7F6B1287AE7A...
192.168.2.56==➜ ***************************************************************************************************
192.168.2.56==➜ ****************************** Ready Install for zcbus grid cluster ....***************************
192.168.2.56==➜ ****************************** check variabels for  ....***************************
192.168.2.56==➜ ***************************************************************************************************
192.168.2.56==➜ check status ZC_DATA_HOME sucessfull..
192.168.2.56==➜ check status ZC_DOCKER_HOME sucessfull..
192.168.2.56==➜ check status ZC_DOCKER_SERVER_PORT sucessfull..
192.168.2.56==➜ check status ZC_TYPE sucessfull..
192.168.2.56==➜ check status ZC_CUSTOMER_URL sucessfull..
192.168.2.56==➜ check status ZC_CACHE_SERVER sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_DBNAME sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_HOST sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_PORT sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_USER sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_PWD sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_ID sucessfull..
192.168.2.56==➜ check status ZC_DB_IPPORT sucessfull..
192.168.2.56==➜ check status ZC_METHOD sucessfull..
192.168.2.56==➜ check status ZC_SERV_LOCALTION sucessfull..
192.168.2.56==➜ check status ZC_IF_ADD_DEFAULT_ZCBUS sucessfull..
192.168.2.56==➜ check status ZC_INSTALL_MODE sucessfull..
192.168.2.56==➜ check status ZC_CACHE_SASL sucessfull..
192.168.2.56==➜ check status ZC_CACHE_TYPE sucessfull..
192.168.2.56==➜ Check ZC_CACHE_TYPE =zcbus_cache ... 
will change 's restapi install mode ...

192.168.2.56==[Step 2]: ready for data dir path ...
[INFO] Please input docker path /data/docker02:10015
192.168.2.56==➜ Not Found path 10015...
192.168.2.56==➜ mkdir path for 10015 finished ...
192.168.2.56==➜ Find path 10015 :/data/docker02/zcbusdata
192.168.2.56==➜ Ready Path for 10015 finished ...
check sucessfull for zclimit 10G < 168G[10015]...

192.168.2.56==[Step 3]: add zcbus user ...
docker:x:1001:zcbus
docker group exists ...
uid=1000(zcbus) gid=1000(zcbus) groups=1000(zcbus),10(wheel),1001(docker)

192.168.2.56==[Step 4]: checking if docker is installed ...
check sucessfull for zclimit 5G < 168G[/data/docker]...
############################## docker version: 20.10.10 ##############################################

192.168.2.56==[Step 5]: checking docker-compose is installed ...
############################## docker-compose version: 2.24.5 ########################################

192.168.2.56==[Step 6]: checking mysql directory ...
############################## Create directory mysql 10015/zcbusdata .... ###########################
192.168.2.56==✔ Mysql data directory  10015/zcbusdata/mysql/data create Successful! 

192.168.2.56==[Step 7]: checking kafka directory ...
############################## Create directory kafka 10015/zcbusdata/kafka .... #####################
192.168.2.56==✔ Kafka data directory 10015/zcbusdata/zcbuskafka/logs create Successful! 

192.168.2.56==[Step 8]: checking cache directory ...
############################## Create directory cache 10015/zcbusdata .... ###########################
192.168.2.56==✔ Mysql data directory  10015/zcbusdata/cache create Successful! 

192.168.2.56==[Step 9]: checking zookeeper directory ...
############################## Create directory kafka 10015/zcbusdata/kafka .... #####################
192.168.2.56==✔ Zookeeoer data directory 10015/zcbusdata/zcbuszookeeper/data create Successful! 

192.168.2.56==[Step 10]: loading zcbus images ...
[INFO] Please input if load images y/n:^C
[root@zcbustest client_remote]# 
[root@zcbustest client_remote]# 
[root@zcbustest client_remote]# 
[root@zcbustest client_remote]# 
[root@zcbustest client_remote]# docker images
REPOSITORY                        TAG       IMAGE ID       CREATED       SIZE
192.168.2.228:443/db/postgresql   v12.4     44c9a6a10db6   3 years ago   158MB
[root@zcbustest client_remote]# 
[root@zcbustest client_remote]# 
[root@zcbustest client_remote]# 
[root@zcbustest client_remote]# ./zcmgr.sh install
192.168.2.56==➜ Check ZC_DOCKER_HOME=/data/docker ZC_DATA_HOME=/data/docker02 ok
192.168.2.56==➜ Check Memory 5 > 0 ok ...
192.168.2.56==➜ Check /etc/hosts Sucessfull...

192.168.2.56==[Step 1]: checking OS version/firewalld/seLinux  and config ...
############################## check host ::: /etc/hosts #############################################
192.168.2.56==➜ check host ::: 1 ::: OK
192.168.2.56==➜ 192.168.2.56 zcbustest
############################## check selinux ::: /etc/selinux/config #################################
192.168.2.56==➜ check selinux ::: disabled ::: OK
setenforce: SELinux is disabled
############################## check firewalld #######################################################
192.168.2.56==➜ check firewalld ::: not running ::: OK
############################## check sysctl ::: /etc/sysctl.conf #####################################
192.168.2.56==➜ vm.max_map_count ::: 2000000 (>=2000000) ::: OK
192.168.2.56==➜ kernel.shmall ::: 4294967296 (>=4294967296) ::: OK
192.168.2.56==➜ fs.aio-max-nr ::: 1048576 (>=1048576) ::: OK
192.168.2.56==➜ fs.file-max ::: 6815744 (>=6815744) ::: OK
192.168.2.56==➜ kernel.shmmax ::: 2070833152 (>=2070833152) ::: OK
192.168.2.56==➜ kernel.shmmni ::: 4096 (>=4096) ::: OK
192.168.2.56==➜ kernel.sem ::: 250 (>=250) 32000 (>=32000) 100 (>=100) 128 (>=128) ::: OK
192.168.2.56==➜ net.ipv4.ip_local_port_range ::: 1024 (>=1024) 65500 (>=65500) ::: OK
192.168.2.56==➜ net.core.rmem_default ::: 262144 (>=262144) ::: OK
192.168.2.56==➜ net.core.rmem_max ::: 4194304 (>=4194304) ::: OK
192.168.2.56==➜ net.core.wmem_default ::: 262144 (>=262144) ::: OK
192.168.2.56==➜ net.core.wmem_max ::: 1048576 (>=1048576) ::: OK
192.168.2.56==➜ kernel.threads-max ::: 999999 (>=999999) ::: OK
192.168.2.56==➜ kernel.pid_max ::: 999999 (>=999999) ::: OK
192.168.2.56==➜ vm.max_map_count ::: 2000000 (>=1999999) ::: OK
192.168.2.56==➜ net.ipv4.ip_forward ::: 1 (>=1) ::: OK
192.168.2.56==➜ fs.inotify.max_user_watches ::: 1048576 (>=1048576) ::: OK
192.168.2.56==➜ fs.inotify.max_user_instances ::: 1048576 (>=1048576) ::: OK
############################## check limits ::: /etc/security/limits.conf ############################
192.168.2.56==➜ soft-nofile ::: 1048500 (>=1048500) ::: OK
192.168.2.56==➜ hard-nofile ::: 1048500 (>=1048500) ::: OK
192.168.2.56==➜ soft-nproc ::: 65536 (>=65536) ::: OK
192.168.2.56==➜ hard-nproc ::: 65536 (>=65536) ::: OK
############################## CHECK RESULT ##########################################################
192.168.2.56==➜ OK : 25 ERROR : 0 WARNING : 0
[INFO] whether to start install zcbus ... Please input 'y/Y' to continue/press Ctrl+C to exit :y
[INFO] whether to install chinese[0]/english[1],defaut is 0:
[INFO] whether to install integrate/external ,defaut is integrate:
####################install module####################
192.168.2.56==➜ ======================================================================
192.168.2.56==➜ =Please Register Customer uuid:[198E4D56-F23F-7636-B4B3-7F6B1287AE7A] on zcbus server ....=
192.168.2.56==➜ ======================================================================
[INFO] whether to condition y|Y/n|N:y
192.168.2.56==➜ Install client on 198E4D56-F23F-7636-B4B3-7F6B1287AE7A...
192.168.2.56==➜ ***************************************************************************************************
192.168.2.56==➜ ****************************** Ready Install for zcbus grid cluster ....***************************
192.168.2.56==➜ ****************************** check variabels for  ....***************************
192.168.2.56==➜ ***************************************************************************************************
192.168.2.56==➜ check status ZC_DATA_HOME sucessfull..
192.168.2.56==➜ check status ZC_DOCKER_HOME sucessfull..
192.168.2.56==➜ check status ZC_DOCKER_SERVER_PORT sucessfull..
192.168.2.56==➜ check status ZC_TYPE sucessfull..
192.168.2.56==➜ check status ZC_CUSTOMER_URL sucessfull..
192.168.2.56==➜ check status ZC_CACHE_SERVER sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_DBNAME sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_HOST sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_PORT sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_USER sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_PWD sucessfull..
192.168.2.56==➜ check status ZC_NET_DB_SERVER_ID sucessfull..
192.168.2.56==➜ check status ZC_DB_IPPORT sucessfull..
192.168.2.56==➜ check status ZC_METHOD sucessfull..
192.168.2.56==➜ check status ZC_SERV_LOCALTION sucessfull..
192.168.2.56==➜ check status ZC_IF_ADD_DEFAULT_ZCBUS sucessfull..
192.168.2.56==➜ check status ZC_INSTALL_MODE sucessfull..
192.168.2.56==➜ check status ZC_CACHE_SASL sucessfull..
192.168.2.56==➜ check status ZC_CACHE_TYPE sucessfull..
192.168.2.56==➜ Check ZC_CACHE_TYPE =zcbus_cache ... 
will change 's restapi install mode ...

192.168.2.56==[Step 2]: ready for data dir path ...
[INFO] Please input docker path /data/docker02:
192.168.2.56==➜ Load Path to /data/docker02 ...
check sucessfull for zclimit 10G < 168G[/data/docker02]...

192.168.2.56==[Step 3]: add zcbus user ...
docker:x:1001:zcbus
docker group exists ...
uid=1000(zcbus) gid=1000(zcbus) groups=1000(zcbus),10(wheel),1001(docker)

192.168.2.56==[Step 4]: checking if docker is installed ...
check sucessfull for zclimit 5G < 168G[/data/docker]...
############################## docker version: 20.10.10 ##############################################

192.168.2.56==[Step 5]: checking docker-compose is installed ...
############################## docker-compose version: 2.24.5 ########################################

192.168.2.56==[Step 6]: checking mysql directory ...
192.168.2.56==➜ 10015/zcbusdata/mysql is existd! 

192.168.2.56==[Step 7]: checking kafka directory ...
192.168.2.56==➜ rm -rf 10015/zcbusdata/zcbuskafka/logs/.lock
192.168.2.56==➜ 10015/zcbusdata/zcbuskafka is existd! 

192.168.2.56==[Step 8]: checking cache directory ...
192.168.2.56==➜ 10015/zcbusdata/cache is existd! 

192.168.2.56==[Step 9]: checking zookeeper directory ...
192.168.2.56==➜ 10015/zcbusdata/zcbuszookeeper is existd! 

192.168.2.56==[Step 10]: loading zcbus images ...
[INFO] Please input if load images y/n:y
docker load -i /soft/client_remote/soft/images/prepare.tar.gz
81af4c478a3f: Loading layer [==================================================>]   34.5MB/34.5MB
9557ca1fbfe7: Loading layer [==================================================>]  77.33MB/77.33MB
6fd533f8ba56: Loading layer [==================================================>]  49.89MB/49.89MB
d252ad99a7e4: Loading layer [==================================================>]  5.021MB/5.021MB
12d78b05c97c: Loading layer [==================================================>]  10.69MB/10.69MB
6e192508cb2d: Loading layer [==================================================>]  4.096kB/4.096kB
893fb22f02ee: Loading layer [==================================================>]  36.35kB/36.35kB
95eae4bfee53: Loading layer [==================================================>]  4.608kB/4.608kB
992e76e78fe7: Loading layer [==================================================>]  7.168kB/7.168kB
d1aa152652d5: Loading layer [==================================================>]  5.632kB/5.632kB
847c8fadc1d0: Loading layer [==================================================>]  6.144kB/6.144kB
4dfb6cd08c7b: Loading layer [==================================================>]  6.656kB/6.656kB
e2e86d21a16d: Loading layer [==================================================>]   5.12kB/5.12kB
92b71868ddfb: Loading layer [==================================================>]  5.632kB/5.632kB
cddb94309c59: Loading layer [==================================================>]  5.632kB/5.632kB
31050cdc3f73: Loading layer [==================================================>]  5.632kB/5.632kB
9561cbf51c90: Loading layer [==================================================>]  5.632kB/5.632kB
90904fa7fcaf: Loading layer [==================================================>]  5.632kB/5.632kB
dcee0a6b7dd6: Loading layer [==================================================>]  5.632kB/5.632kB
dda37c743463: Loading layer [==================================================>]  4.608kB/4.608kB
b68b84282ae8: Loading layer [==================================================>]  6.656kB/6.656kB
3cfc085cf2b3: Loading layer [==================================================>]  6.656kB/6.656kB
80722782ecc0: Loading layer [==================================================>]   5.12kB/5.12kB
50fbbd56520e: Loading layer [==================================================>]   5.12kB/5.12kB
498392bd5681: Loading layer [==================================================>]  4.608kB/4.608kB
fee5082cc74d: Loading layer [==================================================>]  6.144kB/6.144kB
ccdf2c2c1f43: Loading layer [==================================================>]  6.144kB/6.144kB
a2d555d26630: Loading layer [==================================================>]  5.632kB/5.632kB
b5745be3ac2e: Loading layer [==================================================>]  6.144kB/6.144kB
dcbe3cda9315: Loading layer [==================================================>]  5.632kB/5.632kB
dcd0328a0bca: Loading layer [==================================================>]   5.12kB/5.12kB
ac6b3cab1134: Loading layer [==================================================>]   5.12kB/5.12kB
26466b67f370: Loading layer [==================================================>]  5.632kB/5.632kB
83fb8479f757: Loading layer [==================================================>]  6.656kB/6.656kB
24cb05c7031a: Loading layer [==================================================>]  4.608kB/4.608kB
Loaded image: reg.zbomc.com/zcbus/prepare:latest
192.168.2.56==➜ Load images to docker's sucessfull...
docker load -i /soft/client_remote/soft/images/zcbus_vue.tar.gz
fd95118eade9: Loading layer [==================================================>]   83.9MB/83.9MB
d253f69cb991: Loading layer [==================================================>]     62MB/62MB
dfe7577521f0: Loading layer [==================================================>]  3.072kB/3.072kB
18be1897f940: Loading layer [==================================================>]  4.096kB/4.096kB
09be960dcde4: Loading layer [==================================================>]  3.584kB/3.584kB
a059c9abe376: Loading layer [==================================================>]  7.168kB/7.168kB
b8fde55dacdc: Loading layer [==================================================>]  236.6MB/236.6MB
101a5e72bde2: Loading layer [==================================================>]  3.072kB/3.072kB
3674cfab42c6: Loading layer [==================================================>]  25.51MB/25.51MB
ff0a4762436f: Loading layer [==================================================>]  54.63MB/54.63MB
fddecc60d9b3: Loading layer [==================================================>]  6.144kB/6.144kB
4a41aecc3db6: Loading layer [==================================================>]  6.144kB/6.144kB
626fae746c52: Loading layer [==================================================>]  3.584kB/3.584kB
7eff61ccba7e: Loading layer [==================================================>]  4.608kB/4.608kB
13a87994c956: Loading layer [==================================================>]   5.12kB/5.12kB
e793e23e5bcf: Loading layer [==================================================>]  2.048kB/2.048kB
Loaded image: reg.zbomc.com/zcbus_vue:v2.0.1
192.168.2.56==➜ Load images to docker's sucessfull...
docker load -i /soft/client_remote/soft/images/zcbus_restapi.tar.gz
625523cb9cce: Loading layer [==================================================>]  5.895MB/5.895MB
a67b42698a62: Loading layer [==================================================>]    182MB/182MB
564eb7407305: Loading layer [==================================================>]  3.072kB/3.072kB
58ddacd8fdec: Loading layer [==================================================>]  2.048kB/2.048kB
ccf635082cb8: Loading layer [==================================================>]   2.56kB/2.56kB
6040793eef97: Loading layer [==================================================>]  3.072kB/3.072kB
49d2a27bcab1: Loading layer [==================================================>]  257.5MB/257.5MB
d2ddbb9bf038: Loading layer [==================================================>]   2.56kB/2.56kB
Loaded image: reg.zbomc.com/zcbus_restapi:v2.0.1
192.168.2.56==➜ Load images to docker's sucessfull...
docker load -i /soft/client_remote/soft/images/zcbus_server.tar.gz
edf3aa290fb3: Loading layer [==================================================>]  211.1MB/211.1MB
5c86d1b5b0b2: Loading layer [==================================================>]  104.1MB/104.1MB
49a84ead53a2: Loading layer [==================================================>]  167.2MB/167.2MB
2cbfadbb5c91: Loading layer [==================================================>]  84.48kB/84.48kB
f8ddaf7310f4: Loading layer [==================================================>]  87.55kB/87.55kB
497660730a78: Loading layer [==================================================>]  6.144kB/6.144kB
647e3ddd7a1d: Loading layer [==================================================>]  3.584kB/3.584kB
572d2478ad5a: Loading layer [==================================================>]  6.144kB/6.144kB
4eb3688698c8: Loading layer [==================================================>]  4.608kB/4.608kB
1ee983babe85: Loading layer [==================================================>]  9.728kB/9.728kB
Loaded image: reg.zbomc.com/zcbus_server:v2.0.1
192.168.2.56==➜ Load images to docker's sucessfull...
docker load -i /soft/client_remote/soft/images/zcbus_net.tar.gz
74ddd0ec08fa: Loading layer [==================================================>]  238.6MB/238.6MB
85f12d88e642: Loading layer [==================================================>]  379.6MB/379.6MB
a735e4c32a87: Loading layer [==================================================>]  4.096kB/4.096kB
074d5a5a392f: Loading layer [==================================================>]  163.6MB/163.6MB
7bace3c96bb1: Loading layer [==================================================>]  66.05kB/66.05kB
36a6fc5c103f: Loading layer [==================================================>]  9.216kB/9.216kB
2c978a22f3ee: Loading layer [==================================================>]  3.072kB/3.072kB
3ccd1bc68e07: Loading layer [==================================================>]  110.6kB/110.6kB
423197942f86: Loading layer [==================================================>]  2.048kB/2.048kB
Loaded image: reg.zbomc.com/zcbus_net:v2.0.1
192.168.2.56==➜ Load images to docker's sucessfull...
docker load -i /soft/client_remote/soft/images/zcbus_mysql.tar.gz
616461b0543d: Loading layer [==================================================>]    145MB/145MB
059140abf41f: Loading layer [==================================================>]  11.26kB/11.26kB
910d8e0bdf9b: Loading layer [==================================================>]  2.385MB/2.385MB
8cd76fcba8b5: Loading layer [==================================================>]  14.07MB/14.07MB
da7cb9362f6b: Loading layer [==================================================>]  7.168kB/7.168kB
ea403eb88dfd: Loading layer [==================================================>]  3.072kB/3.072kB
f4c7d56f4ec9: Loading layer [==================================================>]   79.5MB/79.5MB
c9d01885dc23: Loading layer [==================================================>]  3.072kB/3.072kB
54a757da1b62: Loading layer [==================================================>]  360.2MB/360.2MB
1065c2b6b2b2: Loading layer [==================================================>]  17.41kB/17.41kB
874d4d0830b7: Loading layer [==================================================>]  1.536kB/1.536kB
7e6eb807e9e3: Loading layer [==================================================>]  6.656kB/6.656kB
7bd0cf8a9bf5: Loading layer [==================================================>]  17.92kB/17.92kB
d3e8ddc0d862: Loading layer [==================================================>]  7.168kB/7.168kB
29d54c0d2d17: Loading layer [==================================================>]  3.584kB/3.584kB
b65d26b5115d: Loading layer [==================================================>]  3.584kB/3.584kB
3853a731a2fa: Loading layer [==================================================>]   2.56kB/2.56kB
c2ae660d2d8a: Loading layer [==================================================>]  3.072kB/3.072kB
acb79c1eba2e: Loading layer [==================================================>]  4.096kB/4.096kB
61320ebb7340: Loading layer [==================================================>]   2.56kB/2.56kB
4d9bd06ce766: Loading layer [==================================================>]  3.584kB/3.584kB
d6e7d16ce00e: Loading layer [==================================================>]  7.168kB/7.168kB
5b8825a2a559: Loading layer [==================================================>]  7.168kB/7.168kB
38755b43ab04: Loading layer [==================================================>]   2.56kB/2.56kB
2652b0a04188: Loading layer [==================================================>]  3.584kB/3.584kB
1a73f89ca9cb: Loading layer [==================================================>]  7.168kB/7.168kB
43d3bc64f7b3: Loading layer [==================================================>]  66.05kB/66.05kB
9b5bd467d522: Loading layer [==================================================>]   2.56kB/2.56kB
8864cfa5a4a6: Loading layer [==================================================>]  3.072kB/3.072kB
b0f368175a2d: Loading layer [==================================================>]   2.56kB/2.56kB
435df01f3dbc: Loading layer [==================================================>]  11.26kB/11.26kB
32d10b8b2c64: Loading layer [==================================================>]  4.608kB/4.608kB
7efaa70c03d5: Loading layer [==================================================>]  4.608kB/4.608kB
4159a812e80c: Loading layer [==================================================>]  4.608kB/4.608kB
8fcde546c95c: Loading layer [==================================================>]  13.82kB/13.82kB
55cbec796b30: Loading layer [==================================================>]  156.2kB/156.2kB
21797da29863: Loading layer [==================================================>]  8.704kB/8.704kB
8138ff47ce06: Loading layer [==================================================>]  202.2kB/202.2kB
050a93181ed5: Loading layer [==================================================>]  34.82kB/34.82kB
231f14c6d8de: Loading layer [==================================================>]  26.62kB/26.62kB
c2e47cf1f463: Loading layer [==================================================>]  10.75kB/10.75kB
9eb3b17bff2b: Loading layer [==================================================>]  7.168kB/7.168kB
5a66f7bb643c: Loading layer [==================================================>]  4.608kB/4.608kB
79e2e8f9b124: Loading layer [==================================================>]  9.728kB/9.728kB
f2de9b7f4bc7: Loading layer [==================================================>]  27.14kB/27.14kB
628598db1162: Loading layer [==================================================>]  587.8kB/587.8kB
c4a15ffa1703: Loading layer [==================================================>]  7.168kB/7.168kB
94c54c4c06ec: Loading layer [==================================================>]  7.168kB/7.168kB
74eb686d4a9f: Loading layer [==================================================>]  160.8kB/160.8kB
aa59a842cd27: Loading layer [==================================================>]  348.2kB/348.2kB
3dcdbaa3dee2: Loading layer [==================================================>]  5.632kB/5.632kB
4442f5b11e4a: Loading layer [==================================================>]  11.26kB/11.26kB
26b33af5efc2: Loading layer [==================================================>]   2.56kB/2.56kB
db57c9a7bb86: Loading layer [==================================================>]   2.56kB/2.56kB
6e9bfa243d3e: Loading layer [==================================================>]  5.632kB/5.632kB
c3592fc2ae6a: Loading layer [==================================================>]  3.072kB/3.072kB
993221794e78: Loading layer [==================================================>]  3.072kB/3.072kB
a219a746420d: Loading layer [==================================================>]  4.096kB/4.096kB
f6d60f61e78a: Loading layer [==================================================>]  6.144kB/6.144kB
1222aea59c49: Loading layer [==================================================>]  82.94kB/82.94kB
0582160d1fe6: Loading layer [==================================================>]  10.75kB/10.75kB
2da6c105ee1c: Loading layer [==================================================>]  5.632kB/5.632kB
cb8fb9e070cc: Loading layer [==================================================>]  71.17kB/71.17kB
848274112385: Loading layer [==================================================>]  288.3kB/288.3kB
edd0fb8f8b05: Loading layer [==================================================>]   5.12kB/5.12kB
6e76bfb35848: Loading layer [==================================================>]  4.608kB/4.608kB
9de6faac3c99: Loading layer [==================================================>]   2.56kB/2.56kB
495c94e8795b: Loading layer [==================================================>]  6.144kB/6.144kB
b39b35193dd1: Loading layer [==================================================>]   2.56kB/2.56kB
277366ed9976: Loading layer [==================================================>]   3.18MB/3.18MB
c78955eaa721: Loading layer [==================================================>]  18.43kB/18.43kB
24f6534c6fe5: Loading layer [==================================================>]   2.56kB/2.56kB
1e0af5d05960: Loading layer [==================================================>]   2.56kB/2.56kB
3d3640b2ed50: Loading layer [==================================================>]   2.56kB/2.56kB
bff2a18c4f2c: Loading layer [==================================================>]  4.608kB/4.608kB
e1841f76a2a3: Loading layer [==================================================>]   2.56kB/2.56kB
9312ee4bd5e6: Loading layer [==================================================>]  8.704kB/8.704kB
089d1329eb0d: Loading layer [==================================================>]  7.168kB/7.168kB
fda03ad4e827: Loading layer [==================================================>]  418.3kB/418.3kB
ebbdd5bd1a2e: Loading layer [==================================================>]   2.56kB/2.56kB
97f71fa2c9da: Loading layer [==================================================>]   2.56kB/2.56kB
6dadb0040850: Loading layer [==================================================>]  5.724MB/5.724MB
b00c0ff836ff: Loading layer [==================================================>]  4.096kB/4.096kB
51af17e5b7b4: Loading layer [==================================================>]  1.536kB/1.536kB
707b3c87b537: Loading layer [==================================================>]  3.072kB/3.072kB
220d0a19f10f: Loading layer [==================================================>]  8.192kB/8.192kB
Loaded image: reg.zbomc.com/zcbus_mysql:v2.0.1
192.168.2.56==➜ Load images to docker's sucessfull...
192.168.2.56==➜ 
192.168.2.56==➜ network zcbus is already exists ...
[INFO] whether input customerid :10015
[INFO] whether input customerkey :b8c7c5d0-4304-4d5a-8ea0-02c66345f859
192.168.2.56==➜ /soft/client_remote/common/zcbus.properties ZC_SERV_LOCALTION  :[2]
zctype:cloud_client====zcc:0
Check hostname [zcbustest]'s ip is :[192.168.2.56]
===> Ready basic info zctype  cloud_client : integrate ,ymlbasic :  docker-compose-cloud-client.yml.jinja
=====fulldict[  dict_keys(['zcbusdb', 'zcbusrestapi', 'zcbusvue', 'zcbusnet', 'zcbus'])  ]
Flush data to /compose_location/docker-compose.yml
===> Finish init basic ...
192.168.2.56==➜ prepare cloud_client Sucessfull...
192.168.2.56==➜ 
192.168.2.56==➜ 

192.168.2.56==[Step 11]: checking if ports is used ...
192.168.2.56==➜ Port  33060 is available!!
192.168.2.56==➜ Port  8890 is available!!

192.168.2.56==[Step 12]: ready basic soft for container ...
192.168.2.56==➜ Ready compare soft ...
192.168.2.56==➜ Read zcbusserver jdk sucessfull....
192.168.2.56==➜ Read zcbusserver jar sucessfull....
192.168.2.56==➜ Read zcbusserver bin sucessfull....
192.168.2.56==➜ Read zcbusserver lib sucessfull....
192.168.2.56==➜ /data/docker02/module/lib to /data/docker02/zcbusdata/zcbusserver/ is build sucessfull...
192.168.2.56==➜ /data/docker02/module/bin to /data/docker02/zcbusdata/zcbusserver/ is build sucessfull...
192.168.2.56==➜ /data/docker02/module/jdk to /data/docker02/zcbusdata/zcbusserver/ is build sucessfull...
192.168.2.56==➜ /data/docker02/module/jar to /data/docker02/zcbusdata/zcbusserver/ is build sucessfull...

192.168.2.56==[Step 13]: starting zcbus ...
[+] Running 5/5
 ✔ Container zcbusvue      Started                                                                                                                                                                          3.0s 
 ✔ Container zcbusdb       Started                                                                                                                                                                          3.2s 
 ✔ Container zcbusnet      Started                                                                                                                                                                          3.1s 
 ✔ Container zcbusrestapi  Started                                                                                                                                                                          2.8s 
 ✔ Container zcbus         Started                                                                                                                                                                          3.1s 
192.168.2.56==➜ =============will load data mode for cloud_client================
192.168.2.56==➜ Will Install for load zcbus's data...
192.168.2.56==➜ Check zcbusdb Connect start ...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
192.168.2.56==➜ Check zcbusdb Connect Failed ,wait 10 seconds and retry 1 times ...
192.168.2.56==➜ Check zcbusdb Connect start ...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
192.168.2.56==➜ Check zcbusdb Connect Failed ,wait 10 seconds and retry 2 times ...
192.168.2.56==➜ Check zcbusdb Connect start ...
mysql: [Warning] Using a password on the command line interface can be insecure.
192.168.2.56==➜ Check zcbusdb Connect Sucessfull...
192.168.2.56==➜ Start Load data to zcbusdb ...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1146 (42S02) at line 1: Table 'zcbus.bus_cluster_version' doesn't exist
init db for ZCBUS_VERSION:client_remote ZCTYPE:cloud_client...
INFO => initDB first time ...
INFO => change password for zcbus...
INFO => finished password for zcbus...
INFO => sql source /zcbus/createdb.sql
mysql: [Warning] Using a password on the command line interface can be insecure.
INFO => DEAL sql file account_api...
INFO => DEAL sql file account_menu...
INFO => DEAL sql file account_rel_menu_api...
INFO => DEAL sql file account_rel_role_menu...
INFO => DEAL sql file bus_dict_item...
INFO => DEAL sql file bus_dict_type...
INFO => DEAL sql file bus_dict_style...
INFO => DEAL sql file bus_cluster_version...
INFO => DEAL sql file bus_parameter_module...
INFO => DEAL sql file custom_charset_to_big5...
For ZCTYPE=cloud_client conditinue ...
INFO => DEAL sql file bus_parameter_module_image...
INFO => DEAL sql file bus_sys_parameter...
INFO => DEAL sql file bus_sql_parameter...
INFO => DEAL sql file bus_service_type_model...
INFO => DEAL sql file bus_search_group...
INFO => DEAL sql file bus_search_group_sql...
INFO => DEAL sql file bus_search_group_sql_map...
INFO => DEAL sql file bus_tool_sql_record...
INFO => DEAL sql file bus_api_key_map...
INFO => DEAL sql file bus_dict_table_column...
INFO => DEAL sql file bus_dict_table_type...
INFO => DEAL sql file bus_aux_publish_down_tab_list...
INFO => DEAL sql file bus_aux_publish_up_tab_list...
INFO => DEAL sql file bus_msg_dispatch...
INFO => DEAL sql file bus_msg_model...
INFO => DEAL sql file sys_article...
INFO => DEAL sql file bus_dict_table_list...
INFO => DEAL sql file zbomc_sys_password_blacklist...
INFO => DEAL sql file update...
INFO => DEAL sql file p1c...
INFO => DEAL sql file p2...
INFO => DEAL sql file last_cloud_client...
auto start is not set []!!!
INFO => Will exec sql for /zcbus/zcbus.v2.0.1.sql...
mysql: [Warning] Using a password on the command line interface can be insecure.
INFO => sql :select version from bus_cluster_version
mysql: [Warning] Using a password on the command line interface can be insecure.
===================not found upgrade sql =====================
INFO => Not Found upgrade sql file 
===============
mysql: [Warning] Using a password on the command line interface can be insecure.
wait 3 seconds and Wait aud receive cloud data ,and wait status ...
mysql: [Warning] Using a password on the command line interface can be insecure.
wait 3 seconds and Wait aud receive cloud data ,and wait status ...
mysql: [Warning] Using a password on the command line interface can be insecure.
wait 3 seconds and Wait aud receive cloud data ,and wait status ...
mysql: [Warning] Using a password on the command line interface can be insecure.
Start client and exit ......
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
Start compare and exit ......
mysql: [Warning] Using a password on the command line interface can be insecure.
192.168.2.56==➜ Finished Load data to zcbusdb sucessfull...

====>>>ZCBUS [ Fri Aug 30 10:53:02 CST 2024 ]
NAME           IMAGE                                COMMAND                  SERVICE        CREATED          STATUS          PORTS
zcbus          reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbus          40 seconds ago   Up 36 seconds   
zcbusdb        reg.zbomc.com/zcbus_mysql:v2.0.1     "docker-entrypoint.s…"   zcbusdb        40 seconds ago   Up 36 seconds   3306/tcp, 33060/tcp
zcbusnet       reg.zbomc.com/zcbus_net:v2.0.1       "sh /run.sh"             zcbusnet       40 seconds ago   Up 36 seconds   0.0.0.0:33060->33060/tcp, :::33060->33060/tcp
zcbusrestapi   reg.zbomc.com/zcbus_restapi:v2.0.1   "sh /run.sh"             zcbusrestapi   40 seconds ago   Up 37 seconds   7080/tcp
zcbusvue       reg.zbomc.com/zcbus_vue:v2.0.1       "/docker-entrypoint.…"   zcbusvue       40 seconds ago   Up 36 seconds   0.0.0.0:8890->80/tcp, :::8890->80/tcp
192.168.2.56==➜ 

192.168.2.56==[Step 13]: sync zcbus_docker to /data/docker02/...
copy /soft/client_remote/bin /data/docker02/...

192.168.2.56==[Step 13]: ready basic soft for basic zcbus_docker server ...
Check hostname [zcbustest]'s ip is :[192.168.2.56]
192.168.2.56==➜ ZC_IPADDRESS :192.168.2.56
192.168.2.56==➜ ==============>/data/docker02========192.168.2.56=======

Note: add zcbus_docker service
? add zcbus_docker service successfully ...
192.168.2.56==➜ Read Master database info to /soft/client_remote/config/zcbus_master.ini
[INF] load libmysqlclient.so
[LV0] 2024-08-30 10:53:07: connect to mysql zcbus/***@192.168.2.56:33060 ...
[INF] set client character set utf8mb4...
[INF] new client character set: utf8mb4
[INF] MYSQL VERSION: 50743
[INF] MYSQL INFO: 5.7.43-log
SET SESSION sql_mode='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
[INF] connection test ok.
zcbus_docker is Stopping ...
zcbus_docker is Finished ...
192.168.2.56==➜ sync basic info to /data/docker02/ begin ...
copy /soft/client_remote/bin /data/docker02/...
copy /soft/client_remote/yaml /data/docker02/...
copy /soft/client_remote/common/add_zcbus_docker_service.sh /data/docker02/common/...
copy /soft/client_remote/common/docker.service /data/docker02/common/...
copy /soft/client_remote/common/zcbus_client.rsp /data/docker02/common/...
copy /soft/client_remote/common/zcbus_docker.service /data/docker02/common/...
copy /soft/client_remote/common/zcbus.properties /data/docker02/common/...
copy /soft/client_remote/common/zcbus.yml /data/docker02/common/...
copy /soft/client_remote/common/.check /data/docker02/common/...
copy /soft/client_remote/common/.zcbus.common /data/docker02/common/...
copy /soft/client_remote/zcmgr.sh /data/docker02/...
copy /soft/client_remote/soft/docker-20.10.10.tgz /data/docker02/soft/...
copy /soft/client_remote/soft/docker-compose-Linux-x86_64 /data/docker02/soft/...
copy /soft/client_remote/soft/zcbus /data/docker02/soft/...
192.168.2.56==➜ sync basic info to /data/docker02/ end ...
192.168.2.56==➜ Test zcbus_docker Connect to zcbus_master.ini Sucessfull...
192.168.2.56==➜ =========================== ready restart zcbus_docker ====================
zcbus_docker is Stopping ...
zcbus_docker is Finished ...
[+] Running 5/0
 ✔ Container zcbusrestapi  Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusvue      Running                                                                                                                                                                          0.0s 
 ✔ Container zcbus         Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusdb       Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusnet      Running                                                                                                                                                                          0.0s 
192.168.2.56==➜ sync config info to /data/docker02/ begin ...
copy /soft/client_remote/config /data/docker02/...
copy /soft/client_remote/yaml /data/docker02/...
192.168.2.56==➜ sync config info to /data/docker02/ end ...
=================192.168.2.56
Linux zcbustest 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
sql_exec: Release 8.1-16 64 bit (QA) - Production on 2024-08-23 19:06:07
Copyright (c) 2024 ZCBUS. All Rights Reserved.
process id 242523
connect string: mysql:zcbus/AqJbPFSalFZFLEbO@192.168.2.56:33060/zcbus
login host[192.168.2.56] port[33060] user[zcbus] password[AqJbPFSalFZFLEbO] database[zcbus].
[INF] load libmysqlclient.so
[INF] set client character set utf8mb4...
[INF] new client character set: utf8mb4
[INF] MYSQL VERSION: 50743
[INF] MYSQL INFO: 5.7.43-log
SET SESSION sql_mode='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
Affected_rows: 1
execute sql OK.
[+] Restarting 3/3
 ✔ Container zcbusrestapi  Started                                                                                                                                                                         10.9s 
 ✔ Container zcbusvue      Started                                                                                                                                                                         10.9s 
 ✔ Container zcbusnet      Started                                                                                                                                                                         10.8s 
192.168.2.56==➜ =============================================================
192.168.2.56==➜ Manager console Website Address: http://192.168.2.56:8890
192.168.2.56==➜ Default login account : admin
192.168.2.56==➜ Default login password: 123456
192.168.2.56==➜ 
192.168.2.56==➜ =============================================================
192.168.2.56==✔ ----Zcbus has been installed and started successfully.----

4.5 安装完成后检查进程

[root@zcbustest client_remote]# ./zcmgr.sh check
192.168.2.56==➜ Check ZC_DOCKER_HOME=/data/docker ZC_DATA_HOME=/data/docker02 ok

====>>>ZCBUS [ Fri Aug 30 10:55:07 CST 2024 ]
NAME           IMAGE                                COMMAND                  SERVICE        CREATED         STATUS              PORTS
zcbus          reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbus          2 minutes ago   Up 2 minutes        
zcbusdb        reg.zbomc.com/zcbus_mysql:v2.0.1     "docker-entrypoint.s…"   zcbusdb        2 minutes ago   Up 2 minutes        3306/tcp, 33060/tcp
zcbusnet       reg.zbomc.com/zcbus_net:v2.0.1       "sh /run.sh"             zcbusnet       2 minutes ago   Up About a minute   0.0.0.0:33060->33060/tcp, :::33060->33060/tcp
zcbusrestapi   reg.zbomc.com/zcbus_restapi:v2.0.1   "sh /run.sh"             zcbusrestapi   2 minutes ago   Up About a minute   7080/tcp
zcbusvue       reg.zbomc.com/zcbus_vue:v2.0.1       "/docker-entrypoint.…"   zcbusvue       2 minutes ago   Up About a minute   0.0.0.0:8890->80/tcp, :::8890->80/tcp
root     242441      1  0 10:53 pts/2    00:00:00 /data/docker02/bin/zcbus_docker -log_level 2
root     242465      1  0 10:53 pts/2    00:00:00 /data/docker02/bin/zcbus_docker -manager -log_level 2
root     242575      1  0 10:53 pts/2    00:00:00 /data/docker02/bin/zcbus_docker -listener -log_level 2

4.6 手动修改docker-compose.yml文件

修改参数内容: ZCBUS_CUSTOMER_SIG: 10001||6d3a3cac-dfb0-44d0-a6af-399076d61d64||http://192.168.2.54:8890||7D984D56-F8C0-A266-D3B5-FDCDDBAA5315
[root@zcbus_02 yaml]# vim docker-compose.yml 
networks:
  default:
    external: true
    name: zcbus
services:
  zcbus:
    container_name: zcbus
    environment:
      KAFKA_SERVER: 192.168.2.53:6600
      LANG: en_US.UTF-8
      ZCBUS_CONTAINER: zcbus
      ZCBUS_CUSTOMERID: 10001
      ZCBUS_MACHINE_CODE: 7D984D56-F8C0-A266-D3B5-FDCDDBAA5315
      ZC_IPADDRESS: 192.168.2.54
      database: zcbus
      db_type: null
      dbhost: zcbusnet
      dbport: 33060
      dbpwd: e0twWGp8aVtWfGB8dn9YdTo
      dbuser: QFlYT0k6
    image: reg.zbomc.com/zcbus_server:v2.0.1
    volumes:
    - /data/docker02/zcbusdata/zcbusserver/bin:/usr/local/zcbus/bin
    - /data/docker02/zcbusdata/zcbusserver/lib:/usr/local/zcbus/lib
    - /data/docker02/zcbusdata/zcbusserver/cache:/usr/local/zcbus/cache
    - /data/docker02/zcbusdata/zcbusserver/mq:/usr/local/zcbus/mq
    - /data/docker02/zcbusdata/zcbusserver/zcbus/log:/usr/local/zcbus/log
    - /data/docker02/zcbusdata/zcbusserver/jdk:/usr/local/zcbus/jdk
    - /data/docker02/zcbusdata/zcbusserver/jar:/usr/local/zcbus/jar
  zcbusdb:
    container_name: zcbusdb
    environment:
      COM_CODE: 1
      DB_USER_PWD: e0twWGp8aVtWfGB8dn9YdTo
      IF_INSTALL_EN: 0
      KAFKA_SERVER: 192.168.2.53:6600
      POSTGRES_PASSWORD: zcbus
      SERVER_ID: 2
      ZCBUS_CACHE_TYPE: zcbus_cache
      ZCBUS_VERSION: client_remote
      ZCTYPE: cloud_client
      database: zcbus
      db_type: null
      dbhost: zcbusnet
      dbport: 33060
      dbpwd: e0twWGp8aVtWfGB8dn9YdTo
      dbuser: QFlYT0k6
    expose:
    - 3306
    image: reg.zbomc.com/zcbus_mysql:v2.0.1
    privileged: true
    restart: always
    volumes:
    - /data/docker02/zcbusdata//data:/var/lib/mysql
  zcbusnet:
    container_name: zcbusnet
    environment:
      MODE: net
      ZCBUS_LOCALIP: zcbusnet:33060
      ZCBUS_MACHINE_CODE: 7D984D56-F8C0-A266-D3B5-FDCDDBAA5315
      ZCBUS_NODEIPS: zcbusdb
      ZCBUS_REMOTEIP: zcbusdb:3306
      ZC_IPADDRESS: 192.168.2.54
      database: zcbus
      db_type: null
      dbhost: zcbusnet
      dbport: 33060
      dbpwd: e0twWGp8aVtWfGB8dn9YdTo
      dbuser: QFlYT0k6
    image: reg.zbomc.com/zcbus_net:v2.0.1
    ports:
    - 33060:33060
    privileged: true
    restart: always
    volumes:
    - /data/docker02/zcbusdata/zcbusserver/bin:/usr/local/zcbus/bin
    - /data/docker02/zcbusdata/zcbusserver/lib:/usr/local/zcbus/lib
    - /data/docker02/zcbusdata/zcbusserver/zcbus/log:/usr/local/zcbus/log
    - /data/docker02/zcbusdata/zcbusserver/jdk:/usr/local/zcbus/jdk
    - /data/docker02/zcbusdata/zcbusserver/jar:/usr/local/zcbus/jar
  zcbusrestapi:
    container_name: zcbusrestapi
    depends_on:
    - zcbusnet
    environment:
      DB_HOST: zcbusnet
      DB_NAME: zcbus
      DB_PORT: 33060
      DB_USER_NAME: ENC(QFlYT0k6)
      DB_USER_PWD: ENC(e0twWGp8aVtWfGB8dn9YdTo)
      INSTALL_MODE: 0
      SPRING_PROFILE: prod
      ZCBUS_CUSTOMER_SIG: 10001||6d3a3cac-dfb0-44d0-a6af-399076d61d64||http://192.168.2.54:8890||7D984D56-F8C0-A266-D3B5-FDCDDBAA5315
   ##10001:远程订阅客户端ID,6d3a3cac-dfb0-44d0-a6af-399076d61d64:远程订阅客户端序列号,http://192.168.2.54:8890:远程订阅客户端地址,7D984D56-F8C0-A266-D3B5-FDCDDBAA5315:远程订阅客户端主机机器码
    image: reg.zbomc.com/zcbus_restapi:v2.0.1
    restart: always
    volumes:
    - /data/docker02/zcbusdata/web/jdk:/usr/local/jdk
  zcbusvue:
    container_name: zcbusvue
    environment:
      HTTP_MODE: http
    image: reg.zbomc.com/zcbus_vue:v2.0.1
    ports:
    - 8890:80
    restart: always
    volumes:
    - /data/docker02/zcbusdata/vue/logs:/var/logs
version: '2'

5 远程订阅客户端页面登录

订阅端初始账号/密码:zcbus/123456(首次登录修改密码)

文档更新时间: 2024-12-03 22:50   作者:liyue