LVS集群有3种模式这里是LVS-NAT模式
1.环境准备
1.1机器规划
主机名 |
内网ip |
外网IP |
角色 |
cjq14 |
192.168.2.14 |
192.168.10.14 |
Lvs |
cjq15 |
192.168.2.15 |
httpd |
|
cjq16 |
192.168.2.16 |
httpd |
1.2.关闭防火墙和selinux(所有服务器)
[root@cjq14 ~]# systemctl stop firewalld
[root@cjq14 ~]# systemctl disable firewalld
[root@cjq14 ~]# setenforce 0
[root@cjq14 ~]# sed -i '/SELINUX/s/enforcing/disabled/' /etc/