1 环境准备
主机 | 配置说明 |
---|---|
物理配置 | cpu 4核以上,内存4GB以上,磁盘100GB以上 |
操作系统 | LINUX(centos7) |
网络 | 数据交换服务器,需要和需要共享数据的数据库、大数据平台之间,网络设备畅通。如果存在网络不畅通情况下,必须通过前置机畅通,通过前置机跳转实现数据交换服务。 |
2 环境检查
2.1 防火墙服务检查
检查防火墙是否启动:
systemctl status firewalld.service
停止防火墙服务:
systemctl stop firewalld.service
禁用防火墙开机启动服务:
systemctl disable firewalld.service
2.2 主机环境确认
检查是否安装过zcbus的server模式:
docker ps
- 注意:client模式安装适配新主机安装,如果安装过server模式,不能使用client再次安装,否则会重构docker-compose.yml,进而导致kafka、zookeeper、zcbusdb等容器清理
3.下载容器安装包
http://zbomc.com:8888/ZCBUS/2.0/zcbus.simple_client.docker.v2.0.1.x86_64.v1.plus.tar.gz
http://zbomc.com:8888/ZCBUS/2.0/zcbus.simple_client.docker.v2.0.1.x86_64.v2.plus.tar.gz
3.1解压
tar -xzvf zcbus.simple_client.docker.v2.0.1.x86_64.v1.plus.tar.gz
tar -xzvf zcbus.simple_client.docker.v2.0.1.x86_64.v2.plus.tar.gz
注:在同一目录下解压
4.安装前准备
4.1修改参数文件
[root@zcbustest simple_client]# vi 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
#-------------------------------------------------------------------------------
**zcbus缓存文件与安装目录,此处默认即可,安装过程中可重新手动指定该目录
ZC_DATA_HOME=/data/docker02
#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify ZCBUS'S docker basic home ,for storage docker's cache and images
#-------------------------------------------------------------------------------
**docker安装目录
ZC_DOCKER_HOME=/data/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
#-------------------------------------------------------------------------------
**指定zcbus安装类型,此处默认即可
ZC_TYPE=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://v2.zbomc.com
#-------------------------------------------------------------------------------
# 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
#-------------------------------------------------------------------------------
**此处根据主节点的缓存方式修改,zbmq选择zcbus_cache,kafka缓存方式选择zcbus_kafka
ZC_CACHE_TYPE=zcbus_cache
#-------------------------------------------------------------------------------
# Remote receiving zcbus data stream port service
#-------------------------------------------------------------------------------
**根据ZC_CACHE_TYPE的选择,设置kafka/zbmq的连接信息,格式为:IP:PORT
ZC_CACHE_SERVER=192.168.2.55:6600
#-------------------------------------------------------------------------------
# Remote receiving zcbus data resource port service
# dbtype/user/pwd is allow change ,linked to ZC_DB_IPPORT
#-------------------------------------------------------------------------------
#ZC_NET_DB_SERVER_TYPE=postgresql
ZC_NET_DB_SERVER_TYPE=mysql
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
#-------------------------------------------------------------------------------
**主节点数据库ip:端口
ZC_DB_IPPORT=192.168.2.55:33060
#-------------------------------------------------------------------------------
# Remote zcbus'services nodes ip
#-------------------------------------------------------------------------------
**主节点IP
ZC_NODE_IPS=192.168.2.55
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# 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.1安装过程
[root@zcbustest simple_client]# ./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 14 > 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==➜ ****************************** 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 status ZC_NET_DB_SERVER_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 < 166G[/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 < 166G[/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 /data/docker02/zcbusdata .... ##################
192.168.2.56==✔ Mysql data directory /data/docker02/zcbusdata/mysql/data create Successful!
192.168.2.56==[Step 7]: checking kafka directory ...
############################## Create directory kafka /data/docker02/zcbusdata/kafka .... ############
192.168.2.56==✔ Kafka data directory /data/docker02/zcbusdata/zcbuskafka/logs create Successful!
192.168.2.56==[Step 8]: checking cache directory ...
############################## Create directory cache /data/docker02/zcbusdata .... ##################
192.168.2.56==✔ Mysql data directory /data/docker02/zcbusdata/cache create Successful!
192.168.2.56==[Step 9]: checking zookeeper directory ...
############################## Create directory kafka /data/docker02/zcbusdata/kafka .... ############
192.168.2.56==✔ Zookeeoer data directory /data/docker02/zcbusdata/zcbuszookeeper/data create Successful!
192.168.2.56==[Step 10]: loading zcbus images ...
[INFO] Please input if load images y/n:y
docker load -i /data/soft/simple_client/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
5b5df74d9d4d: Loading layer [==================================================>] 37.38kB/37.38kB
f225c5da8d23: Loading layer [==================================================>] 4.608kB/4.608kB
bb555e247831: Loading layer [==================================================>] 7.68kB/7.68kB
180bc7b7be3e: Loading layer [==================================================>] 5.632kB/5.632kB
42b2b289ffb4: Loading layer [==================================================>] 7.168kB/7.168kB
255fe0b78079: Loading layer [==================================================>] 8.192kB/8.192kB
2cd879fe4d67: Loading layer [==================================================>] 5.12kB/5.12kB
a4d8f923aac2: Loading layer [==================================================>] 5.632kB/5.632kB
1b9bb13c2f85: Loading layer [==================================================>] 5.632kB/5.632kB
3323bb5cb256: Loading layer [==================================================>] 5.632kB/5.632kB
6bba34ecc14d: Loading layer [==================================================>] 5.632kB/5.632kB
057e7551b138: Loading layer [==================================================>] 5.632kB/5.632kB
eba3273b122c: Loading layer [==================================================>] 6.144kB/6.144kB
ebf5f53e468e: Loading layer [==================================================>] 5.632kB/5.632kB
11585664a6f9: Loading layer [==================================================>] 7.68kB/7.68kB
ae8258c9cce1: Loading layer [==================================================>] 6.656kB/6.656kB
aa0e134b4931: Loading layer [==================================================>] 5.12kB/5.12kB
61e38b44ad9a: Loading layer [==================================================>] 5.12kB/5.12kB
fe585f1e6e2d: Loading layer [==================================================>] 5.12kB/5.12kB
5ecbc3eb299d: Loading layer [==================================================>] 4.608kB/4.608kB
7b21c8733fce: Loading layer [==================================================>] 7.168kB/7.168kB
4bf150c382ba: Loading layer [==================================================>] 7.168kB/7.168kB
f604bf460bbc: Loading layer [==================================================>] 6.656kB/6.656kB
491a442b25d8: Loading layer [==================================================>] 7.168kB/7.168kB
0e311b564b4a: Loading layer [==================================================>] 6.656kB/6.656kB
9845d1310da2: Loading layer [==================================================>] 5.632kB/5.632kB
16be9034157d: Loading layer [==================================================>] 5.632kB/5.632kB
031df882913c: Loading layer [==================================================>] 5.632kB/5.632kB
8cc0fabdd791: Loading layer [==================================================>] 7.68kB/7.68kB
c99ff88fa619: 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 /data/soft/simple_client/soft/images/zcbus_job.tar.gz
625523cb9cce: Loading layer [==================================================>] 5.895MB/5.895MB
a67b42698a62: Loading layer [==================================================>] 182MB/182MB
bf1024842234: Loading layer [==================================================>] 3.072kB/3.072kB
aac1dbac5ca8: Loading layer [==================================================>] 2.048kB/2.048kB
ef1627839491: Loading layer [==================================================>] 2.56kB/2.56kB
088b1eaed129: Loading layer [==================================================>] 3.072kB/3.072kB
72220479835e: Loading layer [==================================================>] 72.48MB/72.48MB
d80dd6c9c669: Loading layer [==================================================>] 2.56kB/2.56kB
Loaded image: reg.zbomc.com/zcbus_job:v2.0.1
192.168.2.56==➜ Load images to docker's sucessfull...
docker load -i /data/soft/simple_client/soft/images/zcbus_restapi.tar.gz
564eb7407305: Loading layer [==================================================>] 3.072kB/3.072kB
58ddacd8fdec: Loading layer [==================================================>] 2.048kB/2.048kB
ccf635082cb8: Loading layer [==================================================>] 2.56kB/2.56kB
633496d2ed5d: Loading layer [==================================================>] 3.072kB/3.072kB
40873b7f6d80: Loading layer [==================================================>] 256.1MB/256.1MB
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 /data/soft/simple_client/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
556e77702e01: Loading layer [==================================================>] 94.21kB/94.21kB
9d69fc139a69: Loading layer [==================================================>] 97.28kB/97.28kB
3a2aaf1fbe73: Loading layer [==================================================>] 6.144kB/6.144kB
2c81b114ca43: Loading layer [==================================================>] 3.584kB/3.584kB
e8336c7b3945: Loading layer [==================================================>] 6.144kB/6.144kB
e1cb493fd1e3: Loading layer [==================================================>] 4.608kB/4.608kB
edbb5b93c020: 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 /data/soft/simple_client/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
202000b25d08: Loading layer [==================================================>] 56.26MB/56.26MB
94b0b60924cc: Loading layer [==================================================>] 6.144kB/6.144kB
849e3b4bd457: Loading layer [==================================================>] 6.144kB/6.144kB
ef8302914e2c: Loading layer [==================================================>] 3.584kB/3.584kB
3ce7a56ed502: Loading layer [==================================================>] 4.608kB/4.608kB
0bc7f78b9fdb: 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...
192.168.2.56==➜
192.168.2.56==➜ network zcbus is already exists ...
192.168.2.56==➜ /data/soft/simple_client/common/zcbus.properties ZC_SERV_LOCALTION :[0]
zctype:client====zcc:0
Check hostname [zcbustest]'s ip is :[192.168.2.56]
mode :client,file=client.yml.jinja
===> Ready basic info zctype client : integrate ,ymlbasic : client.yml.jinja
=====fulldict[ dict_keys(['zcbusrestapi', 'zcbusnet', 'zcbusvue']) ]
Flush data to /compose_location/docker-compose.yml
===> Finish init basic ...
192.168.2.56==➜ prepare client Sucessfull...
192.168.2.56==➜
192.168.2.56==➜
Client Skip check port ...!!!!
192.168.2.56==[Step 11]: 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 12]: starting zcbus ...
no such service: zcbusdb
192.168.2.56==➜ Check zcbusdb Connect start ...
+ '[' mysqlX == mysqlX ']'
+ /data/soft/simple_client/soft/zcbus/bin/sql_exec 'mysql:zcbus/'\''AqJbPFSalFZFLEbO'\''@192.168.2.55:33060/zcbus' -sql 'select now() dt;'
sql_exec: Release 8.2-16 64 bit (QA) - Production on 2024-11-13 11:01:50
Copyright (c) 2024 ZCBUS. All Rights Reserved.
process id 856759
connect string: mysql:zcbus/'AqJbPFSalFZFLEbO'@192.168.2.55:33060/zcbus
login host[192.168.2.55] port[33060] user[zcbus] password[AqJbPFSalFZFLEbO] database[zcbus].
[INF] load libmysqlclient.so
[LV0] 2024-11-18 11:14:15: connect to mysql zcbus/***@192.168.2.55:33060 ...
[INF] set client character set utf8mb4...
[INF] new client character set: utf8mb4
[INF] MYSQL VERSION: 50743
[LV1] SQL-> select version()
[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'
[LV1] SQL-> SET SESSION sql_mode='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'
[LV1] SQL-> select now() dt;
+ res=0
+ set +x
192.168.2.56==➜ Check zcbusdb Connect Sucessfull...
192.168.2.56==➜ =============will load data mode for client================
no such service: client
====>>>ZCBUS [ Mon Nov 18 11:14:15 CST 2024 ]
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
192.168.2.56==➜
192.168.2.56==[Step 12]: sync zcbus_docker to /data/docker02/...
copy /data/soft/simple_client/bin /data/docker02/...
192.168.2.56==[Step 12]: 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 /data/soft/simple_client/config/zcbus_master.ini
[INF] load libmysqlclient.so
[LV0] 2024-11-18 11:14:21: connect to mysql zcbus/***@192.168.2.55: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 /data/soft/simple_client/bin /data/docker02/...
copy /data/soft/simple_client/yaml /data/docker02/...
copy /data/soft/simple_client/common/add_zcbus_docker_service.sh /data/docker02/common/...
copy /data/soft/simple_client/common/docker.service /data/docker02/common/...
copy /data/soft/simple_client/common/zcbus_client.rsp /data/docker02/common/...
copy /data/soft/simple_client/common/zcbus_docker.service /data/docker02/common/...
copy /data/soft/simple_client/common/zcbus.properties /data/docker02/common/...
copy /data/soft/simple_client/common/zcbus.yml /data/docker02/common/...
copy /data/soft/simple_client/common/.check /data/docker02/common/...
copy /data/soft/simple_client/common/.zcbus.common /data/docker02/common/...
copy /data/soft/simple_client/zcmgr.sh /data/docker02/...
copy /data/soft/simple_client/soft/docker-20.10.10.tgz /data/docker02/soft/...
copy /data/soft/simple_client/soft/docker-compose-Linux-x86_64 /data/docker02/soft/...
copy /data/soft/simple_client/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 3/3
✔ Container zcbusvue Started 6.7s
✔ Container zcbusnet Started 6.6s
✔ Container zcbusrestapi Started 0.7s
192.168.2.56==✔ ----Zcbus client zcbus has been installed and started successfully.----
192.168.2.56==➜ sync config info to /data/docker02/ begin ...
copy /data/soft/simple_client/config /data/docker02/...
copy /data/soft/simple_client/yaml /data/docker02/...
192.168.2.56==➜ sync config info to /data/docker02/ end ...
[+] Restarting 3/3
✔ Container zcbusnet Started 10.8s
✔ Container zcbusrestapi Started 10.7s
✔ Container zcbusvue Started 10.8s
[+] Running 3/0
✔ Container zcbusnet Running 0.0s
✔ Container zcbusrestapi Running 0.0s
✔ Container zcbusvue Running 0.0s
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.----
5.在新节点创建容器
5.1创建容器
文档更新时间: 2024-11-17 21:21 作者:liyue