ubuntu下配置nginx+keepalived做HA(续)

作者注:继上篇中没有测试,由于初涉及相关技术,下面测试中的问题记录一下,主要将通过/var/log/messages中的日志来。

问题1:Sep 18 22:20:23 ubuntu Keepalived_vrrp: IPVS: Can't initialize ipvs: Permission denied (you must be root)
解决办法:直接su至root用户,启动keepalived,可快速解决问题。

问题2:Sep 19 02:57:51 ubuntu Keepalived_healthcheckers: IPVS: Can't initialize ipvs: Protocol not available
解决办法:由于没有安装或没有启用ipvs功能,本人系统中没有启用ipvs。

测试结果(部分日志):
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Using MII-BMSR NIC polling thread...
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Registering Kernel netlink reflector
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Registering Kernel netlink command channel
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Registering gratutious ARP shared channel
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Opening file '/etc/keepalived/keepalived.conf'.
Sep 19 04:01:55 ubuntu Keepalived_vrrp: Configuration is using : 37980 Bytes
Sep 19 04:01:55 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE
Sep 19 04:02:05 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Transition to MASTER STATE
Sep 19 04:02:08 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Entering MASTER STATE
Sep 19 04:02:08 ubuntu Keepalived_vrrp: Netlink: skipping nl_cmd msg...
Sep 19 04:03:13 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Received higher prio advert
Sep 19 04:03:13 ubuntu Keepalived_vrrp: VRRP_Instance(VI_1) Entering BACKUP STATE

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值