1 环境准备

主机 配置说明
物理配置 cpu 4核以上,内存4GB以上,磁盘100GB以上
操作系统 LINUX(centos7)
网络 数据交换服务器,需要和需要共享数据的数据库、大数据平台之间,网络设备畅通。如果存在网络不畅通情况下,必须通过前置机畅通,通过前置机跳转实现数据交换服务。

2 环境检查

2.1 防火墙服务检查

检查防火墙是否启动:
systemctl status firewalld.service
停止防火墙服务:
systemctl stop firewalld.service
禁用防火墙开机启动服务:
systemctl disable firewalld.service

3 软件下载

4 软件安装过程

4.1 解压命令

tar xvf zcbus.simple_server.docker.v2.0.1.x86_64.v1.plus.mysql.tar.gz
tar xvf zcbus.simple_server.docker.v2.0.1.x86_64.v2.plus.mysql.tar.gz

4.2 安装参数说明

[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:
----选择安装模式(integrate包括zk+kafka和zcbusdb,external补包括zk+kafka和zcbusdb,需要用到相对应的外部组件)
####################install module####################
.......................................[ server ]
.......................................[ cloud_server ]
Please input Select Mode,default mode is [ server ]:cloud_server
----选择对应服务的安装模式

[INFO] Please input docker path /data/docker02:/home/docker
----设置docker容器缓存目录

[INFO] Please input if load images y/n:y
----是否挂载镜像文件

4.3 安装过程

[root@doris simple_server]# ./zcmgr.sh install
192.168.2.33==➜ Check ZC_DOCKER_HOME=/data/docker ZC_DATA_HOME=/data/docker02 ok
192.168.2.33==➜ Check Memory 12 > 0 ok ...
192.168.2.33==➜ Check /etc/hosts Sucessfull...

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

192.168.2.33==[Step 2]: ready for data dir path ...
[INFO] Please input docker path /data/docker02:
192.168.2.33==➜ Load Path to /data/docker02 ...
check sucessfull for zclimit 10G < 414G[/data/docker02]...

192.168.2.33==[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.33==[Step 4]: checking if docker is installed ...
check sucessfull for zclimit 5G < 414G[/data/docker]...
############################## docker version: 20.10.10 ##############################################

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

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

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

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

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

192.168.2.33==[Step 10]: loading zcbus images ...
[INFO] Please input if load images y/n:y
docker load -i /soft/simple_server/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
386a9bb8468b: Loading layer [==================================================>]  4.096kB/4.096kB
9136d188aa2b: Loading layer [==================================================>]  36.35kB/36.35kB
0b5f9a1b4e5b: Loading layer [==================================================>]  4.608kB/4.608kB
6997ea43413a: Loading layer [==================================================>]  7.168kB/7.168kB
b20fe2a67716: Loading layer [==================================================>]  5.632kB/5.632kB
0b8550b2ab90: Loading layer [==================================================>]  6.144kB/6.144kB
bbc124769db3: Loading layer [==================================================>]  6.656kB/6.656kB
a72a07720064: Loading layer [==================================================>]   5.12kB/5.12kB
6a8e5ccd3cbe: Loading layer [==================================================>]  5.632kB/5.632kB
3712f569d9b9: Loading layer [==================================================>]  5.632kB/5.632kB
5106ee916bb7: Loading layer [==================================================>]  5.632kB/5.632kB
f32feb130e9d: Loading layer [==================================================>]  5.632kB/5.632kB
746379fd1b78: Loading layer [==================================================>]  5.632kB/5.632kB
59175b5b2ef2: Loading layer [==================================================>]  5.632kB/5.632kB
d41a888ddb12: Loading layer [==================================================>]  4.608kB/4.608kB
7e38c0fa786b: Loading layer [==================================================>]  6.656kB/6.656kB
5f1eea69a6d4: Loading layer [==================================================>]  6.656kB/6.656kB
876c9327229d: Loading layer [==================================================>]   5.12kB/5.12kB
8cff26a11138: Loading layer [==================================================>]   5.12kB/5.12kB
d1c49c6bf7f9: Loading layer [==================================================>]  4.608kB/4.608kB
de265f84e6e1: Loading layer [==================================================>]  6.144kB/6.144kB
dc7cddbcdb60: Loading layer [==================================================>]  6.144kB/6.144kB
f5290a34cd1a: Loading layer [==================================================>]  5.632kB/5.632kB
5cff5ee86e4e: Loading layer [==================================================>]  6.144kB/6.144kB
2b122312a090: Loading layer [==================================================>]  5.632kB/5.632kB
b76266403054: Loading layer [==================================================>]   5.12kB/5.12kB
5c64d0f14b1d: Loading layer [==================================================>]   5.12kB/5.12kB
920755ae0a0c: Loading layer [==================================================>]  5.632kB/5.632kB
0a92a6e13460: Loading layer [==================================================>]  6.656kB/6.656kB
909312f48b41: Loading layer [==================================================>]  4.608kB/4.608kB
Loaded image: reg.zbomc.com/zcbus/prepare:latest
192.168.2.33==➜ Load images to docker's sucessfull...
docker load -i /soft/simple_server/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
7a17cabccbcd: Loading layer [==================================================>]  3.072kB/3.072kB
3837c6f76a48: Loading layer [==================================================>]  25.51MB/25.51MB
7987e64b2c55: Loading layer [==================================================>]  54.56MB/54.56MB
e54a487f9a7a: Loading layer [==================================================>]  6.144kB/6.144kB
86ddc71cd636: Loading layer [==================================================>]  6.144kB/6.144kB
85b339e2da35: Loading layer [==================================================>]  3.584kB/3.584kB
3fb503d3b312: Loading layer [==================================================>]  4.608kB/4.608kB
4544c81fbe22: 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.33==➜ Load images to docker's sucessfull...
docker load -i /soft/simple_server/soft/images/zcbus_restapi.tar.gz
625523cb9cce: Loading layer [==================================================>]  5.895MB/5.895MB
a67b42698a62: Loading layer [==================================================>]    182MB/182MB
b5ffa2981ee6: Loading layer [==================================================>]  3.072kB/3.072kB
88d0d503586b: Loading layer [==================================================>]  2.048kB/2.048kB
f5ee4d87b89c: Loading layer [==================================================>]   2.56kB/2.56kB
fb74386fbfb7: Loading layer [==================================================>]  3.072kB/3.072kB
5d86b56eb887: Loading layer [==================================================>]  257.5MB/257.5MB
d2ddbb9bf038: Loading layer [==================================================>]   2.56kB/2.56kB
Loaded image: reg.zbomc.com/zcbus_restapi:v2.0.1
192.168.2.33==➜ Load images to docker's sucessfull...
docker load -i /soft/simple_server/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
df7cf6aaab87: Loading layer [==================================================>]  84.48kB/84.48kB
65b2c22d628d: Loading layer [==================================================>]  87.55kB/87.55kB
7873afaff5f0: Loading layer [==================================================>]  6.144kB/6.144kB
47bcb8536ed1: Loading layer [==================================================>]  3.584kB/3.584kB
bf9567d022bd: Loading layer [==================================================>]  6.144kB/6.144kB
908e7c803e10: Loading layer [==================================================>]  4.608kB/4.608kB
badb496f551f: Loading layer [==================================================>]  9.728kB/9.728kB
Loaded image: reg.zbomc.com/zcbus_server:v2.0.1
192.168.2.33==➜ Load images to docker's sucessfull...
docker load -i /soft/simple_server/soft/images/zcbus_net.tar.gz
74ddd0ec08fa: Loading layer [==================================================>]  238.6MB/238.6MB
85f12d88e642: Loading layer [==================================================>]  379.6MB/379.6MB
bb948e4e3989: Loading layer [==================================================>]  4.096kB/4.096kB
7cb1e7be9d8b: Loading layer [==================================================>]  163.6MB/163.6MB
4c222f8cc87b: Loading layer [==================================================>]  66.05kB/66.05kB
b083958fdf11: Loading layer [==================================================>]  9.216kB/9.216kB
d4d0f77774aa: Loading layer [==================================================>]  3.072kB/3.072kB
c6892977c4b7: Loading layer [==================================================>]  110.6kB/110.6kB
423197942f86: Loading layer [==================================================>]  2.048kB/2.048kB
Loaded image: reg.zbomc.com/zcbus_net:v2.0.1
192.168.2.33==➜ Load images to docker's sucessfull...
docker load -i /soft/simple_server/soft/images/zcbus_mysql.tar.gz
616461b0543d: Loading layer [==================================================>]    145MB/145MB
059140abf41f: Loading layer [==================================================>]  11.26kB/11.26kB
910d8e0bdf9b: Loading layer [==================================================>]  2.385MB/2.385MB
8cd76fcba8b5: Loading layer [==================================================>]  14.07MB/14.07MB
da7cb9362f6b: Loading layer [==================================================>]  7.168kB/7.168kB
ea403eb88dfd: Loading layer [==================================================>]  3.072kB/3.072kB
f4c7d56f4ec9: Loading layer [==================================================>]   79.5MB/79.5MB
c9d01885dc23: Loading layer [==================================================>]  3.072kB/3.072kB
54a757da1b62: Loading layer [==================================================>]  360.2MB/360.2MB
1065c2b6b2b2: Loading layer [==================================================>]  17.41kB/17.41kB
874d4d0830b7: Loading layer [==================================================>]  1.536kB/1.536kB
dda2078ee174: Loading layer [==================================================>]  6.656kB/6.656kB
3f61828b45ba: Loading layer [==================================================>]  17.92kB/17.92kB
52f4ce853238: Loading layer [==================================================>]  7.168kB/7.168kB
13c5a57074a0: Loading layer [==================================================>]  3.584kB/3.584kB
1365c46a8f4b: Loading layer [==================================================>]  3.584kB/3.584kB
5cbf40b78df8: Loading layer [==================================================>]   2.56kB/2.56kB
cd29755e7f7a: Loading layer [==================================================>]  3.072kB/3.072kB
8e3f34ac21df: Loading layer [==================================================>]  4.096kB/4.096kB
e479ef59e7dd: Loading layer [==================================================>]   2.56kB/2.56kB
0010e2bc4283: Loading layer [==================================================>]  3.584kB/3.584kB
65682dfa966d: Loading layer [==================================================>]  7.168kB/7.168kB
35d85ea40df2: Loading layer [==================================================>]  7.168kB/7.168kB
0cd1e1b797d9: Loading layer [==================================================>]   2.56kB/2.56kB
af35f42f369e: Loading layer [==================================================>]  3.584kB/3.584kB
2c2823d3eb1c: Loading layer [==================================================>]  7.168kB/7.168kB
5fdb8c03f81a: Loading layer [==================================================>]  66.05kB/66.05kB
17bab55be337: Loading layer [==================================================>]   2.56kB/2.56kB
900c3da7701e: Loading layer [==================================================>]  3.072kB/3.072kB
847592d1774a: Loading layer [==================================================>]   2.56kB/2.56kB
c029a1dfbfdc: Loading layer [==================================================>]  10.75kB/10.75kB
04891bbd2286: Loading layer [==================================================>]  4.608kB/4.608kB
74d4e34779e6: Loading layer [==================================================>]  4.608kB/4.608kB
5fb59c99b69a: Loading layer [==================================================>]  3.584kB/3.584kB
df857d8e4286: Loading layer [==================================================>]  13.31kB/13.31kB
93886cfb74a1: Loading layer [==================================================>]  155.1kB/155.1kB
fae06898b555: Loading layer [==================================================>]  8.704kB/8.704kB
991035d8016d: Loading layer [==================================================>]  199.2kB/199.2kB
cc99f5820537: Loading layer [==================================================>]  32.26kB/32.26kB
8bafb387b058: Loading layer [==================================================>]  26.62kB/26.62kB
359b3adff4a5: Loading layer [==================================================>]  10.75kB/10.75kB
cac5b20eb7e5: Loading layer [==================================================>]  7.168kB/7.168kB
35cf853f477d: Loading layer [==================================================>]  4.608kB/4.608kB
63c335172be1: Loading layer [==================================================>]  9.728kB/9.728kB
b3978b490cad: Loading layer [==================================================>]  27.14kB/27.14kB
f9bfda8254dd: Loading layer [==================================================>]  581.6kB/581.6kB
1bc89da61e31: Loading layer [==================================================>]  7.168kB/7.168kB
333d4278961d: Loading layer [==================================================>]  7.168kB/7.168kB
f7b061ee8813: Loading layer [==================================================>]  159.2kB/159.2kB
da0267460cc6: Loading layer [==================================================>]  348.2kB/348.2kB
9cf272a234e0: Loading layer [==================================================>]  5.632kB/5.632kB
8a39df83bee8: Loading layer [==================================================>]  11.26kB/11.26kB
c98521134e70: Loading layer [==================================================>]   2.56kB/2.56kB
6eb7453dd627: Loading layer [==================================================>]   2.56kB/2.56kB
d8a37fe3fa82: Loading layer [==================================================>]  5.632kB/5.632kB
e12264fe2fc4: Loading layer [==================================================>]  3.072kB/3.072kB
cdda688c27e0: Loading layer [==================================================>]  3.072kB/3.072kB
b699252d1a1c: Loading layer [==================================================>]  4.096kB/4.096kB
7abbda1089d0: Loading layer [==================================================>]  6.144kB/6.144kB
3b75d1e126e6: Loading layer [==================================================>]  82.94kB/82.94kB
579b5b7c23c1: Loading layer [==================================================>]  10.75kB/10.75kB
cb6fa2767d0b: Loading layer [==================================================>]  5.632kB/5.632kB
7d4400b1de63: Loading layer [==================================================>]  71.17kB/71.17kB
6eeb78a984d2: Loading layer [==================================================>]  288.3kB/288.3kB
1fabc901a206: Loading layer [==================================================>]   5.12kB/5.12kB
3b54eb5b0fc2: Loading layer [==================================================>]  4.608kB/4.608kB
535048695edc: Loading layer [==================================================>]   2.56kB/2.56kB
b573a9c690af: Loading layer [==================================================>]  6.144kB/6.144kB
0399a426907b: Loading layer [==================================================>]   2.56kB/2.56kB
0cdd004b9905: Loading layer [==================================================>]   3.18MB/3.18MB
57e5a87bc83b: Loading layer [==================================================>]  17.92kB/17.92kB
b0e65d8f8e00: Loading layer [==================================================>]   2.56kB/2.56kB
3c9bfa6ed516: Loading layer [==================================================>]   2.56kB/2.56kB
f2976047e588: Loading layer [==================================================>]   2.56kB/2.56kB
2d24c55be2ae: Loading layer [==================================================>]  4.608kB/4.608kB
3b1a102978d9: Loading layer [==================================================>]   2.56kB/2.56kB
fb12041cb124: Loading layer [==================================================>]  8.704kB/8.704kB
cd05d540d0ab: Loading layer [==================================================>]  7.168kB/7.168kB
191bc3ec8fb7: Loading layer [==================================================>]  418.3kB/418.3kB
4046deb9e8d7: Loading layer [==================================================>]   2.56kB/2.56kB
c350e072a41f: Loading layer [==================================================>]  5.706MB/5.706MB
b00c0ff836ff: Loading layer [==================================================>]  4.096kB/4.096kB
51af17e5b7b4: Loading layer [==================================================>]  1.536kB/1.536kB
0194f94ab416: Loading layer [==================================================>]  3.072kB/3.072kB
220d0a19f10f: Loading layer [==================================================>]  8.192kB/8.192kB
Loaded image: reg.zbomc.com/zcbus_mysql:v2.0.1
192.168.2.33==➜ Load images to docker's sucessfull...
docker load -i /soft/simple_server/soft/images/zcbus_cache.tar.gz
40f900bb1594: Loading layer [==================================================>]  69.63kB/69.63kB
7f5d62666207: Loading layer [==================================================>]   72.7kB/72.7kB
3d6ebe61cacc: Loading layer [==================================================>]  3.584kB/3.584kB
75c83e99094f: Loading layer [==================================================>]  3.584kB/3.584kB
056ca792b010: Loading layer [==================================================>]  3.584kB/3.584kB
16071626669d: Loading layer [==================================================>]  4.608kB/4.608kB
d741a6d9b129: Loading layer [==================================================>]  4.608kB/4.608kB
Loaded image: reg.zbomc.com/zcbus_cache:v2.0.1
192.168.2.33==➜ Load images to docker's sucessfull...
192.168.2.33==➜ 
192.168.2.33==➜ network zcbus is already exists ...
192.168.2.33==➜ /soft/simple_server/common/zcbus.properties ZC_SERV_LOCALTION  :[0]
Check hostname [doris]'s ip is :[192.168.2.33]
===> Ready basic info zctype  cloud_server : integrate ,ymlbasic :  docker-compose-server.yml.jinja
===> for zcproxy /usr/src/app/templates/docker_compose/zcbus-proxy.yml.jinja
Append  zp  sucessfull...
Append  zcbuscache  sucessfull...
=====fulldict[  dict_keys(['zcbusdb', 'zcbusnet', 'zcbusrestapi', 'zcbusvue', 'zp', 'zcbuscache'])  ]
Flush data to /compose_location/docker-compose.yml
===> Finish init basic ...
192.168.2.33==➜ prepare cloud_server Sucessfull...
192.168.2.33==➜ 
192.168.2.33==➜ 

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

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

192.168.2.33==[Step 13]: starting zcbus ...
[+] Running 6/6
 ✔ Container zcbuscache    Started                                                                                                                                                                          4.5s 
 ✔ Container zcbusdb       Started                                                                                                                                                                          4.7s 
 ✔ Container zcbusnet      Started                                                                                                                                                                          4.7s 
 ✔ Container zp            Started                                                                                                                                                                          4.7s 
 ✔ Container zcbusrestapi  Started                                                                                                                                                                          2.4s 
 ✔ Container zcbusvue      Started                                                                                                                                                                          3.6s 
192.168.2.33==➜ =============will load data mode for cloud_server================
192.168.2.33==➜ Will Install for load zcbus's data...
192.168.2.33==➜ 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.33==➜ Check zcbusdb Connect Failed ,wait 10 seconds and retry 1 times ...
192.168.2.33==➜ Check zcbusdb Connect start ...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
192.168.2.33==➜ Check zcbusdb Connect Failed ,wait 10 seconds and retry 2 times ...
192.168.2.33==➜ Check zcbusdb Connect start ...
mysql: [Warning] Using a password on the command line interface can be insecure.
192.168.2.33==➜ Check zcbusdb Connect Sucessfull...
192.168.2.33==➜ 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 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...
INFO => DEAL sql file bus_dict_table_list...
INFO => DEAL sql file zbomc_sys_password_blacklist...
INFO => DEAL sql file update...
INFO => DEAL sql file p1_cloud_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 
===============
192.168.2.33==➜ Finished Load data to zcbusdb sucessfull...

====>>>ZCBUS [ Tue Sep 10 11:22:05 CST 2024 ]
NAME           IMAGE                                COMMAND                  SERVICE        CREATED          STATUS          PORTS
zcbuscache     reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbuscache     35 seconds ago   Up 31 seconds   
zcbusdb        reg.zbomc.com/zcbus_mysql:v2.0.1     "docker-entrypoint.s…"   zcbusdb        35 seconds ago   Up 30 seconds   3306/tcp, 33060/tcp
zcbusnet       reg.zbomc.com/zcbus_net:v2.0.1       "sh /run.sh"             zcbusnet       35 seconds ago   Up 30 seconds   0.0.0.0:33060->33060/tcp, :::33060->33060/tcp
zcbusrestapi   reg.zbomc.com/zcbus_restapi:v2.0.1   "sh /run.sh"             zcbusrestapi   31 seconds ago   Up 29 seconds   7080/tcp
zcbusvue       reg.zbomc.com/zcbus_vue:v2.0.1       "/docker-entrypoint.…"   zcbusvue       31 seconds ago   Up 28 seconds   0.0.0.0:8890->80/tcp, :::8890->80/tcp
zp             reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zp             35 seconds ago   Up 30 seconds   
192.168.2.33==➜ 

192.168.2.33==[Step 13]: sync zcbus_docker to /data/docker02/...
copy /soft/simple_server/bin /data/docker02/...

192.168.2.33==[Step 13]: ready basic soft for basic zcbus_docker server ...
Check hostname [doris]'s ip is :[192.168.2.33]
192.168.2.33==➜ ZC_IPADDRESS :192.168.2.33
192.168.2.33==➜ ==============>/data/docker02========192.168.2.33=======

Note: add zcbus_docker service
? add zcbus_docker service successfully ...
192.168.2.33==➜ Read Master database info to /soft/simple_server/config/zcbus_master.ini
[INF] load libmysqlclient.so
[LV0] 2024-09-10 11:22:11: connect to mysql zcbus/***@192.168.2.33: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.33==➜ sync basic info to /data/docker02/ begin ...
copy /soft/simple_server/bin /data/docker02/...
copy /soft/simple_server/yaml /data/docker02/...
copy /soft/simple_server/common/add_zcbus_docker_service.sh /data/docker02/common/...
copy /soft/simple_server/common/docker.service /data/docker02/common/...
copy /soft/simple_server/common/zcbus_client.rsp /data/docker02/common/...
copy /soft/simple_server/common/zcbus_docker.service /data/docker02/common/...
copy /soft/simple_server/common/zcbus.properties /data/docker02/common/...
copy /soft/simple_server/common/zcbus.yml /data/docker02/common/...
copy /soft/simple_server/common/.check /data/docker02/common/...
copy /soft/simple_server/common/.zcbus.common /data/docker02/common/...
copy /soft/simple_server/zcmgr.sh /data/docker02/...
copy /soft/simple_server/soft/docker-20.10.10.tgz /data/docker02/soft/...
copy /soft/simple_server/soft/docker-compose-Linux-x86_64 /data/docker02/soft/...
copy /soft/simple_server/soft/zcbus /data/docker02/soft/...
192.168.2.33==➜ sync basic info to /data/docker02/ end ...
192.168.2.33==➜ Test zcbus_docker Connect to zcbus_master.ini Sucessfull...
192.168.2.33==➜ =========================== ready restart zcbus_docker ====================
zcbus_docker is Stopping ...
zcbus_docker is Finished ...
[+] Running 6/0
 ✔ Container zcbusnet      Running                                                                                                                                                                          0.0s 
 ✔ Container zcbuscache    Running                                                                                                                                                                          0.0s 
 ✔ Container zp            Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusdb       Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusrestapi  Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusvue      Running                                                                                                                                                                          0.0s 
192.168.2.33==➜ sync config info to /data/docker02/ begin ...
copy /soft/simple_server/config /data/docker02/...
copy /soft/simple_server/yaml /data/docker02/...
192.168.2.33==➜ sync config info to /data/docker02/ end ...
[+] Restarting 3/3
 ✔ Container zcbusrestapi  Started                                                                                                                                                                         10.9s 
 ✔ Container zcbusnet      Started                                                                                                                                                                         10.8s 
 ✔ Container zcbusvue      Started                                                                                                                                                                         10.9s 
192.168.2.33==➜ =============================================================
192.168.2.33==➜ Manager console Website Address: http://192.168.2.33:8890
192.168.2.33==➜ Default login account : admin
192.168.2.33==➜ Default login password: 123456
192.168.2.33==➜ 
192.168.2.33==➜ =============================================================
192.168.2.33==✔ ----Zcbus has been installed and started successfully.----
====1
no such service: zcbus
192.168.2.33==➜ Zcbus Container zcbus Not Exists and install...
192.168.2.33==➜ /soft/simple_server/common/zcbus.properties ZC_SERV_LOCALTION  :[0]
Check hostname [doris]'s ip is :[192.168.2.33]
=====================>>>> ymlzcbus file : zcbus-server-zcbus.yml.jinja ,zcbus: zcbus
Append  zcbus  sucessfull...
Flush data to /compose_location/docker-compose.yml
[+] Running 7/7
 ✔ Container zcbus         Started                                                                                                                                                                          0.4s 
 ✔ Container zp            Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusdb       Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusnet      Running                                                                                                                                                                          0.0s 
 ✔ Container zcbuscache    Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusrestapi  Running                                                                                                                                                                          0.0s 
 ✔ Container zcbusvue      Running                                                                                                                                                                          0.0s 
192.168.2.33==➜ =============will load data mode for zcbus================
=================192.168.2.33
Linux doris 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.1-16 64 bit (QA) - Production on 2024-07-26 18:21:47
Copyright (c) 2024 ZCBUS. All Rights Reserved.
process id 572677
connect string: mysql:zcbus/AqJbPFSalFZFLEbO@192.168.2.33:33060/zcbus
login host[192.168.2.33] 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'
Affected_rows: 1
execute sql OK.

====>>>ZCBUS [ Tue Sep 10 11:22:31 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   
zcbuscache     reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbuscache     About a minute ago   Up 56 seconds           
zcbusdb        reg.zbomc.com/zcbus_mysql:v2.0.1     "docker-entrypoint.s…"   zcbusdb        About a minute ago   Up 56 seconds           3306/tcp, 33060/tcp
zcbusnet       reg.zbomc.com/zcbus_net:v2.0.1       "sh /run.sh"             zcbusnet       About a minute ago   Up 6 seconds            0.0.0.0:33060->33060/tcp, :::33060->33060/tcp
zcbusrestapi   reg.zbomc.com/zcbus_restapi:v2.0.1   "sh /run.sh"             zcbusrestapi   57 seconds ago       Up 6 seconds            7080/tcp
zcbusvue       reg.zbomc.com/zcbus_vue:v2.0.1       "/docker-entrypoint.…"   zcbusvue       57 seconds ago       Up 6 seconds            0.0.0.0:8890->80/tcp, :::8890->80/tcp
zp             reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zp             About a minute ago   Up 56 seconds           
root     571668      1  0 11:22 pts/0    00:00:00 /data/docker02/bin/zcbus_docker -log_level 2
root     571722      1  0 11:22 pts/0    00:00:00 /data/docker02/bin/zcbus_docker -manager -log_level 2
root     571761      1  0 11:22 pts/0    00:00:00 /data/docker02/bin/zcbus_docker -listener -log_level 2
192.168.2.33==➜ sync config info to /data/docker02/ begin ...
copy /soft/simple_server/config /data/docker02/...
copy /soft/simple_server/yaml /data/docker02/...
192.168.2.33==➜ sync config info to /data/docker02/ end ...
[+] Restarting 3/3
 ✔ Container zcbusnet      Started                                                                                                                                                                         10.9s 
 ✔ Container zcbusrestapi  Started                                                                                                                                                                         11.0s 
 ✔ Container zcbusvue      Started                                                                                                                                                                         10.9s 
192.168.2.33==➜ =============================================================
192.168.2.33==➜ Manager console Website Address: http://192.168.2.33:8890
192.168.2.33==➜ Default login account : admin
192.168.2.33==➜ Default login password: 123456
192.168.2.33==➜ 
192.168.2.33==➜ =============================================================
192.168.2.33==✔ ----Zcbus has been installed and started successfully.----

4.4 安装完成后检查进程

[root@doris simple_server]# ./zcmgr.sh check
192.168.2.33==➜ Check ZC_DOCKER_HOME=/data/docker ZC_DATA_HOME=/data/docker02 ok

====>>>ZCBUS [ Tue Sep 10 11:24:44 CST 2024 ]
NAME           IMAGE                                COMMAND                  SERVICE        CREATED         STATUS         PORTS
zcbus          reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbus          2 minutes ago   Up 2 minutes   
zcbuscache     reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zcbuscache     3 minutes ago   Up 3 minutes   
zcbusdb        reg.zbomc.com/zcbus_mysql:v2.0.1     "docker-entrypoint.s…"   zcbusdb        3 minutes ago   Up 3 minutes   3306/tcp, 33060/tcp
zcbusnet       reg.zbomc.com/zcbus_net:v2.0.1       "sh /run.sh"             zcbusnet       3 minutes ago   Up 2 minutes   0.0.0.0:33060->33060/tcp, :::33060->33060/tcp
zcbusrestapi   reg.zbomc.com/zcbus_restapi:v2.0.1   "sh /run.sh"             zcbusrestapi   3 minutes ago   Up 2 minutes   7080/tcp
zcbusvue       reg.zbomc.com/zcbus_vue:v2.0.1       "/docker-entrypoint.…"   zcbusvue       3 minutes ago   Up 2 minutes   0.0.0.0:8890->80/tcp, :::8890->80/tcp
zp             reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   zp             3 minutes ago   Up 3 minutes   
root     571668      1  0 11:22 pts/0    00:00:00 /data/docker02/bin/zcbus_docker -log_level 2
root     571722      1  0 11:22 pts/0    00:00:00 /data/docker02/bin/zcbus_docker -manager -log_level 2
root     571761      1  0 11:22 pts/0    00:00:00 /data/docker02/bin/zcbus_docker -listener -log_level 2
  • 至此cloud_server模式已完成安装

5 服务端页面操作

5.1 在服务端上创建远程订阅客户端

创建远程订阅客户端时,注意客户端的默认启动状体要选为停止,否则服务端和客户端上的订阅进程都会启动

参数说明
序列号:自动生成,远程订阅客户端通过此序列号来识别服务端上对应的客户端。
机器码:远程订阅客户端主机的机器码。
机器码获取方式:
(1)远程订阅客户端主机root用户执行 cat /sys/class/dmi/id/product_uuid 命令获取,如下截图:

(2)在安装远程订阅客户端时也会提示机器码,如下截图:

6 网络配置

数据缓存模式为kafka/zcbus_cache时,由于远程订阅客户端需要与服务端共用数据缓存,此安装方式下的docker单机版需要外放kafka/zcbus_cache端口给远程订阅客户端

6.1 修改docker-compuse.yaml文件后重启

[root@doris yaml]# cd /data/docker02/yaml/
[root@doris yaml]# vim docker-compose.yml

networks:
  default:
    external: true
    name: zcbus
services:
  zcbus:
    container_name: zcbus
    environment:
      KAFKA_SERVER: zcbuskafka:9092
      LANG: en_US.UTF-8
      ZCBUS_CONTAINER: zcbus
      ZCBUS_CUSTOMERID: null
      ZCBUS_MACHINE_CODE: 75F64D56-31A6-F210-8D2F-C0D3C8B4E815
      ZC_IPADDRESS: 192.168.2.33
      database: zcbus
      dbhost: zcbusnet
      dbport: 33060
      dbpwd: e0twWGp8aVtWfGB8dn9YdTo
      dbuser: QFlYT0k6
    image: reg.zbomc.com/zcbus_server:v2.0.1
    在此处添加需要映射的端口
    ports:
    - 9092:9092
    volumes:
    - /data/docker02/zcbusdata/zcbusserver/bin:/usr/local/zcbus/bin
    - /data/docker02/zcbusdata/zcbusserver/lib:/usr/local/zcbus/lib
    - /data/docker02/zcbusdata/zcbusserver/cache:/usr/local/zcbus/cache
    - /data/docker02/zcbusdata/zcbusserver/mq:/usr/local/zcbus/mq
    - /data/docker02/zcbusdata/zcbusserver/log:/usr/local/zcbus/log
    - /data/docker02/zcbusdata/zcbusserver/jdk:/usr/local/zcbus/jdk
    - /data/docker02/zcbusdata/zcbusserver/jar:/usr/local/zcbus/jar

[root@doris yaml]# docker-compose up -d
 ✔ Container zcbus         Started                                                     10.5s 
--修改配置后重启容器

[root@doris yaml]# docker ps
CONTAINER ID   IMAGE                                COMMAND                  CREATED              STATUS              PORTS                                           NAMES
7655f816e130   reg.zbomc.com/zcbus_server:v2.0.1    "/bin/bash -c ${ZCBU…"   About a minute ago   Up About a minute   0.0.0.0:9092->9092/tcp, :::9092->9092/tcp       zcbus
--zcbus容器中有配置的9092端口映射

6.2 界面网络配置

注:zcbus_cache需要开通6600/6601两个端口,开通方式参考以上

文档更新时间: 2024-11-19 17:01   作者:liyue