腾讯蓝鲸简介
本次部署环境:
Centos7.6
系统配置为:
CPU AMD R5 1600x #使用i3 4代的虚拟机测试,各种报错,怀疑蓝鲸对cpu也有要求
1核1G 20G磁盘
使用到的蓝鲸安装文件下载地址:
https://bk.tencent.com/download/
一.下载完整安装包
二.下载部署脚本
三.步骤步骤
具体命令如下
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y #需要使用到epel安装源 systemctl stop firewalld #关闭防火墙
systemctl disable firewalld
vi /etc/selinux/config #selinux设置为disable
SELINUX=disabled
echo 'DefaultLimitNOFILE=102400' >> /etc/systemd/system.conf #修改最大文件打开数 echo 'DefaultLimitNPROC=102400' >> /etc/systemd/system.conf mkdir /data tar -zxvf bkce_src-4.1.16.tgz -C /data/ tar -zxvf install_ce-master-1.4.13.tgz -C /data cd /data/ cat /sys/class/net/ens33/address #获取mac地址,将该mac地址复制到https://bk.tencent.com/download_ssl/,点击下载证书 tar -xvf ssl_certificates.tar.gz -C /data/src/cert/ vi /data/install/globals.env #这两个值做如下修改 export BK_DOMAIN="bk.cloud.tencent.com" #修改域名值,因为我们使用域名进行访问 export PAAS_ADMIN_PASS='Password' #修改秘密 cd /data/install
yum install rsync -y #安装rsync,否则后续检测会失败
systemctl stop NetworkManager.service #关闭该服务,否则后续会检测失败 ./install_minibk -y #开始安装
安装过程,会先进行安装环境检测
1.检测过程中,如果提示start <
2.检测过程中,如果提示start <
NetworkManager is running, you should shutdown firewall
执行systemctl stop NetworkManager.service
3.安装过程中,会提示enter a absolute path [/data/bkce]:这个是让里选择安装目录而已,直接默认即可
4.安装过程中会提示是否同意腾讯协议,输入yes同意即可
------------------------- 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 ?
5.在安装过程中,如果报错,修复完对应的报错后,多次重复安装是不会有问题的,直到安装成功
访问蓝鲸WEB页面
在需要访问该WEB页面的电脑上,修改hosts文件即可
cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.2.137 paas.bk.cloud.tencent.com #这三行是我添加的。直接添加进去即可,无需重启电脑 192.168.2.137 cmdb.bk.cloud.tencent.com 192.168.2.137 job.bk.cloud.tencent.com
在浏览器访问http://paas.bk.cloud.tencent.com
登陆进去后
配置平台界面
作业平台界面
节点平台界面
好了。腾讯蓝鲸部署完成,可以开始体验一下了。
参考链接:https://cloud.tencent.com/developer/labs/lab/10386