操作系统版本

Kylin-4.0.2-server-sp4-20092117.J1-x86_64_HQBZB
注:测试本系统安装时用户,未使用root用户,故安装ZCBUS软件时,基本使用sudo命令配合执行

安装ZCBUS软件

1、上传zcbus软件安装包,并解压

cp zcbus.server_full.docker.v2.0.1.tar.gz zcbus@192.168.0.50:/home/zcbus
tar -zxvf zcbus.server_full.docker.v2.0.1.tar.gz

2、安装软件

cd server_full
zcbus@Kylin:~/server_full$ ./zcmgr.sh install
➜ Warning: Please run with root user!
zcbus@Kylin:~/server_full$ sudo ./zcmgr.sh install

[Step 1]: checking OS version/firewalld/seLinux  and config ...
############################## check host ::: /etc/hosts #############################################
➜ check host ::: 1 ::: OK
➜ 127.0.1.1     Kylin
############################## check selinux ::: /etc/selinux/config #################################
➜ check selinux ::: disabled ::: OK
############################## check firewalld #######################################################
➜ The file [/etc/redhat-release] is not exist !!!
############################## check sysctl ::: /etc/sysctl.conf #####################################
➜ kernel.shmall ::: 4294967296 (>=4294967296) ::: OK
➜ fs.aio-max-nr ::: 1048576 (>=1048576) ::: OK
➜ fs.file-max ::: 6815744 (>=6815744) ::: OK
➜ kernel.shmmax ::: 2070833152 (>=2070833152) ::: OK
➜ kernel.shmmni ::: 4096 (>=4096) ::: OK
➜ kernel.sem ::: 250 (>=250) 32000 (>=32000) 100 (>=100) 128 (>=128) ::: OK
➜ net.ipv4.ip_local_port_range ::: 1024 (>=1024) 65500 (>=65500) ::: OK
➜ net.core.rmem_default ::: 262144 (>=262144) ::: OK
➜ net.core.rmem_max ::: 4194304 (>=4194304) ::: OK
➜ net.core.wmem_default ::: 262144 (>=262144) ::: OK
➜ net.core.wmem_max ::: 1048576 (>=1048576) ::: OK
➜ kernel.threads-max ::: 999999 (>=999999) ::: OK
➜ kernel.pid_max ::: 999999 (>=999999) ::: OK
➜ vm.max_map_count ::: 1999999 (>=1999999) ::: OK
➜ net.ipv4.ip_forward ::: 1 (>=1) ::: OK
############################## check limits ::: /etc/security/limits.conf ############################
➜ soft-nofile ::: 65536 (>=65536) ::: OK
➜ hard-nofile ::: 65536 (>=65536) ::: OK
➜ soft-nproc ::: 65536 (>=65536) ::: OK
➜ hard-nproc ::: 65536 (>=65536) ::: OK
############################## TJ ####################################################################
➜ OK : 21 ERROR : 0 WARNING : 0
** 注:因测试使用的是ZCBUS而非ROOT用户,故如出现以上检测不通过的情况,需要手动将参数写入特定文件中 ****
[INFO] whether to start install zcbus ... Please input 'y/Y' to continue/press Ctrl+C to exit :y
[INFO] whether to install integrate/external ,defaut is integrate:
[INFO] whether to install server_full/cloud_server/cloud_client/server,defaut is server:server

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

[Step 3]: checking if docker is installed ...
############################## docker version: 19.03.15 ##############################################

[Step 4]: checking docker-compose is installed ...
############################## docker-compose version: 1.25.0 ########################################

[Step 5]: checking mysql directory ...
➜ /data/docker02/zcbusdata/mysql is existd! 

[Step 6]: checking kafka directory ...
➜ rm -rf /data/docker02/zcbusdata/zcbuskafka/logs/.lock
➜ /data/docker02/zcbusdata/zcbuskafka is existd! 

[Step 7]: checking cache directory ...
➜ /data/docker02/zcbusdata/cache is existd! 

[Step 8]: checking zookeeper directory ...
➜ /data/docker02/zcbusdata/zcbuszookeeper is existd! 

[Step 9]: loading zcbus images ...
[INFO] Please input if load images y/n:y

