摘要:安装蓝精系统,遇到的问题记录和安装流程,采用的是虚拟机开启4个服务器
首先是4台centos7.0服务器:
服务器采用最小安装,无界面
master: 172.16.76.130
slave1: 172.16.76.131
slave2: 172.16.76.132
slave3: 172.16.76.133
https://blog.csdn.net/u012375924/article/details/78533721
四台机器都需要安装
- 安装ifconfig ```angular2html yum install net-tools
每台服务器配置静态ip
<https://www.cnblogs.com/zhangyanpei/p/5929211.html>
2. 安装开发者工具
```angular2html
yum -y install epel-release
yum -y groupinstall "Development Tools"
yum -y install net-tools
- 确保都关闭了sellinux和防火墙
setenforce 0
vi /etc/selinux/config
SELINUX=disabled
systemctl stop firewalld.service
systemctl disable firewalld.service
- 增加127.0.0.1的nameserver
chmod +x /etc/rc.d/rc.local
echo "nameserver 127.0.0.1" >>/etc/resolv.conf
echo "nameserver 127.0.0.1" >>/etc/rc.d/rc.local
- 确保时间一致
yum install -y ntpdate
ntpdate time1.aliyun.com
- 服务器需要安装:
yum install rsync -y
- 修改主机名,可以略过
vi /etc/sysconfig/network 修改主机名,然后将HOSTNAME后面的值改为想要设置的主机名。
NETWORKING=yes
HOSTNAME= master
vi /etc/hosts
准备安装蓝鲸:
mater服务器配置:
mkdir /data #根目录下
将需要的三个包上传到data目录下解压
cd /data
tar xf bkce_src-4.0.15.tgz
tar xf install_ce-master-1.1.44.tgz
cd install #进入操作目录
cp install.config.3IP.sample nstall.config
vi install.config
修改成自己对应的ip
10.0.0.1 nginx,appt,rabbitmq,kafka,zk,es,bkdata,consul,fta
10.0.0.2 license,appo,kafka,zk,es,mysql,beanstalk,consul
10.0.0.3 paas,cmdb,job,gse,kafka,zk,es,redis,consul,mongodb
- 配置多台服务器免密登录
选择下面其中任意方法:
每一台都需要如下操作
方法1:
ssh-keygen -t rsa
cat id_rsa.pub >> .ssh/authorized_keys
scp authorized_keys root@172.16.76.131:~/.ssh/
最后他一台服务器,需要scp authorized_keys 传到每台服务器上
方法2:
$ cd /data/install
$ bash configure_ssh_without_pass # 根据提示输入各主机的 root 密码完成免密登陆配置
- 生成ssl证书
```apple js 官网:http://bk.tencent.com/download/#ssl 00:0c:29:9e:52:93;00:0c:29:0b:ef:9e;00:0c:29:70:e0:f4 00:0c:29:c0:6e:1a;00:0c:29:05:4f:b1;00:0c:29:df:52:c4 将sl_certificate.tar.gz上传到master服务器的/data/目录下,进行解压 tar -zvxf ssl_certificate.tar.gz -C /data/src/cert/
9. 执行单步安装
```angularjs
安装 PaaS 平台及所有依赖服务
./bkcec sync all
./bkcec install consul
./bkcec start consul
./bkcec install license
./bkcec install mysql
./bkcec install redis
./bkcec start mysql
./bkcec initdata mysql
./bkcec install nginx
./bkcec start license
./bkcec start redis
./bkcec start nginx
./bkcec install paas
./bkcec initdata paas
./bkcec start paas
安装 CMDB 及所有依赖服务
./bkcec install mongodb
./bkcec install gse
./bkcec install cmdb
./bkcec install zk
./bkcec start zk
./bkcec initdata gse
./bkcec start gse
./bkcec initdata mongodb
./bkcec start mongodb
./bkcec start cmdb
./bkcec initdata cmdb
安装 Job 及所有依赖服务
./bkcec install rabbitmq
./bkcec install job
./bkcec start rabbitmq
./bkcec initdata rabbitmq
./bkcec initdata job
./bkcec start job
./bkcec install gse_agent
安装 SaaS 正式环境及测试环境
./bkcec install appo
./bkcec initdata appo
./bkcec start appo
./bkcec activate appo
./bkcec install appt
./bkcec initdata appt
./bkcec start appt
./bkcec activate appt
安装 bkdata 及其依赖服务
./bkcec install es
./bkcec install kafka
./bkcec install beanstalk
./bkcec start es
./bkcec start kafka
./bkcec start beanstalk
./bkcec install bkdata
./bkcec initdata bkdata
./bkcec start bkdata
安装 fta (故障自愈后台) 机器依赖服务
./bkcec install fta
./bkcec initdata fta
./bkcec start fta
重新装:
./bkcec stop xxx
./bkcec clean xxx
./bkcec install xxx 1
./bkcec start xxx
报错处理:
1. rsync失败,无法复制文件到目标机器,是需要安装rsync
yum install rsync -y
2. nginx安装失败,是需要添加nginx源,在那台机器上安装,在那台机器上添加
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
3. mysql连接失败
检查防火墙,需要关闭防火墙
/data/bkce/service/mysql/bin/mysql -p -uroot
select user,host,password from user;
Grant all privileges on *.* to 'root'@'%' identified by '' with grant option;
update user set password="*B75584C7B480E30EBEFDC5893629C3AF5FA9C01C" where host="%";
flush privileges;
zj(4Obp1Z*
4.port 31001 start failed, please check
这个增加127.0.0.1
重新安装zk 和 consul
5.install rabbitmq-server failed.
每台机器执行以下代码
yum -y install epel-release
yum -y groupinstall "Development Tools"
yum -y install net-tools
6.1045 -Access denied for user'root'@'192.168.37.2'(using password :yes)
删除mysql多余的权限