LVS负载均衡实战部署(NAT模式)


)

一、部署所需要配置的服务器

主机名称 操作系统 IP地址 安装包
负载调度器 CentOS7.6 内网:192.168.40.80、外网:12.0.0.1 ipvsadm
NFS服务器 CentOS7.6 192.168.40.50 rpcbind、nfs-utils
node1 CentOS7.6 192.168.40.60 rpcbind、nfs-utils、httpd
node2 CentOS7.6 192.168.40.61 rpcbind、nfs-utils、httpd
客户端 CentOS7.6 12.0.0.15 /
客户端 Windows10 12.0.0.66 /

在这里插入图片描述

二、LVS负载均衡NAT模式

1.部署NFS服务器


systemctl stop firewalld.service
systemctl disable firewalld.service
setenforce 0

yum install nfs-utils rpcbind -y
systemctl start rpcbind.service
systemctl start nfs.service
systemctl enable nfs.service
systemctl enable rpcbind.service

mkdir /opt/rain /opt/drop
chmod 777 /opt/rain /opt/drop

vim /etc/exports
/usr/share *(ro,sync)
/opt/rain 192.168.40.0/24(rw,sync)
/opt/hua 192.168.40.0/24(rw,sync)

---发布共享---
exportfs -rv
echo 'this is rain55555 web!' > /opt/rain/index.html
echo 'this is drop56666 web!' 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值