1.安装环境准备
类型 | 内容 |
---|---|
CPU | 建议不低于4核虚机或者服务器,最好在16核以上 |
存储 | 存储不少于500GB |
内存 | 内存不低于8GB,建议3GB以上 |
2.配置参数说明
- 修改 hosts 文件
vim /etc/hosts 192.168.2.100 hostname
- zcbus.properties配置说明
[root@iZ2ze7y8byz5e2ki7gbcjpZ simple_server]# more 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/zcbus
#-------------------------------------------------------------------------------
# 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
#-------------------------------------------------------------------------------
# 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_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=zcbusnet:33060
#-------------------------------------------------------------------------------
# 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
#-------------------------------------------------------------------------------
# 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=zcbus_cache
#-------------------------------------------------------------------------------
# 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
3.安装过程
[root@iZ2ze7y8byz5e2ki7gbcjpZ simple_server]# ./zcmgr.sh install
172.17.104.186==➜ Check ZC_DOCKER_HOME=/data/docker ZC_DATA_HOME=/data/zcbus ok
172.17.104.186==➜ Check Memory 1 > 0 ok ...
172.17.104.186==➜ Check /etc/hosts Sucessfull...
172.17.104.186==[Step 1]: checking OS version/firewalld/seLinux and config ...
############################## check host ::: /etc/hosts #############################################
172.17.104.186==➜ check host ::: 2 ::: OK
172.17.104.186==➜ #172.17.104.186 iZ2ze7y8byz5e2ki7gbcjpZ iZ2ze7y8byz5e2ki7gbcjpZ
172.17.104.186 iZ2ze7y8byz5e2ki7gbcjpZ iZ2ze7y8byz5e2ki7gbcjpZ
############################## check selinux ::: /etc/selinux/config #################################
172.17.104.186==➜ check selinux ::: disabled ::: OK
setenforce: SELinux is disabled
############################## check firewalld #######################################################
172.17.104.186==➜ check firewalld ::: not running ::: OK
############################## check sysctl ::: /etc/sysctl.conf #####################################
172.17.104.186==➜ kernel.shmall ::: 4294967296 (>=4294967296) ::: OK
172.17.104.186==➜ fs.aio-max-nr ::: 1048576 (>=1048576) ::: OK
172.17.104.186==➜ fs.file-max ::: 6815744 (>=6815744) ::: OK
172.17.104.186==➜ kernel.shmmax ::: 2070833152 (>=2070833152) ::: OK
172.17.104.186==➜ kernel.shmmni ::: 4096 (>=4096) ::: OK
172.17.104.186==➜ kernel.sem ::: 250 (>=250) 32000 (>=32000) 100 (>=100) 128 (>=128) ::: OK
172.17.104.186==➜ net.ipv4.ip_local_port_range ::: 1024 (>=1024) 65500 (>=65500) ::: OK
172.17.104.186==➜ net.core.rmem_default ::: 262144 (>=262144) ::: OK
172.17.104.186==➜ net.core.rmem_max ::: 4194304 (>=4194304) ::: OK
172.17.104.186==➜ net.core.wmem_default ::: 262144 (>=262144) ::: OK
172.17.104.186==➜ net.core.wmem_max ::: 1048576 (>=1048576) ::: OK
172.17.104.186==➜ kernel.threads-max ::: 999999 (>=999999) ::: OK
172.17.104.186==➜ kernel.pid_max ::: 999999 (>=999999) ::: OK
172.17.104.186==➜ vm.max_map_count ::: 1999999 (>=1999999) ::: OK
172.17.104.186==➜ net.ipv4.ip_forward ::: 1 (>=1) ::: OK
172.17.104.186==➜ fs.inotify.max_user_watches ::: 1048576 (>=1048576) ::: OK
172.17.104.186==➜ fs.inotify.max_user_instances ::: 1048576 (>=1048576) ::: OK
############################## check limits ::: /etc/security/limits.conf ############################
172.17.104.186==➜ soft-nofile ::: 1048500 (>=1048500) ::: OK
172.17.104.186==➜ hard-nofile ::: 1048500 (>=1048500) ::: OK
172.17.104.186==➜ soft-nproc ::: 65536 (>=65536) ::: OK
172.17.104.186==➜ hard-nproc ::: 65536 (>=65536) ::: OK
############################## CHECK RESULT ##########################################################
172.17.104.186==➜ OK : 24 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####################
.......................................[ server ]
.......................................[ client ]
.......................................[ server_full ]
.......................................[ client_full ]
.......................................[ cloud_server ]
.......................................[ cloud_client ]
.......................................[ cloud_push ]
Please input Select Mode,default mode is [ server ]:
172.17.104.186==➜ ***************************************************************************************************
172.17.104.186==➜ ****************************** Ready Install for zcbus grid cluster ....***************************
172.17.104.186==➜ ****************************** check variabels for ....***************************
172.17.104.186==➜ ***************************************************************************************************
172.17.104.186==➜ check status ZC_DATA_HOME sucessfull..
172.17.104.186==➜ check status ZC_DOCKER_HOME sucessfull..
172.17.104.186==➜ check status ZC_DOCKER_SERVER_PORT sucessfull..
172.17.104.186==➜ check status ZC_TYPE sucessfull..
172.17.104.186==➜ check status ZC_CUSTOMER_URL sucessfull..
172.17.104.186==➜ check status ZC_CACHE_SERVER sucessfull..
172.17.104.186==➜ check status ZC_NET_DB_SERVER_DBNAME sucessfull..
172.17.104.186==➜ check status ZC_NET_DB_SERVER_HOST sucessfull..
172.17.104.186==➜ check status ZC_NET_DB_SERVER_PORT sucessfull..
172.17.104.186==➜ check status ZC_NET_DB_SERVER_USER sucessfull..
172.17.104.186==➜ check status ZC_NET_DB_SERVER_PWD sucessfull..
172.17.104.186==➜ check status ZC_NET_DB_SERVER_ID sucessfull..
172.17.104.186==➜ check status ZC_DB_IPPORT sucessfull..
172.17.104.186==➜ check status ZC_METHOD sucessfull..
172.17.104.186==➜ check status ZC_SERV_LOCALTION sucessfull..
172.17.104.186==➜ check status ZC_IF_ADD_DEFAULT_ZCBUS sucessfull..
172.17.104.186==➜ check status ZC_INSTALL_MODE sucessfull..
172.17.104.186==➜ check status ZC_CACHE_SASL sucessfull..
will change 's restapi install mode ...
172.17.104.186==[Step 2]: ready for data dir path ...
[INFO] Please input docker path /data/zcbus:
172.17.104.186==➜ Load Path to /data/zcbus ...
check sucessfull for zclimit 10G < 46G[/data/zcbus]...
172.17.104.186==[Step 3]: add zcbus user ...
docker:x:994:zbomc,zcbus
docker group exists ...
uid=1001(zcbus) gid=1001(zcbus) groups=1001(zcbus),994(docker)
172.17.104.186==[Step 4]: checking if docker is installed ...
check sucessfull for zclimit 5G < 46G[/data/docker]...
############################## docker version: 20.10.10 ##############################################
172.17.104.186==[Step 5]: checking docker-compose is installed ...
############################## docker-compose version: 2.24.5 ########################################
172.17.104.186==[Step 6]: checking mysql directory ...
############################## Create directory mysql /data/docker02/zcbusdata .... ##################
172.17.104.186==✔ Mysql data directory /data/docker02/zcbusdata/mysql/data create Successful!
172.17.104.186==[Step 7]: checking kafka directory ...
############################## Create directory kafka /data/docker02/zcbusdata/kafka .... ############
172.17.104.186==✔ Kafka data directory /data/docker02/zcbusdata/zcbuskafka/logs create Successful!
172.17.104.186==[Step 8]: checking cache directory ...
############################## Create directory cache /data/docker02/zcbusdata .... ##################
172.17.104.186==✔ Mysql data directory /data/docker02/zcbusdata/cache create Successful!
172.17.104.186==[Step 9]: checking zookeeper directory ...
############################## Create directory kafka /data/docker02/zcbusdata/kafka .... ############
172.17.104.186==✔ Zookeeoer data directory /data/docker02/zcbusdata/zcbuszookeeper/data create Successful!
172.17.104.186==[Step 10]: loading zcbus images ...
[INFO] Please input if load images y/n:n
172.17.104.186==➜ Not Load images,and continue ...
172.17.104.186==➜
172.17.104.186==➜ network zcbus is already exists ...
Check hostname [iZ2ze7y8byz5e2ki7gbcjpZ]'s ip is :[172.17.104.186]
ready basic info ...
Finish init basic ...
172.17.104.186==➜ prepare server Sucessfull...
172.17.104.186==➜
172.17.104.186==➜
172.17.104.186==[Step 11]: checking if ports is used ...
172.17.104.186==➜ Port 33060 is available!!
172.17.104.186==➜ Port 8890 is available!!
172.17.104.186==[Step 12]: ready basic soft for container ...
172.17.104.186==➜ Ready compare soft ...
172.17.104.186==➜ Read zcbusserver jdk sucessfull....
172.17.104.186==➜ Read zcbusserver jar sucessfull....
172.17.104.186==➜ Read zcbusserver bin sucessfull....
172.17.104.186==➜ Read zcbusserver lib sucessfull....
172.17.104.186==➜ /data/docker02/module/lib to /data/docker02/zcbusdata/zcbusserver/ is build sucessfull...
172.17.104.186==➜ /data/docker02/module/bin to /data/docker02/zcbusdata/zcbusserver/ is build sucessfull...
172.17.104.186==➜ /data/docker02/module/jdk to /data/docker02/zcbusdata/zcbusserver/ is build sucessfull...
172.17.104.186==➜ /data/docker02/module/jar to /data/docker02/zcbusdata/zcbusserver/ is build sucessfull...
172.17.104.186==[Step 13]: starting zcbus ...
[+] Running 6/6
✔ Container zcbuszookeeper Started 6.4s
✔ Container zcbusnet Started 6.5s
✔ Container zcbusdb Started 6.7s
✔ Container zcbusrestapi Started 1.7s
✔ Container zcbuskafka Started 1.9s
✔ Container zcbusvue Started 2.8s
172.17.104.186==➜ =============will load data mode for server================
172.17.104.186==➜ Will Install for load zcbus's data...
172.17.104.186==➜ 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)
172.17.104.186==➜ Check zcbusdb Connect Failed ,wait 10 seconds and retry 1 times ...
172.17.104.186==➜ 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)
172.17.104.186==➜ Check zcbusdb Connect Failed ,wait 10 seconds and retry 2 times ...
172.17.104.186==➜ 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)
172.17.104.186==➜ Check zcbusdb Connect Failed ,wait 10 seconds and retry 3 times ...
172.17.104.186==➜ 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)
172.17.104.186==➜ Check zcbusdb Connect Failed ,wait 10 seconds and retry 4 times ...
172.17.104.186==➜ 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)
172.17.104.186==➜ Check zcbusdb Connect Failed ,wait 10 seconds and retry 5 times ...
172.17.104.186==➜ Check zcbusdb Connect start ...
mysql: [Warning] Using a password on the command line interface can be insecure.
172.17.104.186==➜ Check zcbusdb Connect Sucessfull...
172.17.104.186==➜ 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
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 account_role...
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 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_img...
INFO => DEAL sql file sys_article...
INFO => DEAL sql file update...
INFO => DEAL sql file p1_server...
INFO => DEAL sql file p2...
auto start is set to 0,not start ???
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
===============
172.17.104.186==➜ Finished Load data to zcbusdb sucessfull...
====>>>ZCBUS [ Wed Feb 14 14:02:13 CST 2024 ]
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
zcbusdb reg.zbomc.com/zcbus_mysql:v2.0.1 "docker-entrypoint.s…" zcbusdb About a minute ago Up About a minute 3306/tcp, 33060/tcp
zcbuskafka reg.zbomc.com/zcbus_kafka:v2.0.1 "docker-entrypoint.sh" zcbuskafka About a minute ago Up About a minute
zcbusnet reg.zbomc.com/zcbus_net:v2.0.1 "sh /run.sh" zcbusnet About a minute ago Up About a minute 0.0.0.0:33060->33060/tcp
zcbusrestapi reg.zbomc.com/zcbus_restapi:v2.0.1 "sh /run.sh" zcbusrestapi About a minute ago Up About a minute 7080/tcp
zcbusvue reg.zbomc.com/zcbus_vue:v2.0.1 "/docker-entrypoint.…" zcbusvue About a minute ago Up About a minute 0.0.0.0:8890->80/tcp
zcbuszookeeper reg.zbomc.com/zcbus_zookeeper:v2.0.1 "docker-entrypoint.sh" zcbuszookeeper About a minute ago Up About a minute
172.17.104.186==➜
172.17.104.186==[Step 13]: sync zcbus_docker to /data/docker02/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/bin /data/docker02/...
172.17.104.186==[Step 13]: ready basic soft for basic zcbus_docker server ...
Check hostname [iZ2ze7y8byz5e2ki7gbcjpZ]'s ip is :[172.17.104.186]
172.17.104.186==➜ ZC_IPADDRESS :172.17.104.186
172.17.104.186==➜ ==============>/data/docker02========172.17.104.186=======
Note: add zcbus_docker service
? add zcbus_docker service successfully ...
172.17.104.186==➜ Read Master database info to /data1/zcbus_docker/zcbusSoft/simple_server/config/zcbus_master.ini
[INF] load libmysqlclient.so
[LV0] 2024-02-14 14:02:19: connect to mysql zcbus/***@172.17.104.186: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 ...
172.17.104.186==➜ sync basic info to /data/docker02/ begin ...
copy /data1/zcbus_docker/zcbusSoft/simple_server/bin /data/docker02/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/yaml /data/docker02/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/common/add_zcbus_docker_service.sh /data/docker02/common/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/common/docker.service /data/docker02/common/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/common/zcbus_client.rsp /data/docker02/common/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/common/zcbus_docker.service /data/docker02/common/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/common/zcbus.properties /data/docker02/common/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/common/zcbus.yml /data/docker02/common/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/common/.check /data/docker02/common/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/common/.zcbus.common /data/docker02/common/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/zcmgr.sh /data/docker02/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/soft/docker-20.10.10.tgz /data/docker02/soft/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/soft/docker-compose-Linux-x86_64 /data/docker02/soft/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/soft/zcbus /data/docker02/soft/...
172.17.104.186==➜ sync basic info to /data/docker02/ end ...
172.17.104.186==➜ Test zcbus_docker Connect to zcbus_master.ini Sucessfull...
172.17.104.186==➜ =========================== ready restart zcbus_docker ====================
zcbus_docker is Stopping ...
zcbus_docker is Finished ...
[+] Running 6/0
✔ Container zcbusnet Running 0.0s
✔ Container zcbusdb Running 0.0s
✔ Container zcbuszookeeper Running 0.0s
✔ Container zcbusrestapi Running 0.0s
✔ Container zcbusvue Running 0.0s
✔ Container zcbuskafka Running 0.0s
172.17.104.186==➜ sync config info to /data/docker02/ begin ...
copy /data1/zcbus_docker/zcbusSoft/simple_server/config /data/docker02/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/yaml /data/docker02/...
172.17.104.186==➜ sync config info to /data/docker02/ end ...
[+] Restarting 3/3
✔ Container zcbusnet Started 11.7s
✔ Container zcbusrestapi Started 11.6s
✔ Container zcbusvue Started 11.6s
172.17.104.186==➜ =============================================================
172.17.104.186==➜ Manager console Website Address: http://172.17.104.186:8890
172.17.104.186==➜ Default login account : admin
172.17.104.186==➜ Default login password: 123456
172.17.104.186==➜
172.17.104.186==➜ =============================================================
172.17.104.186==✔ ----Zcbus has been installed and started successfully.----
no such service: zcbus
172.17.104.186==➜ Zcbus Container zcbus Not Exists and install...
Check hostname [iZ2ze7y8byz5e2ki7gbcjpZ]'s ip is :[172.17.104.186]
Flush data to /compose_location/docker-compose.yml
[+] Running 7/7
✔ Container zcbus Started 0.9s
✔ Container zcbusnet Running 0.0s
✔ Container zcbusdb Running 0.0s
✔ Container zcbusrestapi Running 0.0s
✔ Container zcbusvue Running 0.0s
✔ Container zcbuszookeeper Running 0.0s
✔ Container zcbuskafka Running 0.0s
172.17.104.186==➜ =============will load data mode for zcbus================
====>>>ZCBUS [ Wed Feb 14 14:02:56 CST 2024 ]
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
zcbusdb reg.zbomc.com/zcbus_mysql:v2.0.1 "docker-entrypoint.s…" zcbusdb 2 minutes ago Up 2 minutes 3306/tcp, 33060/tcp
zcbuskafka reg.zbomc.com/zcbus_kafka:v2.0.1 "docker-entrypoint.sh" zcbuskafka 2 minutes ago Up 2 minutes
zcbusnet reg.zbomc.com/zcbus_net:v2.0.1 "sh /run.sh" zcbusnet 2 minutes ago Up 5 seconds 0.0.0.0:33060->33060/tcp
zcbusrestapi reg.zbomc.com/zcbus_restapi:v2.0.1 "sh /run.sh" zcbusrestapi 2 minutes ago Up 5 seconds 7080/tcp
zcbusvue reg.zbomc.com/zcbus_vue:v2.0.1 "/docker-entrypoint.…" zcbusvue 2 minutes ago Up 5 seconds 0.0.0.0:8890->80/tcp
zcbuszookeeper reg.zbomc.com/zcbus_zookeeper:v2.0.1 "docker-entrypoint.sh" zcbuszookeeper 2 minutes ago Up 2 minutes
root 687542 1 0 14:02 pts/2 00:00:00 /data/docker02/bin/zcbus_docker -log_level 2
root 687569 1 0 14:02 pts/2 00:00:00 /data/docker02/bin/zcbus_docker -manager -log_level 2
root 687627 1 0 14:02 pts/2 00:00:00 /data/docker02/bin/zcbus_docker -listener -log_level 2
172.17.104.186==➜ sync config info to /data/docker02/ begin ...
copy /data1/zcbus_docker/zcbusSoft/simple_server/config /data/docker02/...
copy /data1/zcbus_docker/zcbusSoft/simple_server/yaml /data/docker02/...
172.17.104.186==➜ sync config info to /data/docker02/ end ...
[+] Restarting 3/3
✔ Container zcbusvue Started 12.0s
✔ Container zcbusnet Started 11.8s
✔ Container zcbusrestapi Started 12.3s
172.17.104.186==➜ =============================================================
172.17.104.186==➜ Manager console Website Address: http://172.17.104.186:8890
172.17.104.186==➜ Default login account : admin
172.17.104.186==➜ Default login password: 123456
172.17.104.186==➜
172.17.104.186==➜ =============================================================
172.17.104.186==✔ ----Zcbus has been installed and started successfully.----
4.安装完成验证
4.1 后台验证容器运行情况
[root@iZ2ze7y8byz5e2ki7gbcjpZ simple_server]# ./zcmgr.sh check
172.17.104.186==➜ Check ZC_DOCKER_HOME=/data/docker ZC_DATA_HOME=/data/docker02 ok
====>>>ZCBUS [ Sun Feb 18 20:53:18 CST 2024 ]
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
zcbus reg.zbomc.com/zcbus_server:v2.0.1 "/bin/bash -c ${ZCBU…" zcbus 3 hours ago Up 3 hours
zcbuscache reg.zbomc.com/zcbus_cache:v2.0.1 "/bin/bash -c ${ZCBU…" zcbuscache 3 hours ago Up 3 hours
zcbusdb reg.zbomc.com/zcbus_mysql:v2.0.1 "docker-entrypoint.s…" zcbusdb 3 hours ago Up 3 hours 3306/tcp, 33060/tcp
zcbusnet reg.zbomc.com/zcbus_net:v2.0.1 "sh /run.sh" zcbusnet 3 hours ago Up 3 hours 0.0.0.0:33060->33060/tcp
zcbusrestapi reg.zbomc.com/zcbus_restapi:v2.0.1 "sh /run.sh" zcbusrestapi 3 hours ago Up 3 hours 7080/tcp
zcbusvue reg.zbomc.com/zcbus_vue:v2.0.1 "/docker-entrypoint.…" zcbusvue 3 hours ago Up 3 hours 0.0.0.0:8890->80/tcp
root 284723 1 0 17:28 pts/10 00:00:00 /data/docker02/bin/zcbus_docker -log_level 2
root 284750 1 0 17:28 pts/10 00:00:00 /data/docker02/bin/zcbus_docker -manager -log_level 2
root 284787 1 0 17:28 pts/10 00:00:13 /data/docker02/bin/zcbus_docker -listener -log_level 2
4.2 页面验证默认容器添加激活,且生效
文档更新时间: 2024-12-05 17:01 作者:liyue