前言
必须按顺序执行以下操作完成蓝鲸智云社区版基础包的安装,以下步骤若有报错/失败,需要根据提示修复错误后,在重新执行相同的命令(支持断点续装)。
1.安装 PaaS 平台及其依赖服务 ./bk_install paas
该步骤完成后,可以打开 PaaS 平台。
[root@JSH-01 ~]# cd /data/install
[root@JSH-01 install]# ./bk_install paas
……
enter a absolute path [/data/bkce]: #选择安装目录,直接默认即可 /data/bkce/
……
------------------------- agreements ---------------------------------
Dear users, welcome to use the Tencent BlueKing Software. Please
access http://bk.tencent.com/info/#laws to read the Tencent BlueKing
Software License and Service Agreement carefully. You have no right to
install or use the Software and related services unless you have read
and accepted all the terms of this Agreement. By downloading, install-
ing, using or logging in the Software, you shall be deemed to have
read and agreed to be bound by the Agreement above. If you have under-
stood the above content, please enter "yes" to continue installation,
otherwise, please enter "no" to abort. Thank you for your understan-
ding and support of the Tencent BlueKing Software.
----------------------------------------------------------------------
yes/no ? #提示是否同意腾讯协议,输入yes同意即可
……
如果以上步骤没有报错, 你现在可以通过 http://paas.bk.com:80 访问 paas 平台,
登陆用户名(login user): admin
登陆密码(login password): el3ZQgIN7r
[root@JSH-01 install]# echo $? #验证执行过程知否报错
0
需要修改本机的hosts文件,将NGINX所在机器的IP设置为 paas.bk.com 的解析IP地址。
2、安装配置平台及其依赖服务 ./bk_install cmdb
该步骤完成后,可以打开配置平台,看到蓝鲸业务及示例业务。
[root@JSH-01 install]# ./bk_install cmdb
……
[192.168.1.7]20200416-195900 98 starting zk(ALL) on host: 192.168.1.8
ZooKeeper JMX enabled by default
Using config: /data/bkce/etc/zoo.cfg
Starting zookeeper ... STARTED
[192.168.1.7]20200416-195906 98 starting zk(ALL) on host: 192.168.1.9
ZooKeeper JMX enabled by default
Using config: /data/bkce/etc/zoo.cfg
Starting zookeeper ... STARTED
[192.168.1.7]20200416-195909 98 starting zk(ALL) on host: 192.168.1.7
ZooKeeper JMX enabled by default
Using config: /data/bkce/etc/zoo.cfg
Starting zookeeper ... STARTED
[192.168.1.7]20200416-195948 102 zk.service.consul无法解析
报错1:[192.168.1.7]20200416-195948 102 zk.service.consul无法解析
解决1:确认 /etc/resolv.conf
里第一行是nameserver 127.0.0.1,如果没有需要添加
[root@JSH-01 install]# dig zk.service.consul
; <<>> DiG 9.11.4-P2-RedHat-9.11.4-