注:client模式安装适配新主机安装,如果安装过server模式,不能使用client再次安装,否则会重构docker-compose.yml,进而导致kafka、zookeeper、zcbusdb等容器清理
下载容器安装包
http://zbomc.com:8888/ZCBUS/2.0/zcbus.simple_server.docker.v2.0.1.X86_64.tar.gz
解压
tar -xzvf zcbus.simple_server.docker.v2.0.1.tar.gz
修改参数文件
vi ./config/zcbus_master.ini
zcbus_host=172.17.58.146
zcbus_port=3306
zcbus_user=QFlYT0k6
zcbus_password=e0twWGp8aVtWfGB8dn9YdTo
zcbus_db=zcbus
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
#-------------------------------------------------------------------------------
ZC_DATA_HOME=/data/docker
#-------------------------------------------------------------------------------
# Specify a location to install ZCBUS'S TYPE ,Only support cloud_client
#-------------------------------------------------------------------------------
ZC_TYPE=server
#-------------------------------------------------------------------------------
# Zcbus client remote location API service URL connection service
#-------------------------------------------------------------------------------
ZC_CUSTOMER_URL=http://172.17.46.245:8890
#-------------------------------------------------------------------------------
# Remote receiving zcbus data stream port service
#-------------------------------------------------------------------------------
ZC_CACHE_SERVER=172.17.46.244:9092
#-------------------------------------------------------------------------------
# Remote receiving zcbus data resource port service
#-------------------------------------------------------------------------------
ZC_DB_SERVER=ZC_DB_SERVER=QFlYT0k6/e0twWGp8aVtWfGB8dn9YdTo@172.17.58.146:3306/zcbus
#-------------------------------------------------------------------------------
# Remote install zcbus type integrate/external
#-------------------------------------------------------------------------------
ZC_METHOD=integrate
安装
sh zcmgr.sh install
[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####################
.......................................[ server ]
.......................................[ client ]
.......................................[ server_full ]
.......................................[ client_full ]
.......................................[ cloud_server ]
.......................................[ cloud_client ]
.......................................[ cloud_push ]
Please input Select Mode,default mode is [ server ]:client
[INFO] Please input zcbus's server_name :新加容器名
服务端添加容器
修改新加容器的kafka地址
重启新加容器
docker restart 新加容器名
文档更新时间: 2023-07-19 18:12 作者:周风磊