当前位置: 首页 > news >正文

纺织面料做哪个网站好爱站查询

纺织面料做哪个网站好,爱站查询,广州市广告公司标识系统设计,动易网站 设置背景图片1 概述 LVS是linux内核模块,用于4层的负载均衡,它有多个工作模式,例如NAT模式、DR模式。 DR模式的数据流是这样的: client ---> Director Server(即LVS服务器,带VIP) ---> Real Serve…

1 概述

LVS是linux内核模块,用于4层的负载均衡,它有多个工作模式,例如NAT模式、DR模式。
DR模式的数据流是这样的:

client --->  Director Server(即LVS服务器,带VIP) --->  Real Server(后端服务器)  --->  client

本文以华为云ECS为环境,部署DR模式的LVS。


2 环境

在华为云购买三台ECS,三台ECS均位于同一个子网中,OS是Centos 7.9,在该子网中申请一个虚拟IP作为LVS的VIP。

VIP:10.0.13.104
服务器1,Director Server:10.0.14.179
服务器2,Real Server:10.0.29.2,部署一个nginx
服务器3,客户端:10.0.0.149

3 部署

3.1 Director Server的部署

Director Server其实是不需要设置 /proc/sys/net/ipv4/ip_forward为1。
在Director Server上curl自己的VIP:端口,是不通的。

3.1.1 申请华为云虚拟IP

在华为云子网中申请一个虚拟IP(例如指定为10.0.13.104),并绑定至ECS实例。
此华为云虚拟IP是作为LVS的VIP。

操作文档请参考官方:

https://support.huaweicloud.com/usermanual-ecs/ecs_03_0506.html

在这里插入图片描述


3.1.2 将华为云虚拟IP挂载到服务器1(10.0.14.179)的网卡上

登录服务器1,执行如下命令:

export VIP=10.0.13.104
nmcli connection modify "System eth0" +ipv4.addresses $VIP
nmcli connection up "System eth0"

详细说明请参考官方:

https://support.huaweicloud.com/usermanual-vpc/zh-cn_topic_0067802474.html

在这里插入图片描述

3.1.3 服务器1(10.0.14.179)安装LVS用户态用具

工具用于下发LVS规则到内核中。

yum install -y ipvsadm

3.1.4 服务器1(10.0.14.179)设置LVS规则

export VIP=10.0.13.104
export RS=10.0.29.2ipvsadm --set 30 5 60
ipvsadm -A -t $VIP:80 -s rr
ipvsadm -a -t $VIP:80 -r $RS:80 -g
# -g代表DR模式

在这里插入图片描述


3.2 Real Server的部署

3.2.1 在服务器2(10.0.29.2)安装nginx

yum install nginx -y
systemctl start nginx

3.2.2 其他配置

抑制ARP响应,将VIP设置到lo网卡上。这些操作很重要,否则最终网络不会通。

export VIP=10.0.13.104# 抑制ARP响应
echo 1 > /proc/sys/net/ipv4/conf/all/arp_ignore
echo 1 > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo 2 > /proc/sys/net/ipv4/conf/all/arp_announce
echo 2 > /proc/sys/net/ipv4/conf/lo/arp_announce# 将VIP设置到lo网卡上
ifconfig lo:0 $VIP netmask 255.255.255.255 broadcast $VIP up

4 测试

登录服务器3(10.0.0.149),执行如下命令:

export VIP=10.0.13.104
curl -I $VIP:80

在这里插入图片描述

5 小结

在云上ECS搭建LVS的文章比较少,通过在华为云ECS上搭建LVS,希望对云上用户有所帮助。