f1dd685eb59e: Loading layer [==================================================>]   5.88MB/5.88MB
2fb6465c7ce4: Loading layer [==================================================>]  883.2kB/883.2kB
aae8d67f7e2a: Loading layer [==================================================>]  56.23MB/56.23MB
c374f87c631e: Loading layer [==================================================>]  3.584kB/3.584kB
262e3275609f: Loading layer [==================================================>]  12.29kB/12.29kB
dc087507abf9: Loading layer [==================================================>]   5.12kB/5.12kB
b69092a6b69c: Loading layer [==================================================>]   2.56kB/2.56kB
dfc6ea4112cf: Loading layer [==================================================>]  3.584kB/3.584kB
Loaded image: reg.zbomc.com/zcbus_loki:v2.0.1
1a058d5342cc: Loading layer [==================================================>]  5.886MB/5.886MB
a465688b5fad: Loading layer [===========================================>       ]  156.5MB/179.4MB
a465688b5fad: Loading layer [==================================================>]  179.4MB/179.4MB
813b4bde788e: Loading layer [==================================================>]  2.048kB/2.048kB
c3c39d160501: Loading layer [==================================================>]  137.3MB/137.3MB
0ec9ac34a9df: Loading layer [==================================================>]   2.56kB/2.56kB
Loaded image: reg.zbomc.com/zcbus_restapi:v2.0.1
129b697f70e9: Loading layer [==================================================>]  205.1MB/205.1MB
2d0c92e53222: Loading layer [==================================================>]    183MB/183MB
952ea0986f6c: Loading layer [==================================================>]  3.584kB/3.584kB
69d82cae6d6e: Loading layer [==================================================>]  2.298MB/2.298MB
6a1fb17aa012: Loading layer [==================================================>]  36.44MB/36.44MB
c99408e41ba1: Loading layer [==================================================>]  4.608kB/4.608kB
f3e98d15098d: Loading layer [==================================================>]  3.584kB/3.584kB
25f4ef22ed35: Loading layer [==================================================>]  309.2kB/309.2kB
Loaded image: reg.zbomc.com/zcbus_zookeeper:v2.0.1
87c8a1d8f54f: Loading layer [==================================================>]   72.5MB/72.5MB
8d77519601a5: Loading layer [==================================================>]  338.4kB/338.4kB
cb1c4d92429d: Loading layer [==================================================>]  9.539MB/9.539MB
614fbc08d1b2: Loading layer [==================================================>]    4.2MB/4.2MB
d4a3e8c51d19: Loading layer [==================================================>]  1.536kB/1.536kB
d0425b5c07f6: Loading layer [==================================================>]  53.76MB/53.76MB
7d338559a103: Loading layer [==================================================>]  6.656kB/6.656kB
d8e44f98a95f: Loading layer [==================================================>]  3.584kB/3.584kB
937609480ea5: Loading layer [==================================================>]  313.4MB/313.4MB
7888c0a868da: Loading layer [==================================================>]  16.38kB/16.38kB
e3c6570b4ce1: Loading layer [==================================================>]  1.536kB/1.536kB
7eadcb0cedba: Loading layer [==================================================>]  6.656kB/6.656kB
d1c38a84f63d: Loading layer [==================================================>]  5.632kB/5.632kB
0d842a3bd724: Loading layer [==================================================>]  5.632kB/5.632kB
d4cf5f7c7edf: Loading layer [==================================================>]  3.584kB/3.584kB
dad34fed67b8: Loading layer [==================================================>]  6.656kB/6.656kB
3f52ba3e85a1: Loading layer [==================================================>]   2.56kB/2.56kB
9f6cf09a3105: Loading layer [==================================================>]  16.38kB/16.38kB
e8bcc8f887fa: Loading layer [==================================================>]   2.56kB/2.56kB
6bf8f5e8b782: Loading layer [==================================================>]  7.168kB/7.168kB
bcc831dd736b: Loading layer [==================================================>]  4.096kB/4.096kB
3b9efcbeeb7e: Loading layer [==================================================>]  3.584kB/3.584kB
28e2bb1e7ee7: Loading layer [==================================================>]  3.072kB/3.072kB
147c0192d1e7: Loading layer [==================================================>]   12.8kB/12.8kB
222b944a07d5: Loading layer [==================================================>]  67.58kB/67.58kB
cc0234208e9f: Loading layer [==================================================>]  7.168kB/7.168kB
7270522ffbfb: Loading layer [==================================================>]  62.98kB/62.98kB
fe8696dbfc2e: Loading layer [==================================================>]   7.68kB/7.68kB
8e7ceca7dde5: Loading layer [==================================================>]  5.632kB/5.632kB
ff90e1a06381: Loading layer [==================================================>]  199.2kB/199.2kB
f738eb31c636: Loading layer [==================================================>]  5.632kB/5.632kB
894a9eee1ea5: Loading layer [==================================================>]   2.56kB/2.56kB
e0abe70027ef: Loading layer [==================================================>]  3.072kB/3.072kB
627564453405: Loading layer [==================================================>]   2.56kB/2.56kB
0b5f1bffa03e: Loading layer [==================================================>]  15.87kB/15.87kB
75d43fa91077: Loading layer [==================================================>]  6.656kB/6.656kB
586ef36eff10: Loading layer [==================================================>]  282.6kB/282.6kB
3a034646f4e8: Loading layer [==================================================>]   2.56kB/2.56kB
28acd541a539: Loading layer [==================================================>]  655.4kB/655.4kB
b22d3f3ef31c: Loading layer [==================================================>]  1.536kB/1.536kB
e69d31a030b0: Loading layer [==================================================>]  1.536kB/1.536kB
1e22d5bd7ac4: Loading layer [==================================================>]  9.216kB/9.216kB
Loaded image: reg.zbomc.com/zcbus_mysql:v2.0.1
4e4865057c50: Loading layer [==================================================>]  62.26MB/62.26MB
ee7090759e77: Loading layer [==================================================>]  4.096kB/4.096kB
c03b8bb1ede1: Loading layer [==================================================>]  2.298MB/2.298MB
35c4529e7e85: Loading layer [==================================================>]  68.48MB/68.48MB
6f511fcafe7e: Loading layer [==================================================>]  10.75kB/10.75kB
Loaded image: reg.zbomc.com/zcbus_kafka:v2.0.1
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
0a71feeb2e3f: Loading layer [==================================================>]  4.096kB/4.096kB
62669a81125f: Loading layer [==================================================>]  25.09kB/25.09kB
56f0a735382e: Loading layer [==================================================>]  3.584kB/3.584kB
be0afd2548f6: Loading layer [==================================================>]  3.584kB/3.584kB
4a86dfe86098: Loading layer [==================================================>]  5.632kB/5.632kB
e44afbc67886: Loading layer [==================================================>]   5.12kB/5.12kB
ff6de10f2ca0: Loading layer [==================================================>]  6.144kB/6.144kB
4d07fa764444: Loading layer [==================================================>]  7.168kB/7.168kB
f767115cd7ca: Loading layer [==================================================>]   5.12kB/5.12kB
b9bb03ddeae1: Loading layer [==================================================>]   5.12kB/5.12kB
4b7f4d290aa0: Loading layer [==================================================>]  5.632kB/5.632kB
6b9f288fc318: Loading layer [==================================================>]   5.12kB/5.12kB
f391135700a6: Loading layer [==================================================>]   5.12kB/5.12kB
488bab5b59de: Loading layer [==================================================>]  4.608kB/4.608kB
8f4b06445a9b: Loading layer [==================================================>]   5.12kB/5.12kB
508d9960b088: Loading layer [==================================================>]  4.608kB/4.608kB
9c751dc6b644: Loading layer [==================================================>]  27.65kB/27.65kB
Loaded image: reg.zbomc.com/zcbus/prepare:latest
e8b689711f21: Loading layer [==================================================>]  83.86MB/83.86MB
010147bc0bbf: Loading layer [==================================================>]  3.072kB/3.072kB
5c58e4eec750: Loading layer [==================================================>]   24.8MB/24.8MB
3c1ff0b3e931: Loading layer [==================================================>]  1.242MB/1.242MB
35017d12f29d: Loading layer [=======>                                           ]  10.58MB/73.88MB
35017d12f29d: Loading layer [==================================================>]  73.88MB/73.88MB
cab52f062b96: Loading layer [==================================================>]  3.584kB/3.584kB
f973ea90adb0: Loading layer [==================================================>]  3.072kB/3.072kB
Loaded image: reg.zbomc.com/zcbus_promtail:v2.0.1
ace0eda3e3be: Loading layer [==================================================>]  5.843MB/5.843MB
4cd63e19178d: Loading layer [==================================================>]  3.072kB/3.072kB
248ba1c4f6ba: Loading layer [==================================================>]  5.096MB/5.096MB
aff48983e83e: Loading layer [==================================================>]  15.97MB/15.97MB
4840f2d96ad6: Loading layer [==================================================>]  162.9MB/162.9MB
5f70bf18a086: Loading layer [==================================================>]  1.024kB/1.024kB
aad9795b78be: Loading layer [==================================================>]  57.86kB/57.86kB
5ea36ae5c79f: Loading layer [==================================================>]   5.12kB/5.12kB
Loaded image: reg.zbomc.com/grafana:v2.0.1
e2c6ff462357: Loading layer [==================================================>]  119.3MB/119.3MB
26270c5e25fa: Loading layer [==================================================>]  17.18MB/17.18MB
a42439ce9650: Loading layer [==================================================>]  17.87MB/17.87MB
b598b505e884: Loading layer [==================================================>]    340kB/340kB
b074dd8ed56c: Loading layer [==================================================>]  2.409MB/2.409MB
9eb3c89b1bb4: Loading layer [==================================================>]  200.6MB/200.6MB
cbc0eb5aa77b: Loading layer [==================================================>]  5.632kB/5.632kB
eaab36e07aa7: Loading layer [==================================================>]  4.096kB/4.096kB
c3f03afb43f6: Loading layer [==================================================>]  13.82kB/13.82kB
Loaded image: reg.zbomc.com/influxdb:v2.0.1
edf3aa290fb3: Loading layer [==================================================>]  211.1MB/211.1MB
5c86d1b5b0b2: Loading layer [==================================================>]  104.1MB/104.1MB
06af7e657bc1: Loading layer [==================================================>]  69.63kB/69.63kB
851ed5e29aa7: Loading layer [==================================================>]   72.7kB/72.7kB
edfee88ef4c3: Loading layer [==================================================>]  4.096kB/4.096kB
01fa295fff27: Loading layer [==================================================>]  5.632kB/5.632kB
41fcea307fbf: Loading layer [==================================================>]  7.168kB/7.168kB
Loaded image: reg.zbomc.com/zcbus_server:v2.0.1
2edcec3590a4: Loading layer [==================================================>]  83.86MB/83.86MB
5f5f780b24de: Loading layer [==================================================>]  61.99MB/61.99MB
4270b63061e5: Loading layer [==================================================>]  3.072kB/3.072kB
32359d2cd6cd: Loading layer [==================================================>]  4.096kB/4.096kB
4ded77d16e76: Loading layer [==================================================>]  3.584kB/3.584kB
51a4ac025eb4: Loading layer [==================================================>]  7.168kB/7.168kB
3d08ee42e835: Loading layer [==================================================>]  10.85MB/10.85MB
82318ffaecb6: Loading layer [==================================================>]  4.096kB/4.096kB
Loaded image: reg.zbomc.com/zcbus_vue:v2.0.1
➜ Load images to docker's sucessfull...
➜ 
9df8128fb69db99ae106c69b9eafd09efa9e1a1c27502cd7fe0129dabdbbd893
➜ network zcbus is create sucessfull...
➜ type :server
➜ ready customerurl /home/zcbus/server_full/common/zcbus.properties ...
➜ get customerurl: http://v2.zbomc.com ...
➜ ready db_server /home/zcbus/server_full/common/zcbus.properties ...
➜ get db_server: QFlYT0k6/e0twWGp8aVtWfGB8dn9YdTo@zcbusdb:3306/zcbus ...
➜ ready kafka url /home/zcbus/server_full/common/zcbus.properties CACHE_SERVER...
➜ get kafka_server: zcbuskafka:9092 ...
===>conf:[ /input/zcbus.yml ] ,oper :[ init ] ,[cusotmerid: 0 ], zcbus:[ zcbus ],zctype:[ server ],kafka_server:[ zcbuskafka:9092 ]<===
ready basic info ...
db_server : QFlYT0k6/e0twWGp8aVtWfGB8dn9YdTo@zcbusdb:3306/zcbus
Generated configuration file: /compose_location/docker-compose.yml
Finish init basic ...
➜ 
➜ 

