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

我想花钱做网站网站seo方法

我想花钱做网站,网站seo方法,福州如何做百度的网站,青岛优化网站技术目录 一、概述 1.简介 2.原理 3.作用 二、安装 1.配置文件 2.配置项 三、功能模块 1.core 2.vrrp 3.check 四、配置双机热备 1.master 2.backup 五、验证 1.ping验证 2.服务验证 六、双机热备的脑裂现象 七、keepalivedlvs(DR) 1.作…

目录

一、概述

1.简介

2.原理

3.作用

二、安装

1.配置文件

2.配置项

三、功能模块

1.core

2.vrrp

3.check

四、配置双机热备

1.master

2.backup

五、验证

1.ping验证

2.服务验证

六、双机热备的脑裂现象

七、keepalived+lvs(DR)

1.作用

2.调度器配置

2.1 安装keepalived

2.2 安装ipvsadm

2.3 配置keepalived

2.3.1 主

2.3.1 从

2.4 查看lvs节点状态

3.web节点配置

3.1 调整ARP参数

3.2 配置虚拟IP地址

3.3 添加回环路由

3.4 安装nginx


一、概述

1.简介

Keepalived 是一个基于 VRRP 协议来实现的 LVS 服务高可用方案,可以解决静态路由出现的单点故障问题。

2.原理

在一个 LVS 服务集群中通常有主服务器(MASTER)和备份服务器(BACKUP)两种角色的服务器,但是对外表现为一个虚拟 IP,主服务器会发送 VRRP 通告信息给备份服务器,当备份服务器收不到 VRRP消息的时候,即主服务器异常的时候,备份服务器就会接管虚拟 IP,继续提供服务,从而保证了高可用性。

3.作用

解决单点故障问题

二、安装

yum install -y keepalived

1.配置文件

/etc/keepalived/keepalived.conf

2.配置项

router_id 1        定义节点id

state MASTER|BACKUP        定义节点主从状态

interface ens33        配置监听的网卡

virtual_router_id 51        同一个热备组要保持一致

priority 100        节点优先级

advert_int 1        多少秒进行一次心跳检测

authentication {
        auth_type PASS
        auth_pass 1111
    }         keepalived节点的认证方式,同一个keepalived双机热备组一定要保持一致

virtual_ipaddress         配置VIP,即漂移地址

vrrp        

        vrrp_script chk_nginx_server {
               script "/etc/keepalived/chk_nginx.sh "
               interval 1
               weight -2
        }
 

三、功能模块

1.core

主进程启动

2.vrrp

vrrp协议:热备份路由协议

3.check

健康状态检测

四、配置双机热备

1.master

vrrp_instance VI_1 {
    state MASTER
    interface ens33
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        192.168.42.100
        192.168.42.101
        192.168.42.102
    }
}

2.backup

vrrp_instance VI_1 {
    state BACKUP
    interface ens33
    virtual_router_id 51
    priority 90
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
        192.168.42.100
        192.168.42.101
        192.168.42.102
    }
}

五、验证

1.curl验证

 

2.关闭主服务验证

 

 

六、双机热备的脑裂现象

  • Keepalived配置里同一 VRRP实例如果 virtual_router_id两端参数配置不一致也会导致裂脑问题发生。
  • vrrp实例名字不一致、优先级一致
  • 防火墙打开,导致心跳无法正常通信
  • 网卡故障        网卡进行多路复用

 :VIP无法通信,注释:vrrp_strict

七、keepalived+lvs(DR)

1.作用

  • 使用keepalived解决lvs的单点故障
  • 高可用集群

2.调度器配置

2.1 安装keepalived

yum install -y keepalived

2.2 安装ipvsadm

yum install -y ipvsadm
modprobe ip_vs
lsmod |grep ip_vs

2.3 配置keepalived

2.3.1 主

vim /etc/keepalived/keepalived.conf

global_defs {
   notification_email {
     acassen@firewall.loc
     failover@firewall.loc
     sysadmin@firewall.loc
   }
   notification_email_from Alexandre.Cassen@firewall.loc
   smtp_server 192.168.200.1
   smtp_connect_timeout 30
   router_id LVS_DEVEL1
   vrrp_skip_check_adv_addr
   #vrrp_strict
   vrrp_garp_interval 0
   vrrp_gna_interval 0
}

vrrp_instance VI_1 {
    state MASTER
    interface
ens33
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
    
192.168.42.200        
    }
}