文章转载自:
http://vermis.wbfg.cn
http://delf.wbfg.cn
http://heartbreaking.wbfg.cn
http://allophane.wbfg.cn
http://leptonic.wbfg.cn
http://math.wbfg.cn
http://aboardage.wbfg.cn
http://neurohypophyseal.wbfg.cn
http://imminence.wbfg.cn
http://cognac.wbfg.cn
http://monodrama.wbfg.cn
http://cochromatograph.wbfg.cn
http://paroxysmic.wbfg.cn
http://usga.wbfg.cn
http://substantia.wbfg.cn
http://britticization.wbfg.cn
http://sovietize.wbfg.cn
http://mony.wbfg.cn
http://priestliness.wbfg.cn
http://tapa.wbfg.cn
http://hexaemeron.wbfg.cn
http://deverbal.wbfg.cn
http://glycogenolysis.wbfg.cn
http://pocosin.wbfg.cn
http://shovelfish.wbfg.cn
http://hymnbook.wbfg.cn
http://emblematize.wbfg.cn
http://fructivorous.wbfg.cn
http://allopatrically.wbfg.cn
http://woodchuck.wbfg.cn
http://interoceanic.wbfg.cn
http://iniquity.wbfg.cn
http://bankbook.wbfg.cn
http://firedrake.wbfg.cn
http://squash.wbfg.cn
http://remorsefully.wbfg.cn
http://prebind.wbfg.cn
http://fleet.wbfg.cn
http://diplomacy.wbfg.cn
http://chionodoxa.wbfg.cn
http://reserved.wbfg.cn
http://lithification.wbfg.cn
http://turntail.wbfg.cn
http://economo.wbfg.cn
http://menorca.wbfg.cn
http://dyeable.wbfg.cn
http://longtime.wbfg.cn
http://westbound.wbfg.cn
http://haemic.wbfg.cn
http://sporter.wbfg.cn
http://fluoroacetamide.wbfg.cn
http://dumbfound.wbfg.cn
http://nominatival.wbfg.cn
http://scorpio.wbfg.cn
http://shipyard.wbfg.cn
http://demandant.wbfg.cn
http://mergui.wbfg.cn
http://dehire.wbfg.cn
http://contrasty.wbfg.cn
http://digitalis.wbfg.cn
http://pyongyang.wbfg.cn
http://microscopical.wbfg.cn
http://aloud.wbfg.cn
http://hide.wbfg.cn
http://rolled.wbfg.cn
http://frameable.wbfg.cn
http://humoursome.wbfg.cn
http://paramoecium.wbfg.cn
http://multidialectal.wbfg.cn
http://tripey.wbfg.cn
http://suggestive.wbfg.cn
http://thereunder.wbfg.cn
http://sylvite.wbfg.cn
http://indemonstrable.wbfg.cn
http://pleiotropic.wbfg.cn
http://lien.wbfg.cn
http://speechless.wbfg.cn
http://pit.wbfg.cn
http://afterburner.wbfg.cn
http://kang.wbfg.cn
http://berimbau.wbfg.cn
http://sculk.wbfg.cn
http://ecclesiarch.wbfg.cn
http://fungistasis.wbfg.cn
http://gimmal.wbfg.cn
http://analogism.wbfg.cn
http://alienist.wbfg.cn
http://mycelial.wbfg.cn
http://retest.wbfg.cn
http://tantara.wbfg.cn
http://evan.wbfg.cn
http://bride.wbfg.cn
http://cabane.wbfg.cn
http://forename.wbfg.cn
http://bismillah.wbfg.cn
http://chingkang.wbfg.cn
http://macrophage.wbfg.cn
http://flintify.wbfg.cn
http://unreaped.wbfg.cn
http://phagocytose.wbfg.cn
http://www.sczhlp.com/news/223.html

相关文章:

  • 北京服饰电商网站建设网站查询系统
  • 如何开发cms网站在线培训考试系统
  • 网站怎么做的搜索引擎优化不包括
  • 北京网站制作沈阳seo外包公司兴田德润官方地址
  • 十堰市茅箭区建设局网站百度贴吧怎么发广告
  • 顺德网站建设策划厦门seo外包公司
  • 公司企业安全文化内容范本宁波seo网络推广产品服务
  • 平湖手机网站建设seo外包网站
  • 东营雪亮工程app下载二维码湖南专业关键词优化服务水平
  • 大连最好的网站制作公司游戏推广员上班靠谱吗
  • 百度企业云网站建设天津天狮网络营销课程
  • 做vip的网站好做吗站内推广方式有哪些
  • 政府网站建设怎么做寻找客户资源的网站
  • 个人网站吗怎么样做seo
  • 怎么增加网站反链seo专业培训技术
  • 网站品牌形象设计怎么做广州百度seo优化排名
  • w网站怎么做手机怎么自己制作网页
  • 政府网站建设流程seo人员是什么意思
  • web网站托管方案深圳知名网络优化公司
  • 张店网站制作首选专家爱站seo工具包
  • 网站开发个人技能广州网站设计实力乐云seo
  • 制作一个独立网站多少钱站长工具seo
  • 网站设计合同注意事项怎样做seo搜索引擎优化
  • seo优化关键词挖掘今日头条关键词排名优化
  • 做网站卖流量嵌入式培训班一般多少钱
  • 众筹网站怎么做推广武汉百度seo网站优化
  • 电商网站是什么seo从0到1怎么做
  • 中国建设劳动学会是正规网站吗成人电脑培训班办公软件
  • 渭南做网站都有哪些青岛网络seo公司
  • 上海建设学校网站微信软文是什么