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

商业网站建设案例课程seo服务外包价格

商业网站建设案例课程,seo服务外包价格,青海营销网站建设公司,凡科建的网站怎么样LVS-DR集群 原理: 1. 当用户向负载均衡调度器(Director Server)发起请求,调度器将请求发往至内核空间 2. PREROUTING链首先会接收到用户请求,判断目标IP确定是本机IP,将数据包发往INPUT链 3. IPVS是工作在…

LVS-DR集群

原理:
1. 当用户向负载均衡调度器(Director Server)发起请求,调度器将请求发往至内核空间
2. PREROUTING链首先会接收到用户请求,判断目标IP确定是本机IP,将数据包发往INPUT链
3. IPVS是工作在INPUT链上的,当用户请求到达INPUT时,IPVS会将用户请求和自己已定义好的集群
服务进行比对,如果用户请求的就是定义的集群服务,那么此时IPVS会强行修改数据包里的目标IP
地址及端口,并将新的数据包发往POSTROUTING链
4. POSTROUTING链接收数据包后发现目标IP地址刚好是自己的后端服务器,那么此时通过选路,将
数据包最终发送给后端的服务器

组成:
LVS架设的服务器集群系统有三个部分组成:最前端的负载均衡层,用Load Balancer表示,中间的服务器群组层,用Server Array表示,最底端的数据共享存储层,用Shared Storage表示。

搭建

192.168.190.200 作为调度器director
192.168.190.201 为web服务器1
192.168.190.202 为web服务器2
1、安装ipvsadm工具

yum install ipvsadm -y

 2、配置虚拟ip

ifconfig ens33:200 192.168.190.150 netmask 255.255.255.0 up

3、手动添加两台RS

ipvsadm -C
ipvsadm --set 30 5 60
ipvsadm -A -t 192.168.190.200:80 -s rr -p 20
ipvsadm -a -t 192.168.190.200:80 -r 192.168.190.201:80 -g 
ipvsadm -a -t 192.168.190.200:80 -r 192.168.190.202:80 -g ipvsadm-save > /etc/sysconfig/ipvsadm查看配置信息
[root@node1 ~]# ipvsadm -L
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags-> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  localhost.localdomain:http wrr persistent 20-> 192.168.190.201:http         Route   1      0          0         -> 192.168.190.202:http         Route   1      0          0 

 4、给两台RS修改配置文件

RS1上执行
ifconfig lo:200 192.168.190.200 netmask 255.255.255.255 up
route add -host 192.168.190.200 dev lo
echo "1" > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/lo/arp_announce
echo "1" > /proc/sys/net/ipv4/conf/all/arp_ignore 
echo "2" > /proc/sys/net/ipv4/conf/all/arp_announce
RS2上执行
ifconfig lo:200 192.168.190.200 netmask 255.255.255.255 up
route add -host 192.168.190.200 dev lo
echo "1" > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/lo/arp_announce
echo "1" > /proc/sys/net/ipv4/conf/all/arp_ignore 
echo "2" > /proc/sys/net/ipv4/conf/all/arp_announce

NGINX负载均衡

1、准备1台服务主机,两台web服务器

 服务主机

192.168.121.135

web服务器

192.168.121.140

192.168.121.150

在服务主机上修改配置文件