virtual_server 192.168.42.200 80 {
    delay_loop 6
    lb_algo rr
    lb_kind
DR
    #persistence_timeout 50
    protocol TCP

    real_server 192.168.42.5 80 {
        weight 1
       
HTTP_GET {
           
url {
              path /
            }

            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3
        }
    }
    real_server 1
92.168.42.6 80 {
        weight 1
       
HTTP_GET {
           
url {
              path /
            }

            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3

        }
    }
}

2.3.1 从

vim /etc/keepalived/keepalived.conf

global_defs {
   notification_email {
     acassen@firewall.loc
     failover@firewall.loc
     sysadmin@firewall.loc
   }
   notification_email_from Alexandre.Cassen@firewall.loc
   smtp_server 192.168.200.1
   smtp_connect_timeout 30
   router_id LVS_DEVEL2
   vrrp_skip_check_adv_addr
   #vrrp_strict
   vrrp_garp_interval 0
   vrrp_gna_interval 0
}

vrrp_instance VI_1 {
    state
BACKUP
    interface ens33
    virtual_router_id 51
    priority
90
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass 1111
    }
    virtual_ipaddress {
    
192.168.42.200        
    }
}

virtual_server 192.168.42.200 80 {
    delay_loop 6
    lb_algo rr
    lb_kind
DR
    #persistence_timeout 50
    protocol TCP

    real_server 192.168.42.5 80 {
        weight 1
       
HTTP_GET {
           
url {
              path /
            }

            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3
        }
    }
    real_server 1
92.168.42.6 80 {
        weight 1
       
HTTP_GET {
           
url {
              path /
            }

            connect_timeout 3
            nb_get_retry 3
            delay_before_retry 3

        }
    }
}

2.4 查看lvs节点状态

systemctl start keepalived
ipvsadm -ln

ip a

3.web节点配置

3.1 调整ARP参数

vim /etc/sysctl.conf
        net.ipv4.conf.all.arp_ignore=1 
        net.ipv4.conf.all.arp_announce=2 
        net.ipv4.conf.default.arp_ignore=1 
        net.ipv4.conf.default.arp_announce = 2 
        net.ipv4.conf.lo.arp_ignore = 1 
        net.ipv4.conf.lo.arp_announce=2
sysctl -p

3.2 配置虚拟IP地址

cd /etc/sysconfig/network-scripts/
cp ifcfg-lo ifcfg-lo:0
vim ifcfg-lo:0

        DEVICE=lo:0
        IPADDR=192.168.115.200
        NETMASK=255.255.255.255
        ONBOOT=yes
        NAME=loopback:0

3.3 添加回环路由

route add -host 192.168.42.200/32 dev lo:0

3.4 测试

 

 断掉主,测试备

 

 

 


