keepalived的配置
来源:互联网 发布:wap商城源码 编辑:程序博客网 时间:2024/06/08 14:21
安装完keepadlived以后,配置keepalived.conf
MASTER:
vim /etc/keepalived/keepalived.conf! Configuration File for keepalived global_defs { notification_email { 49000448@qq.com } notification_email_from Alexandre.Cassen@firewall.loc smtp_server 127.0.0.1 smtp_connect_timeout 30 router_id LVS_3 //BACKUP:router_id LVS_1}vrrp_instance VI_1 { ##代表一个模块儿,可以有多个 state MASTER //BACKUP:BACKUP interface eno16777736 ##添加VIP的网卡 virtual_router_id 51 ##指定VRRP实例ID,范围是0-255 priority 150 //BACKUP:100 advert_int 1 authentication { auth_type PASS ##密码类型:明文 auth_pass 1111 ##密码是1111 } virtual_ipaddress { ##VIP地址 192.168.202.29/24 }}virtual_server 192.168.202.29 80 { ##VIP地址 delay_loop 6 lb_algo wrr ##算法 lb_kind DR ##模式 nat_mask 255.255.255.0 ##子网掩码 persistence_timeout 50 protocol TCP real_server 192.168.202.103 80 { weight 1 TCP_CHECK { connect_timeout 8 nb_get_retry 3 delay_before_retry 3 connect_port 80 } } real_server 192.168.202.104 80 { weight 1 TCP_CHECK { connect_timeout 8 nb_get_retry 3 delay_before_retry 3 connect_port 80 } }}
阅读全文
0 0
- keepalived+lvs的配置
- keepalived+nginx的配置
- keepalived的配置
- 配置keepalived的日志文件
- Keepalived 的安装和配置
- Keepalived 的安装和配置
- Keepalived的安装和配置
- Keepalived 的安装和配置
- keepalived配置
- keepalived配置
- keepalived配置
- keepalived配置
- keepalived配置
- keepalived配置
- keepalived配置
- keepalived配置
- 配置keepalived
- Keepalived&Haproxy的简单安装配置
- (substr strstr 的学习) EOJ Monthly 2017.12 (暨 ECNU 12 月内部选拔) G1. 唐纳德与子串 (Easy)
- 欢迎使用CSDN-markdown编辑器
- 设计模式的艺术之道--模板方法模式
- HRBUST 1444 逃脱 (哈理工第七届程序设计大赛(高年级组) G 逃脱)
- ZSTUOJ 4360:科学计数法
- keepalived的配置
- 图像处理的几种方法
- (六)PyQuery库
- 随机生成10个1--20之间的随机数,要求不能重复。(for循环解题)
- [生而为人-思考] Knowledge Cooking -7th 分享会记录
- leetcode 450. Delete Node in a BST 二叉搜索树BST删除结点
- <canvas>标签
- java排序算法
- 学Python(2)—递归