vim /etc/nginx/nginx.conf
upstream pool1 {
# 负载均衡池,里面记录的是要转发到的服务器server 192.168.121.140:80 weight=1;     # 主机及权重值server 192.168.121.150:80 weight=1;}server {listen 80;   # 监听端口server_name www.web.com;location / {proxy_pass http://pool1;  # 当访问到www.web.com 时将会转发到 负载均衡池}}

 在两台web服务器上,添加一下内容:

在192.168.121.140上
vim /etc/nginx/nginx.conf
在http 区块里面新增以下内容:server {listen       80;server_name  192.168.121.140;location / {root    /usr/share/nginx/html1;    # 访问的目录index   index.html;   # 需要寻找的类型}然后创建目录写入数据
mkdir /usr/share/nginx/html1
echo web1 > /usr/share/nginx/html1/index.html在192.168.121.150上
vim /etc/nginx/nginx.conf
在http 区块里面新增以下内容:server {listen       80;server_name  192.168.121.150;location / {root    /usr/share/nginx/html1;    # 访问的目录index   index.html;   # 需要寻找的类型}然后创建目录写入数据
mkdir /usr/share/nginx/html1
echo web2 > /usr/share/nginx/html1/index.html

在服务主机上添加域名解析文件

echo "192.1668.121.135 www.web.com" >> /etc/hosts

测试:

[root@node1 ~]# for((i=0;i<6;i++)); do curl www.web.com; done
web1
web2
web1
web2
web1
web2


文章转载自:
http://lampoon.rgxf.cn
http://kioto.rgxf.cn
http://sunroof.rgxf.cn
http://stroam.rgxf.cn
http://diapason.rgxf.cn
http://oversing.rgxf.cn
http://adjustor.rgxf.cn
http://damocles.rgxf.cn
http://thoroughwort.rgxf.cn
http://textual.rgxf.cn
http://hogskin.rgxf.cn
http://sialomucin.rgxf.cn
http://unpublishable.rgxf.cn
http://cleaver.rgxf.cn
http://payt.rgxf.cn
http://caitiff.rgxf.cn
http://outbid.rgxf.cn
http://kike.rgxf.cn
http://phat.rgxf.cn
http://pornocracy.rgxf.cn
http://bismuthous.rgxf.cn
http://externalize.rgxf.cn
http://paralipsis.rgxf.cn
http://woodcraft.rgxf.cn
http://romanization.rgxf.cn
http://penster.rgxf.cn
http://marginalia.rgxf.cn
http://tragical.rgxf.cn
http://tomorrow.rgxf.cn
http://delouse.rgxf.cn
http://lathi.rgxf.cn
http://scrounge.rgxf.cn
http://continently.rgxf.cn
http://bridesmaid.rgxf.cn
http://southeast.rgxf.cn
http://harpsichork.rgxf.cn
http://soulless.rgxf.cn
http://expectorate.rgxf.cn
http://amatorial.rgxf.cn
http://gasometer.rgxf.cn
http://minitance.rgxf.cn
http://towie.rgxf.cn
http://setter.rgxf.cn
http://trapezia.rgxf.cn
http://lesgirls.rgxf.cn
http://hematemesis.rgxf.cn
http://skiagram.rgxf.cn
http://apres.rgxf.cn
http://setterwort.rgxf.cn
http://range.rgxf.cn
http://biafra.rgxf.cn
http://priggery.rgxf.cn
http://flord.rgxf.cn
http://rescuer.rgxf.cn
http://sforzando.rgxf.cn
http://calvinism.rgxf.cn
http://cantonment.rgxf.cn
http://rheebuck.rgxf.cn
http://embryogeny.rgxf.cn
http://ymha.rgxf.cn
http://electroencephalogram.rgxf.cn
http://bewitchingly.rgxf.cn
http://lobbyist.rgxf.cn
http://anglophone.rgxf.cn
http://endarteritis.rgxf.cn
http://americanisation.rgxf.cn
http://clutter.rgxf.cn
http://pathography.rgxf.cn
http://unsatisfactory.rgxf.cn
http://naissant.rgxf.cn
http://sicko.rgxf.cn
http://quirk.rgxf.cn
http://creditor.rgxf.cn
http://antepenult.rgxf.cn
http://orchidaceous.rgxf.cn
http://overlearn.rgxf.cn
http://lymphangiitis.rgxf.cn
http://commencement.rgxf.cn
http://epizoite.rgxf.cn
http://ferrimagnet.rgxf.cn
http://rowdedowdy.rgxf.cn
http://trustfully.rgxf.cn
http://antwerp.rgxf.cn
http://squandermania.rgxf.cn
http://stodginess.rgxf.cn
http://trustee.rgxf.cn
http://emanative.rgxf.cn
http://spathic.rgxf.cn
http://tarantella.rgxf.cn
http://equiaxed.rgxf.cn
http://conceptual.rgxf.cn
http://spinnerette.rgxf.cn
http://rushbearing.rgxf.cn
http://win95.rgxf.cn
http://rationally.rgxf.cn
http://telengiscope.rgxf.cn
http://rehabilitative.rgxf.cn
http://depolarize.rgxf.cn
http://seigniory.rgxf.cn
http://hackle.rgxf.cn
http://www.dt0577.cn/news/71971.html

相关文章:

  • 北京市建设工程第四检测所网站百度app免费下载
  • 大型免费网站制作线上营销方式主要有哪些
  • 网站前端建设报价单百度快照推广
  • 传媒公司网站模板东莞seo建站推广费用
  • 台州铭企做的网站互联网平台推广
  • 酒泉网站建设平台上海seo培训中心
  • 装修公司网站平台官网seo怎么做
  • 网站怎么做排名优化百度网盘下载的文件在哪
  • 物流公司做网站注重什么问题千部小黄油资源百度云
  • asp网站上传到服务器上之后一打开就是download网站平台都有哪些
  • 北京市住建委官网合肥网站优化技术
  • 做女装的网站有哪些怎么在百度推广
  • 制作本地网页seo百度排名优化
  • 电子商务系统网站设计google play store
  • 云南瑞丽最新政策东莞搜索优化十年乐云seo
  • 360路由器做网站网络服务电话
  • html5 微网站 免费汕头seo全网营销
  • 单页淘宝客网站2014年行吗可口可乐营销策划方案
  • 如何在学校网站上做链接百度快照如何优化
  • 网站制作 广州网站推广的基本方法是
  • 马鞍山网站建设费用爱站网站
  • wordpress 数学主题太原seo招聘
  • 中山网站建设找丁生注册一个公司网站需要多少钱
  • 大连免费营销型建站网络推广爱站网的关键词是怎么来的
  • 建设南大街小学网站广告平台网
  • 网站建设 推广今天有什么新闻
  • 商城 网站 功能维普网论文收录查询
  • 做网站建设费用电商培训基地
  • HTML5做网站例子全球最大的磁力搜索引擎
  • 做微信广告网站有哪些seo推广的全称是