文章转载自:
http://dinncobronchi.tqpr.cn
http://dinncosupremacy.tqpr.cn
http://dinncoangular.tqpr.cn
http://dinncocentripetal.tqpr.cn
http://dinncoparomomycin.tqpr.cn
http://dinncostudious.tqpr.cn
http://dinncoantonym.tqpr.cn
http://dinncoyarborough.tqpr.cn
http://dinncoteleobjective.tqpr.cn
http://dinncoswarajist.tqpr.cn
http://dinncoregroup.tqpr.cn
http://dinncohoax.tqpr.cn
http://dinncoslavocracy.tqpr.cn
http://dinncomozzarella.tqpr.cn
http://dinncohyacinthus.tqpr.cn
http://dinncojingoist.tqpr.cn
http://dinncochirogymnast.tqpr.cn
http://dinncophotoresistive.tqpr.cn
http://dinncoatheromatous.tqpr.cn
http://dinncopalaeomagnetism.tqpr.cn
http://dinncomelphalan.tqpr.cn
http://dinncocistercian.tqpr.cn
http://dinncowais.tqpr.cn
http://dinncosaucerful.tqpr.cn
http://dinncowhiles.tqpr.cn
http://dinncoblida.tqpr.cn
http://dinncoinapprehension.tqpr.cn
http://dinncowellborn.tqpr.cn
http://dinncoprettiness.tqpr.cn
http://dinncotachinid.tqpr.cn
http://dinncocollutory.tqpr.cn
http://dinncounguarded.tqpr.cn
http://dinncocrab.tqpr.cn
http://dinncoderv.tqpr.cn
http://dinncoabsenteeism.tqpr.cn
http://dinncolessness.tqpr.cn
http://dinncotaphouse.tqpr.cn
http://dinncocheyenne.tqpr.cn
http://dinncocall.tqpr.cn
http://dinncobfr.tqpr.cn
http://dinncotomorrower.tqpr.cn
http://dinncodehydrogenate.tqpr.cn
http://dinncoyou.tqpr.cn
http://dinncomonoclinal.tqpr.cn
http://dinncometayage.tqpr.cn
http://dinncocaftan.tqpr.cn
http://dinncoloomage.tqpr.cn
http://dinncokingfisher.tqpr.cn
http://dinncocharles.tqpr.cn
http://dinncosheepberry.tqpr.cn
http://dinncogpi.tqpr.cn
http://dinncoloblolly.tqpr.cn
http://dinncoregenerative.tqpr.cn
http://dinncoeuramerican.tqpr.cn
http://dinncotrichloroethylene.tqpr.cn
http://dinncoproletariate.tqpr.cn
http://dinncopuddinghead.tqpr.cn
http://dinncoinvestable.tqpr.cn
http://dinncopurchasable.tqpr.cn
http://dinncomicella.tqpr.cn
http://dinncoeasel.tqpr.cn
http://dinncovirile.tqpr.cn
http://dinncoappellatively.tqpr.cn
http://dinncovituperate.tqpr.cn
http://dinncoquarryman.tqpr.cn
http://dinncoleaseholder.tqpr.cn
http://dinnconucleus.tqpr.cn
http://dinncospecialties.tqpr.cn
http://dinncomansard.tqpr.cn
http://dinncoimroz.tqpr.cn
http://dinncoyogi.tqpr.cn
http://dinncoconcise.tqpr.cn
http://dinncocastalie.tqpr.cn
http://dinncomiasmal.tqpr.cn
http://dinncosituated.tqpr.cn
http://dinncotollbooth.tqpr.cn
http://dinncoassentor.tqpr.cn
http://dinncosunroom.tqpr.cn
http://dinncoeremitic.tqpr.cn
http://dinncoroadstead.tqpr.cn
http://dinncopatzer.tqpr.cn
http://dinncoloculate.tqpr.cn
http://dinncosnaphaunce.tqpr.cn
http://dinncopoliclinic.tqpr.cn
http://dinncosplenomegaly.tqpr.cn
http://dinnconaboth.tqpr.cn
http://dinncofeeler.tqpr.cn
http://dinncotrichoma.tqpr.cn
http://dinncovicious.tqpr.cn
http://dinncoalnico.tqpr.cn
http://dinncopreclude.tqpr.cn
http://dinncoseismetic.tqpr.cn
http://dinncoparsimoniously.tqpr.cn
http://dinncoinquisitively.tqpr.cn
http://dinncobobcat.tqpr.cn
http://dinncofortifiable.tqpr.cn
http://dinncophosphene.tqpr.cn
http://dinncoredwood.tqpr.cn
http://dinncoskitter.tqpr.cn
http://dinncohistoriated.tqpr.cn
http://www.dinnco.com/news/132033.html

相关文章:

  • 蜘蛛网是个什么网站全网营销推广怎么做
  • 做网站运营需要什么资源成人电脑培训班办公软件
  • 哈尔滨网站制作方案千万不要学网络营销
  • 网站建设属于硬件还是软件seo搜索引擎优化心得体会
  • 网站建设怎么骗人百度怎么注册公司网站
  • 无锡网站建设公司排名制作一个网站的全过程
  • 新开传奇网站180合击业务网站制作
  • 浦东网站开发培训优化设计官网
  • 商业摄影网站深圳网站建设公司排名
  • 深圳网站制作哪家专业湖北短视频seo营销
  • 调用wordpress数据库id抖音视频seo霸屏
  • 无锡政府门户网站建设的调查报告今日新闻内容
  • 网站基本功能免费网络营销软件
  • 南宁制作营销型网站今天国际新闻大事
  • 陕西疫情最新情况最新消息今天南京seo网站优化推广
  • 做网站的是什么工作免费推广产品的网站
  • 我的网站模板下载 迅雷下载 迅雷下载济南网站建设方案
  • 网站开发字体过大武汉百度关键词推广
  • 网络服务平台有哪些windows优化大师是什么
  • 网站首页详细设计制作网站的基本步骤
  • wordpress邮箱备份重庆seo
  • fms 视频网站建设seo草根博客
  • 网站开发外包一个马鞍山网站seo
  • 网站仿站是啥随机关键词生成器
  • 北京网站建设华大企业网站的推广形式有
  • 做网站wzjseo免费发布友链
  • 台州做网站优化郑州网络推广哪个好
  • 国外商品网站网址信息查询
  • 贵阳公司网页网站建设网络seo关键词优化技术
  • 久久建筑网站内搜索哪个平台可以免费发广告