[Step 10]: checking if ports is used ...
➜ Port  33060 is available!!
➜ Port  8890 is available!!
➜ Port  8085 is available!!
➜ Port  8087 is available!!
➜ Port  8891 is available!!
➜ Port  8892 is available!!
➜ Port  8086 is available!!
➜ Port  9092 is available!!
➜ Port  2181 is available!!

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

[Step 12]: starting zcbus ...
Creating zcbusdb        ... done
Creating zcbuszookeeper ... done
Creating zcbusvue       ... done
Creating zcbuskafka     ... done
Creating zcbusrestapi   ... done

====>>>ZCBUS [ Tue Mar 15 16:38:13 CST 2022 ]
     Name                   Command               State                 Ports               
--------------------------------------------------------------------------------------------
zcbusdb          docker-entrypoint.sh /run.sh     Up      0.0.0.0:33060->3306/tcp, 33060/tcp
zcbuskafka       docker-entrypoint.sh             Up      0.0.0.0:9092->9092/tcp            
zcbusrestapi     sh /run.sh                       Up      7080/tcp                          
zcbusvue         /docker-entrypoint.sh ngin ...   Up      0.0.0.0:8890->80/tcp              
zcbuszookeeper   docker-entrypoint.sh             Up      0.0.0.0:2181->2181/tcp            
➜ =======================================
➜ 
➜ Manager console Website Address: http://ipaddress:8890
➜ Default login account : admin
➜ Default login password: 123456
➜ 
➜ =======================================
✔ ----Zcbus has been installed and started successfully.----
➜ Ready compare soft ...
➜ /data/docker02/module/lib to /data/docker02/zcbusdata/zcbus/ is build sucessfull...
➜ /data/docker02/module/bin to /data/docker02/zcbusdata/zcbus/ is build sucessfull...
➜ /data/docker02/module/jdk to /data/docker02/zcbusdata/zcbus/ is build sucessfull...
➜ /data/docker02/module/jar to /data/docker02/zcbusdata/zcbus/ is build sucessfull...
➜ type :zcbus
➜ ready customerurl /home/zcbus/server_full/common/zcbus.properties ...
➜ get customerurl: http://v2.zbomc.com ...
➜ ready db_server /home/zcbus/server_full/common/zcbus.properties ...
➜ get db_server: QFlYT0k6/e0twWGp8aVtWfGB8dn9YdTo@zcbusdb:3306/zcbus ...
➜ ready kafka url /home/zcbus/server_full/common/zcbus.properties CACHE_SERVER...
➜ get kafka_server: zcbuskafka:9092 ...
===>conf:[ /input/zcbus.yml ] ,oper :[ add ] ,[cusotmerid: 0 ], zcbus:[ zcbus ],zctype:[ zcbus ],kafka_server:[ zcbuskafka:9092 ]<===
db_server : QFlYT0k6/e0twWGp8aVtWfGB8dn9YdTo@zcbusdb:3306/zcbus
Generated configuration file: zcbus-server.yml.jinja.v1
append Service sucessfull...
Flush data to /compose_location/docker-compose.yml
zcbusdb is up-to-date
zcbuszookeeper is up-to-date
zcbusvue is up-to-date
zcbusrestapi is up-to-date
zcbuskafka is up-to-date
Creating zcbus ... done

====>>>ZCBUS [ Tue Mar 15 16:38:29 CST 2022 ]
     Name                   Command               State                 Ports               
--------------------------------------------------------------------------------------------
zcbus            /bin/bash -c ${ZCBUS_HOME} ...   Up                                        
zcbusdb          docker-entrypoint.sh /run.sh     Up      0.0.0.0:33060->3306/tcp, 33060/tcp
zcbuskafka       docker-entrypoint.sh             Up      0.0.0.0:9092->9092/tcp            
zcbusrestapi     sh /run.sh                       Up      7080/tcp                          
zcbusvue         /docker-entrypoint.sh ngin ...   Up      0.0.0.0:8890->80/tcp              
zcbuszookeeper   docker-entrypoint.sh             Up      0.0.0.0:2181->2181/tcp            
文档更新时间: 2022-03-15 00:33   作者:阿力