一、项目架构图
二、项目环境
准备七台linux虚拟机(centos7)
zabbxi(安装zabbix、pssh)
LB-1和LB-2(安装nginx、keeplived)
master、slave1、slave2(安装nginx、nfs、zabbix-agent)
三、项目步骤
1、关闭所有虚拟机的防火墙和selinux
service firewalld stop
systemctl disable firewalld
setenforce 0
sed -i '/^SELINUX=/ s/enforcing/disabled/' /etc/sysconfig/selinux
2、再zabbix上安装pssh
yum install epel-release -y
yum install pssh -y
3、在所有虚拟机之间配置ssh免密通道
生成公钥和私钥(除了client,其他六台都要生成)
[root@192 ~]# ssh-keygen -t ecdsa
Generating public/private ecdsa key pair.
Enter file in which to save the key (/root/.ssh/id_ecdsa):
Created directory '/root/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_ecdsa.
Your public key has been saved in /root/.ssh/id_ecdsa.pub.
The key fingerprint is:
SHA256:235mqpYsgoo6YZa8LorJTVpBePE9WocUBjuW69j+GN0 root@192.168.88.147
The key's randomart image is:
+---[ECDSA 256]---+
| . ..+. |
| . o * . |
| . o * = . |
| o . = o |
|. .. o S |
|.= = . .o |
|o..= + o.E. |
|*o* o + +. + |
|%* . +.+..o= |
+----[SHA256]-----+
[root@192 ~]# cd /root/.ssh
[root@192 .ssh]# ls
id_ecdsa id_ecdsa.pub
上传公钥(除了clinet其他,六台都要上传)