适用于:蓝鲸三机(及其以上)的社区版环境部署:
开始安装蓝鲸社区版前,需按以下文档指南,做好准备工作。
检查yum源,检查版本,
!Check system-relases cat /etc/redhat-relases -----> 查看版本信息
echo $http_proxy不能有IP,若有值需要干掉
获取安装包
在中控机上,为了便于记忆:TV LS
T---tar
tar xf bkce_product-4.1.16.tgz
V---vim
先修改install.config globals.env
globals.env 域名 paas密码
export GSE_WIN_AGENT_HOME=c:/gse
export AUTO_GET_WANIP=1
export GSE_WAN_IP=(1.1.1.1 1.1.1.1)
export NGINX_WAN_IP=(2.2.2.2 2.2.2.2)
L---license
gse,liscense服务器MAC申请,上传至/data
tar xf ssl_certificates.tar.gz -C /data/src/cert/
S----ssh
1、下载安装包 (wget )并解压
yum -y install wget
wget http://bkopen-1252002024.file.myqcloud.com/ce/bkce_product-4.1.16.tgz
cd /data
get_lan_ip () {
...省略
if ($3 ~ /^10\./) {
print $3
}
if ($3 ~ /^138\./) {
print $3
} #增加项
return $?
}
2.配置yum源 本地源 epel源
yum -y install epel-release
3.解压脚本,申请证书
tar -xf ssl.XXXX.tar.gz -C /data/src/cert
主机和系统环境 ,整体的环境安装为了便于记忆:NSX DNS FLY WE UP
N---ntp
for i in `cat install.config|awk '{print $1}'`;do ssh $i timedatectl set-timezone Asia/Shanghai;done
for i in `cat install.config|awk '{print $1}'`;do ssh $i date ;done
S---rsync
X---proxy
D---DNS(5.0.4版本的可以不需要配置)
for i in `cat install.config|awk '{print $1}'`;do ssh $i "cat /etc/resolv.conf" ;done
for i in `cat install.config|awk '{print $1}'`;do ssh $i "sed -i '1i\nameserver 127.0.0.1' /etc/resolv.conf" ;done
vim /etc/resolv.conf 首行 nameserver 127.0.0.1 删除option rotate
把DNS1=127.0.0.1 这些DNS加入网卡
查看网卡:
for i in `cat install.config|awk '{print $1}'`;do ssh $i "cat /etc/sysconfig/network-scripts/ifcfg-ens192;echo " ;done
N--network,networkmanager
for i in `cat install.config|awk '{print $1}'`;do ssh $i systemctl stop NetworkManager;done
for i in `cat install.config|awk '{print $1}'`;do ssh $i systemctl disable NetworkManager;done
S—selinux
for i in `cat install.config|awk '{print $1}'`;do ssh $i setenforce 0;done
for i in `cat install.config|awk '{print $1}'`;do ssh $i sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config;done
F---firewalld
for i in `cat install.config|awk '{print $1}'`;do ssh $i systemctl stop firewalld;done
for i in `cat install.config|awk '{print $1}'`;do ssh $i systemctl disable firewalld;done
l---ulimit
这条命令手动执行
echo -e "* hard nofile 204800 \n* soft nofile 204800" >> /etc/security/limits.conf
for i in `cat install.config|awk '{print $1}'`;do ssh $i \
"echo -e "ulimit -n 204800" >> /etc/profile ;\
source /etc/profile ;ulimit -n"
done
Y---yum
已经安装
epel源:
https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/
wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo
wget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repo
W----wget
e---epel_release
for i in `cat install.config|awk '{print $1}'`;do ssh $i yum -y install epel-release;done
U---umask
Umask
p---pip
10.precheck检查
11.开始安装
cd /data/install
./bk_install paas
./bk_install cmdb 和 ./bk_install app_mgr
./bk_install job
./bk_install bkdata 和 ./bk_install fta
./bk_install saas-o
12.配置标准运维SAAS的redis,重装SAAS