1 环境准备
主机 | 配置说明 |
---|---|
物理配置 | cpu 4核以上,内存4GB以上,磁盘100GB以上 |
操作系统 | LINUX(centos7) |
磁盘空间 | 缓存目录建议同步数据库大小的 70% 以上 |
防火墙 | 关闭 |
seLinux | 关闭 |
网络 | 数据交换服务器,需要和需要共享数据的数据库、大数据平台之间,网络设备畅通。如果存在网络不畅通情况下,必须通过前置机畅通,通过前置机跳转实现数据交换服务。 |
2 环境检查
2.1 防火墙服务检查
检查防火墙是否启动:
systemctl status firewalld.service
停止防火墙服务:
systemctl stop firewalld.service
禁用防火墙开机启动服务:
systemctl disable firewalld.service
3 软件下载解压
- zcbus安装包下载地址
http://zbomc.com:8888/ZCBUS/2.0/zcbus.simple_server.docker.v2.0.1.x86_64.v1.zcbus.tar.gz
http://zbomc.com:8888/ZCBUS/2.0/zcbus.simple_server.docker.v2.0.1.x86_64.v2.zcbus.tar.gz4 安装前准备
4.1 应用程序版本要求
MySQL:5.7.43及以上版本 Kafka:2.4.0及以上版本 注:如客户提供以上程序需确认MySQL数据库参数是否符合要求,Kafka是否需要Sasl验证,如果需要单独搭建zcbusdb/kafka组件,清参考下文。
4.2 搭建程序组件
- 如需自己搭建MySQL/Kafka环境组件,请参考如下文档:
- 非容器化部署MYSQL/KAFKA安装参考
http://docs.zbomc.com/docs/proc_mgr/mysql%20and%20kafka - 自动化安装Kafka集群
http://docs.zbomc.com/docs/proc_mgr/kafka_cluster_install
- 非容器化部署MYSQL/KAFKA安装参考
5 安装配置文件修改
5.1 zcbusdb参数文件zcbus_master.ini
修改解压目录config下zcbus_master.ini文件:
vim ./config/zcbus_master.ini
zcbus_user=QFlYT0k6
zcbus_password=C0tbQBtre2A6
zcbus_host=192.168.2.24
zcbus_port=33060
zcbus_db=zcbus
##此处修改对应的zcbusdb连接信息,zcbus_user/zcbus_password需要填写pwd_encode程序加密后的内容
5.2 zcbus.properties文件参数详情
[root@zcbus simple_server]# vim 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
#-------------------------------------------------------------------------------
## 添加默认用户zcbus用于日常docker维护,一般默认即可
ZC_DOCKER_USER=zcbus
#-------------------------------------------------------------------------------
# Specify a location to install ZCBUS'S TYPE ,Only support cloud_client
#-------------------------------------------------------------------------------
## 指定zcbus安装类型,此处默认即可
ZC_TYPE=server
#-------------------------------------------------------------------------------
# Specify a docker's listener port
#-------------------------------------------------------------------------------
## zcbus_docker程序端口,默认即可
ZC_DOCKER_SERVER_PORT=8899
#-------------------------------------------------------------------------------
# Zcbus client remote location API service URL connection service
#-------------------------------------------------------------------------------
## 默认即可
ZC_CUSTOMER_URL=http://v2.zbomc.com
#-------------------------------------------------------------------------------
# Remote receiving zcbus data stream port service
#-------------------------------------------------------------------------------
## 设置KAFKA连接信息,默认格式为:IP:PORT。集群格式为:NODE1_IP:PORT,NODE2_IP:PORT,NODE3_IP:PORT
ZC_CACHE_SERVER=zcbuskafka:9092
#-------------------------------------------------------------------------------
# Remote receiving zcbus data resource port service
#-------------------------------------------------------------------------------
## 设置zcbus连接数据库信息
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
#-------------------------------------------------------------------------------
## 远程连接zcbusdb地址
ZC_DB_IPPORT=zcbusdb:3306
#-------------------------------------------------------------------------------
# Remote zcbus'services nodes ip
#-------------------------------------------------------------------------------
## 集群IP列表
ZC_NODE_IPS=zcbusdb
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Remote install zcbus type integrate/external
#-------------------------------------------------------------------------------
## 设置zcbus软件安装模式,默认为integrate模式,使用external模式需要配合ZC_SERV_LOCALTION参数使用
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_METHOD参数使用,默认为0
## ZC_SERV_LOCALTION=1时,只安装zcbusvue/zcbusrestapi两个容器,zcbusdb/kafka均用外部的程序,此安装模式下,需要修改:MySQL连接信息(包括config/zcbus_master.ini文件和common/zcbus.properties文件中的zcbus连接数据库信息部分)
## ZC_SERV_LOCALTION=2时,安装zcbusvue/zcbusrestapi,zcbusdb三个容器,kafka需要用外部程序,此安装模式下,仅需修改kafka链接地址即可
## ZC_SERV_LOCALTION=3时,安装zcbusvue/zcbusrestapi,zcbuskafka/zcbuszookeeper四各容器,MySQL需要用外部程序,此安装模式下仅需修改MySQL连接信息即可(包括config/zcbus_master.ini文件和common/zcbus.properties文件中的zcbus连接数据库信息部分)
ZC_SERV_LOCALTION=0
#-------------------------------------------------------------------------------
# Parameter set to zcbus_cache/kafka_cache
# zcbus_cache is zcbus's mq for zcbus single mode
# kafka_cache is kafka or zcbus cluster mode
#-------------------------------------------------------------------------------
ZC_CACHE_TYPE=kafka_cache
#-------------------------------------------------------------------------------
# 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
文档更新时间: 2024-10-24 21:42 作者:liyue