摘要: 引用自:https://my.oschina.net/jccpp/blog/124941 阅读全文
posted @ 2022-03-01 17:25 Presley 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 引用自:https://www.jianshu.com/p/767ba652b6e2 阅读全文
posted @ 2022-03-01 17:24 Presley 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 一、dhcp总结 1、dhcpd: /etc/dhcp/dhcpd.conf option routers GW; option domain-name-servers IP,IP,IP;#可以定义三个DNSIP default-lease-time max-lease-time subnet NE 阅读全文
posted @ 2021-03-10 17:31 Presley 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 一、DHCP: 1、把一个主机接入TCP/IP网络,要为其配置哪些网络参数: a、相应参数 IP/mask Gateway DNS Server Wins Server,NTP Server b、参数配置方式: 静态指定 动态分配: bootp:boot protocol 引导协议,后来才发展为dh 阅读全文
posted @ 2021-03-09 13:19 Presley 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 一、回顾 1、keepalived:HA Cluster a、vrrp:vrrp_instance 虚拟路由器:物理路由器; VRID:Virutal Router ID; Master/Backup 一主一备或一主多备; priority 抢占模式/非抢占模式 b、ipvs wrapper:通过i 阅读全文
posted @ 2021-02-19 11:22 Presley 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 一、通知脚本的使用方式 1、示例脚本的使用方式 a、脚本内容 #!/bin/bash # contact='root@localhost' notify(){ local mailsubject="$(hostname) to be $1,vip floating" local mailbody=" 阅读全文
posted @ 2021-02-18 09:23 Presley 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 一、keepalived: 1、vrrp协议的软件实现,原生设计的目的为了高可用ipvs服务: a、基于vrrp协议完成地址流动 b、为vip地址所在的节点生成ipvs规则(在配置文件中预先定义); c、为ipvs集群的各RS做健康状态检测; d、基于脚本调用接口通过执行脚本完成脚本中定义的功能,进 阅读全文
posted @ 2020-12-23 20:04 Presley 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 一、高可用方案 1、业内常用的方案 a、keepalived b、hearbeat(几乎已经废弃) c、corosync:通用的,专业的高可用集群解决方案。 2、通信层面 a、消息层(messaging layer)也叫心跳层(heartbeat layer)也叫基础设施层(infrastructu 阅读全文
posted @ 2020-12-16 20:51 Presley 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 一、相应模块 1、ngx_stream_core_module a、查看此模块 [root@www ~]# rpm -qa|grep nginx nginx-mod-stream-1.16.1-3.el7.x86_64 nginx-filesystem-1.16.1-3.el7.noarch ngi 阅读全文
posted @ 2020-12-15 20:10 Presley 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 一、回顾 1、nginx模块 a、http反代模块:ngx_http_proxy_module proxy_pass b、fastcgi反对模块:ngx_http_fastcgi_module fastcgi_pass c、上述两个模块都可以使用缓存,对应的缓存逻辑为: (1)、定义缓存 proxy 阅读全文
posted @ 2020-12-10 20:21 Presley 阅读(440) 评论(0) 推荐(0) 编辑