keepalived安装配置

keepalived安装配置

1.环境配置

如果/usr/src/kernels/下没有东西,先安装kernel-devel(yum install kernel-devel)

2.两台linux按安装keepalived

主节点:

keepalived安装配置 1_

备节点:

keepalived安装配置 2_

4.测试

keepalived安装配置 3_

5.多实例设置

keepalived安装配置 4_

6.日志设置(keepalived日志默认在/var/log/messages里面):

设置keepalived使其生成一个独立的日志文件:

[root@server05 log]# ll keepalived.log
-rw——-. 1 root root 34922 May 13 18:11 keepalived.log

未经允许不得转载:淘淘源码吧 » keepalived安装配置