码迷,mamicode.com
首页 > 其他好文 > 详细

keepalived实现高可用

时间:2019-04-11 19:22:40      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:高可用   emctl   信息   1.4   glob   ice   blog   file   return   

准备:

1、A-centos(192.168.6.177)  端口为9898的服务

2、B-ubuntu(192.168.6.182)  端口为9898的服务

3、keepalived安装包https://www.keepalived.org/software/keepalived-1.4.0.tar.gz

安装参考:https://blog.csdn.net/cuiyaoqiang/article/details/79412599

配置理解:https://blog.51cto.com/13055758/2071439?from=timeline

服务启动

service keepalived start

如果报错,参考

https://blog.csdn.net/zsg88/article/details/76690847

我遇到的错误和https://blog.csdn.net/zsg88/article/details/76690847不一样,但是可以参考

我发现报错信息中提示:

Unable to find configuration file /etc/keepalived/keepalived.conf (glob returned 3)

所有我执行了以下命令:

mkdir /etc/keepalived/

 cp  /usr/local/keepalived/etc/keepalived/keepalived.conf /etc/keepalived/keepalived.conf

 

systemctl start keepalived.service

systemctl status keepalived.service

然后keepalived服务就运行起来了

keepalived实现高可用

标签:高可用   emctl   信息   1.4   glob   ice   blog   file   return   

原文地址:https://www.cnblogs.com/andy9468/p/10691565.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!