1.安装环境准备

类型 内容
CPU 建议不低于4核虚机或者服务器,最好在16核以上
存储 存储不少于500GB
内存 内存不低于8GB,建议8GB以上

检查内容

  • 关闭防火墙
  • 主机名检查
  • /etc/security/limit.conf检查
  • 系统参数检查
  • 磁盘目录检查
  • /etc/hosts检查
  • SELINUX检查

2.安装前准备

  • 确认hostname

    [root@oceanbase standard_server]# hostname
    oceanbase
  • 修改 hosts 文件

    [root@oceanbase standard_server]# cat /etc/hosts
    192.168.2.37 oceanbase
  • 下载安装包地址

    http://zbomc.com:8888/ZCBUS/2.0/zcbus.standard_server.docker.v2.0.1.x86_64.v1.plus.mysql.0.zbmq.tar.gz
    http://zbomc.com:8888/ZCBUS/2.0/zcbus.standard_server.docker.v2.0.1.x86_64.v2.plus.mysql.0.zbmq.tar.gz
  • 解压安装包

    tar -zxvf zcbus.standard_server.docker.v2.0.1.x86_64.v1.plus.mysql.0.zbmq.tar.gz
    tar -zxvf zcbus.standard_server.docker.v2.0.1.x86_64.v2.plus.mysql.0.zbmq.tar.gz
  • 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

#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify ZCBUS'S docker basic home ,for storage docker's cache and images 
#-------------------------------------------------------------------------------
## 如服务器未安装DOCKER,软件会自动安装DOCKER并设置DOCKER目录,一般默认即可
ZC_DOCKER_HOME=/data/docker

#-------------------------------------------------------------------------------
# Specify the installation option.
# Specify docker's username
#-------------------------------------------------------------------------------
## 指定docker的使用用户,默认即可
ZC_DOCKER_USER=zcbus

#-------------------------------------------------------------------------------
# Specify a location to install ZCBUS'S TYPE ,Only support cloud_client 
#-------------------------------------------------------------------------------
## 指定软件安装的类型,默认即可
ZC_TYPE=server

#-------------------------------------------------------------------------------
# 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
#-------------------------------------------------------------------------------
## 指定软件缓存方式
ZC_CACHE_TYPE=zcbus_cache

#-------------------------------------------------------------------------------
# Remote receiving zcbus data stream port service
#-------------------------------------------------------------------------------
## 指定软件缓存地址,一般配合ZC_CACHE_TYPE参数使用
ZC_CACHE_SERVER=zcbuscache:6600

#-------------------------------------------------------------------------------
# Remote receiving zcbus data resource port service
#-------------------------------------------------------------------------------
## 指定zcbusnet连接的数据库信息
#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
#-------------------------------------------------------------------------------
## 指定软件数据库的连接主机及端口
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

3.安装过程

[root@oceanbase standard_server]# ./zcmgr.sh install
192.168.2.53== ➜  Check Memory 4 > 0 ok ...

192.168.2.53==[Step 1]: checking OS version/firewalld/seLinux  and config ...
192.168.2.53== ➜  192.168.2.53  zcbus_01
setenforce: SELinux is disabled
[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####################
.......................................[ serverv2 ]
.......................................[ server ]
.......................................[ cloud_server ]
Please input Select Mode,default mode is [ server ]:

192.168.2.53==[Step 2]: ready for data dir path ...
[INFO] Please input zcbus data path /data/docker02:
192.168.2.53== ➜  Load Path to /data/docker02 ...

192.168.2.53==[Step 3]: add zcbus user ...
Creating mailbox file: File exists

192.168.2.53==[Step 4]: checking if docker is installed ...

192.168.2.53==[Step 5]: checking docker-compose is installed ...

192.168.2.53==[Step 6]: checking mysql directory ...

192.168.2.53==[Step 7]: checking kafka directory ...

192.168.2.53==[Step 8]: checking cache directory ...

192.168.2.53==[Step 9]: checking zookeeper directory ...

192.168.2.53==[Step 10]: loading zcbus images ...
[INFO] Please input if load images y/n:y
funny_diffie
192.168.2.53== ➜  prepare server Sucessfull...

192.168.2.53==[Step 11]: checking if ports is used ...

192.168.2.53==[Step 12]: ready basic soft for container ...

192.168.2.53==[Step 13]: starting zcbus ...
[+] Running 1/1
 ✔ Container zcbusdb  Started                                                                                                                                                                               2.8s 
[+] Running 1/1
 ✔ Container zcbusnet  Started                                                                                                                                                                              0.4s 
192.168.2.53== ➜  Check zcbusdb Connect Failed ,wait 30 seconds and retry 1 times ...

====>>>ZCBUS [ Mon May 12 11:20:54 CST 2025 ]
NAME       IMAGE                               COMMAND                  SERVICE    CREATED          STATUS          PORTS
zcbusdb    reg.zbomc.com/zcbus_mysql:v2.0.1    "docker-entrypoint.s…"   zcbusdb    43 seconds ago   Up 22 seconds   3306/tcp, 33060/tcp
zcbusnet   reg.zbomc.com/zcbus_server:v2.0.1   "/bin/bash -c ${ZCBU…"   zcbusnet   40 seconds ago   Up 39 seconds   0.0.0.0:33060->33060/tcp, :::33060->33060/tcp

192.168.2.53==[Step 13]: sync zcbus_docker to /data/docker02/...

192.168.2.53==[Step 13]: ready basic soft for basic zcbus_docker server ...
zcbus_docker is Stopping ...
zcbus_docker is Finished ...
zcbus_docker is Stopping ...
zcbus_docker is Finished ...
archive log /data/docker02/log/log.docker ---> /data/docker02/log/archive/log.docker.20250512112113
[+] Restarting 1/1
 ✔ Container zcbusnet  Started                                                                                                                                                                             10.5s 
[+] Running 7/7
 ✔ Container zcbusredis    Started                                                                                                                                                                          1.5s 
 ✔ Container zcbuscache    Started                                                                                                                                                                          1.4s 
 ✔ Container zcbusdb       Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusnet      Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusrestapi  Started                                                                                                                                                                          2.2s 
 ✔ Container zcbusjob      Started                                                                                                                                                                          2.1s 
 ✔ Container zcbusvue      Started                                                                                                                                                                          2.5s 
----Zcbus has been installed and started successfully.----
=================================== for add zcbus continer /data/docker02 =========================================
no such service: zcbus
bold_ellis
[+] Running 1/0
 ✔ Container zcbusdb  Running                                                                                                                                                                               0.0s 
[+] Running 1/0
 ✔ Container zcbusnet  Running                                                                                                                                                                              0.0s 

====>>>ZCBUS [ Mon May 12 11:21:29 CST 2025 ]
NAME           IMAGE                                COMMAND                  SERVICE        CREATED              STATUS                  PORTS
zcbus          reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbus          1 second ago         Up Less than a second   
zcbuscache     reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbuscache     5 seconds ago        Up 3 seconds            0.0.0.0:6600-6602->6600-6602/tcp, :::6600-6602->6600-6602/tcp
zcbusdb        reg.zbomc.com/zcbus_mysql:v2.0.1     "docker-entrypoint.s…"   zcbusdb        About a minute ago   Up 57 seconds           3306/tcp, 33060/tcp
zcbusjob       reg.zbomc.com/zcbus_job:v2.0.1       "sh /run.sh"             zcbusjob       5 seconds ago        Up 2 seconds            7080/tcp
zcbusnet       reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbusnet       About a minute ago   Up 5 seconds            0.0.0.0:33060->33060/tcp, :::33060->33060/tcp
zcbusredis     reg.zbomc.com/zcbus_redis:v2.0.1     "/bin/sh -c 'redis-s…"   zcbusredis     5 seconds ago        Up 3 seconds            6379/tcp
zcbusrestapi   reg.zbomc.com/zcbus_restapi:v2.0.1   "sh /run.sh"             zcbusrestapi   5 seconds ago        Up 2 seconds            7080/tcp
zcbusvue       reg.zbomc.com/zcbus_vue:v2.0.1       "/docker-entrypoint.…"   zcbusvue       5 seconds ago        Up 2 seconds            0.0.0.0:8890->80/tcp, :::8890->80/tcp
root     708724      1  0 11:21 pts/0    00:00:00 /data/docker02/bin/zcbus_docker -log_level 2
root     708756      1  0 11:21 pts/0    00:00:00 /data/docker02/bin/zcbus_docker -manager -log_level 2
root     708793      1  0 11:21 pts/0    00:00:00 /data/docker02/bin/zcbus_docker -listener -log_level 2
=====================================================================================================
[+] Restarting 3/3
 ✔ Container zcbusrestapi  Started                                                                                                                                                                         11.2s 
 ✔ Container zcbusvue      Started                                                                                                                                                                         11.2s 
 ✔ Container zcbusnet      Started                                                                                                                                                                         11.1s 
[+] Running 8/0
 ✔ Container zcbusdb       Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusnet      Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusjob      Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusredis    Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusrestapi  Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusvue      Running                                                                                                                                                                          0.0s 
 ✔ Container zcbus         Running                                                                                                                                                                          0.0s 
 ✔ Container zcbuscache    Running                                                                                                                                                                          0.0s 
----Zcbus has been installed and started successfully.----
  • 详细安装日志
[root@oceanbase tmp]# tail -f /tmp/.check_zcbus.log 
192.168.2.53== ➜  Check ZC_DOCKER_HOME=/data/docker ZC_DATA_HOME=/data/docker02 ok
192.168.2.53== ➜  Check Memory 4 > 0 ok ...
192.168.2.53== ➜  Check /etc/hosts Sucessfull...

192.168.2.53==[Step 1]: checking OS version/firewalld/seLinux  and config ...
###modify host
192.168.2.53== ➜  check host ::: /etc/hosts
192.168.2.53== ➜  check host ::: 1 ::: OK
192.168.2.53== ➜  192.168.2.53  zcbus_01
###modify selinux
192.168.2.53== ➜  check selinux ::: /etc/selinux/config
192.168.2.53== ➜  check selinux ::: disabled ::: OK
###modify firewalld
192.168.2.53== ➜  check firewalld
192.168.2.53== ➜  check firewalld ::: not running ::: OK
###modify sysctl
192.168.2.53== ➜  check sysctl ::: /etc/sysctl.conf
192.168.2.53== ➜  deal param vm.max_map_count=2000000
192.168.2.53== ➜  deal param kernel.shmall=4294967296
192.168.2.53== ➜  deal param fs.aio-max-nr=1048576
192.168.2.53== ➜  deal param fs.file-max=6815744
192.168.2.53== ➜  deal param kernel.shmmax=2070833152
192.168.2.53== ➜  deal param kernel.shmmni=4096
192.168.2.53== ➜  deal param kernel.sem=250 32000 100 128
192.168.2.53== ➜  deal param net.ipv4.ip_local_port_range=1024 65500
192.168.2.53== ➜  deal param net.core.rmem_default=262144
192.168.2.53== ➜  deal param net.core.rmem_max=4194304
192.168.2.53== ➜  deal param net.core.wmem_default=262144
192.168.2.53== ➜  deal param net.core.wmem_max=1048576
192.168.2.53== ➜  deal param kernel.threads-max=999999
192.168.2.53== ➜  deal param kernel.pid_max=999999
192.168.2.53== ➜  deal param vm.max_map_count=1999999
192.168.2.53== ➜  deal param net.ipv4.ip_forward=1
192.168.2.53== ➜  deal param fs.inotify.max_user_watches=1048576
192.168.2.53== ➜  deal param fs.inotify.max_user_instances=1048576
###modify limits
192.168.2.53== ➜  check limits ::: /etc/security/limits.conf
192.168.2.53== ➜  soft-nofile ::: 1048500 (>=1048500) ::: OK
192.168.2.53== ➜  hard-nofile ::: 1048500 (>=1048500) ::: OK
192.168.2.53== ➜  soft-nproc ::: 65536 (>=65536) ::: OK
192.168.2.53== ➜  hard-nproc ::: 65536 (>=65536) ::: OK
192.168.2.53== ➜  CHECK RESULT
192.168.2.53== ➜  ***************************************************************************************************
192.168.2.53== ➜  ****************************** Ready Install for zcbus grid cluster ....***************************
192.168.2.53== ➜  ****************************** check variables for  ....***************************
192.168.2.53== ➜  ***************************************************************************************************
192.168.2.53== ➜  check status ZC_DATA_HOME sucessfull..
192.168.2.53== ➜  check status ZC_DOCKER_HOME sucessfull..
192.168.2.53== ➜  check status ZC_DOCKER_SERVER_PORT sucessfull..
192.168.2.53== ➜  check status ZC_TYPE sucessfull..
192.168.2.53== ➜  check status ZC_CUSTOMER_URL sucessfull..
192.168.2.53== ➜  check status ZC_CACHE_SERVER sucessfull..
192.168.2.53== ➜  check status ZC_NET_DB_SERVER_DBNAME sucessfull..
192.168.2.53== ➜  check status ZC_NET_DB_SERVER_HOST sucessfull..
192.168.2.53== ➜  check status ZC_NET_DB_SERVER_PORT sucessfull..
192.168.2.53== ➜  check status ZC_NET_DB_SERVER_USER sucessfull..
192.168.2.53== ➜  check status ZC_NET_DB_SERVER_PWD sucessfull..
192.168.2.53== ➜  check status ZC_NET_DB_SERVER_ID sucessfull..
192.168.2.53== ➜  check status ZC_DB_IPPORT sucessfull..
192.168.2.53== ➜  check status ZC_METHOD sucessfull..
192.168.2.53== ➜  check status ZC_SERV_LOCALTION sucessfull..
192.168.2.53== ➜  check status ZC_IF_ADD_DEFAULT_ZCBUS sucessfull..
192.168.2.53== ➜  check status ZC_INSTALL_MODE sucessfull..
192.168.2.53== ➜  check status ZC_CACHE_SASL sucessfull..
192.168.2.53== ➜  check status ZC_CACHE_TYPE sucessfull..
192.168.2.53== ➜  check status ZC_NET_DB_SERVER_TYPE sucessfull..
192.168.2.53== ➜  Check ZC_CACHE_TYPE =zcbus_cache ... 
192.168.2.53== ➜  will change 's restapi install mode ...

192.168.2.53==[Step 2]: ready for data dir path ...
192.168.2.53== ➜  Load Path to /data/docker02 ...
192.168.2.53== ➜  check sucessfull for zclimit 10485760 < 162741900[/data/docker02]...

192.168.2.53==[Step 3]: add zcbus user ...
192.168.2.53==   docker group exists ...
id: zcbus: no such user

192.168.2.53==[Step 4]: checking if docker is installed ...
192.168.2.53==   check sucessfull for zclimit 5242880 < 162741804[/data/docker]...
192.168.2.53==   docker version: 20.10.10

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

192.168.2.53==[Step 6]: checking mysql directory ...
192.168.2.53==   Create directory mysql /data/docker02/zcbusdata ....
192.168.2.53==   Mysql data directory  /data/docker02/zcbusdata/mysql/data create Successful! 

192.168.2.53==[Step 7]: checking kafka directory ...
192.168.2.53==   Create directory kafka /data/docker02/zcbusdata/kafka ....
192.168.2.53==   Kafka data directory /data/docker02/zcbusdata/zcbuskafka/logs create Successful! 

192.168.2.53==[Step 8]: checking cache directory ...
192.168.2.53==   Create directory cache /data/docker02/zcbusdata ....
192.168.2.53==   Mysql data directory  /data/docker02/zcbusdata/cache create Successful! 

192.168.2.53==[Step 9]: checking zookeeper directory ...
192.168.2.53==   Create directory kafka /data/docker02/zcbusdata/kafka ....
192.168.2.53==   Zookeeoer data directory /data/docker02/zcbusdata/zcbuszookeeper/data create Successful! 

192.168.2.53==[Step 10]: loading zcbus images ...
192.168.2.53==   docker load -i /zcbus/standard_server/soft/images/prepare.tar.gz
192.168.2.53==   Load images to docker's sucessfull...
192.168.2.53==   docker load -i /zcbus/standard_server/soft/images/zcbus_job.tar.gz
192.168.2.53==   Load images to docker's sucessfull...
192.168.2.53==   docker load -i /zcbus/standard_server/soft/images/zcbus_mysql.tar.gz
192.168.2.53==   Load images to docker's sucessfull...
192.168.2.53==   docker load -i /zcbus/standard_server/soft/images/zcbus_redis.tar.gz
192.168.2.53==   Load images to docker's sucessfull...
192.168.2.53==   docker load -i /zcbus/standard_server/soft/images/zcbus_restapi.tar.gz
192.168.2.53==   Load images to docker's sucessfull...
192.168.2.53==   docker load -i /zcbus/standard_server/soft/images/zcbus_server.tar.gz
192.168.2.53==   Load images to docker's sucessfull...
192.168.2.53==   docker load -i /zcbus/standard_server/soft/images/zcbus_vue.tar.gz
192.168.2.53==   Load images to docker's sucessfull...
192.168.2.53==   network zcbus is already exists ...
192.168.2.53==   /zcbus/standard_server/common/zcbus.properties ZC_SERV_LOCALTION  :[0]
192.168.2.53==   zctype:server====zcc:0
192.168.2.53==   Check hostname [zcbus_01]'s ip is :[192.168.2.53]
192.168.2.53==   prepare server Sucessfull...

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

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

192.168.2.53==[Step 13]: starting zcbus ...
192.168.2.53==   dbtype:mysql,db_ipport:zcbusdb:3306,db_user:zcbus,db_pwd:AqJbPFSalFZFLEbO
192.168.2.53==   =================>>>check db for zcbusdb:3306 , ZCTYPE:server<<<=========================
192.168.2.53==   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.53==   Check zcbusdb Connect Failed ,wait 30 seconds and retry 1 times ...
192.168.2.53==   Check zcbusdb Connect start ...
mysql: [Warning] Using a password on the command line interface can be insecure.
now()
2025-05-12 11:20:45
192.168.2.53==   Check zcbusdb Connect Sucessfull...
192.168.2.53==   =============will load data mode for server================
192.168.2.53==   Will Install for load zcbus's data...
192.168.2.53==   Start Load data to zcbusdb ...
init db for ZCBUS_VERSION:standard_server ZCTYPE:server...
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...
INFO => DEAL sql file bus_customerid_sequence...
INFO => DEAL sql file simple_server...
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_cache...
INFO => DEAL sql file p1_server...
INFO => DEAL sql file p2...
auto start is set to 0,not start ???
INFO => DEAL sql file up_to_basic...
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 
===============
192.168.2.53== ➜  Finished Load data to zcbusdb sucessfull...
192.168.2.53== ➜  Check zcbusdb Connect start ...
mysql: [Warning] Using a password on the command line interface can be insecure.
now()
2025-05-12 11:20:54
192.168.2.53== ➜  Check zcbusdb Connect Sucessfull...

192.168.2.53==[Step 13]: sync zcbus_docker to /data/docker02/...

192.168.2.53==[Step 13]: ready basic soft for basic zcbus_docker server ...
192.168.2.53== ➜  Check hostname [zcbus_01]'s ip is :[192.168.2.53]
192.168.2.53== ➜  ZC_IPADDRESS :192.168.2.53
192.168.2.53== ➜  ==============>/data/docker02========192.168.2.53=======
==? add zcbus_docker service
==? add zcbus_docker service successfully ...
192.168.2.53== ➜  Read Master database info to /zcbus/standard_server/config/zcbus_master.ini
[INF] load libmysqlclient.so
[LV0] 2025-05-12 11:21:00: connect to mysql zcbus/***@192.168.2.53: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.
192.168.2.53== ➜  sync basic info to /data/docker02/ begin ...
192.168.2.53== ➜  sync basic info to /data/docker02/ end ...
192.168.2.53== ➜  Test zcbus_docker Connect to zcbus_master.ini Sucessfull...
192.168.2.53== ➜  =========================== ready restart zcbus_docker ====================
192.168.2.53== ➜  sync config info to /data/docker02/ begin ...
192.168.2.53== ➜  sync config info to /data/docker02/ end ...
192.168.2.53== ➜  =============================================================
192.168.2.53== ➜  Manager console Website Address: http://192.168.2.53:8890
192.168.2.53== ➜  Default login account : admin
192.168.2.53== ➜  Default login password: 123456
192.168.2.53== ➜  =============================================================
192.168.2.53== ➜  Zcbus Container zcbus Not Exists and install...
192.168.2.53== ➜  /zcbus/standard_server/common/zcbus.properties ZC_SERV_LOCALTION  :[0]
192.168.2.53== ➜  zctype:zcbus====zcc:0
192.168.2.53== ➜  Check hostname [zcbus_01]'s ip is :[192.168.2.53]
192.168.2.53== ➜  dbtype:mysql,db_ipport:zcbusdb:3306,db_user:zcbus,db_pwd:AqJbPFSalFZFLEbO
192.168.2.53== ➜  =================>>>check db for zcbusdb:3306 , ZCTYPE:zcbus<<<=========================
192.168.2.53==   Check zcbusdb Connect start ...
Linux zcbus_01 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.3-16 64 bit (QA) - Production on 2025-04-22 16:10:07
Copyright (c) 2025 ZCBUS. All Rights Reserved.
The maximum supported number of table columns is 1024.
process id 709990
connect string: mysql:zcbus/'AqJbPFSalFZFLEbO'@192.168.2.53:33060/zcbus
login host[192.168.2.53] 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'
connect test OK.
192.168.2.53==   Check zcbusdb Connect Sucessfull...
192.168.2.53==   =============will load data mode for zcbus================
Linux zcbus_01 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.3-16 64 bit (QA) - Production on 2025-04-22 16:10:07
Copyright (c) 2025 ZCBUS. All Rights Reserved.
The maximum supported number of table columns is 1024.
process id 710008
connect string: mysql:zcbus/AqJbPFSalFZFLEbO@192.168.2.53:33060/zcbus
login host[192.168.2.53] 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'
connect test OK.
 Container zcbus  Creating
 Container zcbus  Created
 Container zcbus  Starting
 Container zcbus  Started
192.168.2.53==   sync config info to /data/docker02/ begin ...
192.168.2.53==   sync config info to /data/docker02/ end ...
192.168.2.53==   =============================================================
192.168.2.53==   Manager console Website Address: http://192.168.2.53:8890
192.168.2.53==   Default login account : admin
192.168.2.53==   Default login password: 123456
192.168.2.53==   =============================================================

4.安装完成验证

4.1 后台验证容器运行情况

[root@oceanbase standard_server]# ./zcmgr.sh  check

====>>>ZCBUS [ Mon May 12 11:25:22 CST 2025 ]
NAME           IMAGE                                COMMAND                  SERVICE        CREATED          STATUS          PORTS
jjhgg          reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   jjhgg          28 minutes ago   Up 28 minutes   
zcbus          reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbus          41 minutes ago   Up 41 minutes   
zcbuscache     reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbuscache     41 minutes ago   Up 41 minutes   0.0.0.0:6600-6602->6600-6602/tcp, :::6600-6602->6600-6602/tcp
zcbusdb        reg.zbomc.com/zcbus_mysql:v2.0.1     "docker-entrypoint.s…"   zcbusdb        43 minutes ago   Up 43 minutes   3306/tcp, 33060/tcp
zcbusjob       reg.zbomc.com/zcbus_job:v2.0.1       "sh /run.sh"             zcbusjob       41 minutes ago   Up 41 minutes   7080/tcp
zcbusnet       reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbusnet       43 minutes ago   Up 41 minutes   0.0.0.0:33060->33060/tcp, :::33060->33060/tcp
zcbusredis     reg.zbomc.com/zcbus_redis:v2.0.1     "/bin/sh -c 'redis-s…"   zcbusredis     41 minutes ago   Up 41 minutes   6379/tcp
zcbusrestapi   reg.zbomc.com/zcbus_restapi:v2.0.1   "sh /run.sh"             zcbusrestapi   41 minutes ago   Up 41 minutes   7080/tcp
zcbusvue       reg.zbomc.com/zcbus_vue:v2.0.1       "/docker-entrypoint.…"   zcbusvue       41 minutes ago   Up 41 minutes   0.0.0.0:8890->80/tcp, :::8890->80/tcp
root     479956      1  0 10:43 pts/1    00:00:00 /data/docker02/bin/zcbus_docker -log_level 2
root     479979      1  0 10:43 pts/1    00:00:00 /data/docker02/bin/zcbus_docker -manager -log_level 2
root     480025      1  0 10:43 pts/1    00:00:06 /data/docker02/bin/zcbus_docker -listener -log_level 2

4.2 页面验证默认容器添加激活,且生效

文档更新时间: 2025-05-11 18:27   作者:liyue