Keepalive实现mysql双主热备.docx

  1. 1、本文档共20页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Keepalive实现mysql双主热备

Keepalive实现mysql双主热备环境描述:OS: CentoOS6.6_X64Node1:Node2:VIP:0配置主机互信Node1:[root@node1 ~]# ifconfig eth0eth0 Link encap:Ethernet HWaddr 00:0C:29:11:21:56 inet addr: Bcast:55 Mask: inet6 addr: fe80::20c:29ff:fe11:2156/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:144 errors:0 dropped:0 overruns:0 frame:0 TX packets:114 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14467 (14.1 KiB) TX bytes:11961 (11.6 KiB)[root@node1 ~]# ntpdate 025 Jul 11:34:52 ntpdate[2123]: step time server 0 offset -28852.934223 sec[root@node1 ~]# crontab -e15 5 * * * /usr/bin/crontab 0 [root@node1 ~]# hostname node1.S[root@node1 ~]# hostname node1.S[root@node1 ~]# vim /etc/sysconfig/networkNETWORKING=yesHOSTNAME=node1.S[root@node1 ~]# uname -nnode1.S[root@node1 ~]# vim /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 node1.S node1 node2.S node2[root@node1 ~]# ssh-keygen -t rsa -f ~/.ssh/id_rsa -P Generating public/private rsa key pair.Created directory /root/.ssh.Your identification has been saved in /root/.ssh/id_rsa.Your public key has been saved in /root/.ssh/id_rsa.pub.The key fingerprint is:4c:9e:47:8a:a1:ee:d3:64:d5:e0:ab:21:fd:e6:43:19 root@node1.SThe keys randomart image is:+--[ RSA 2048]----+| || . || ...o. || . *E+. ||....S+. || .. = +. || .= = || .. o + || .. o.. |+-----------------+[root@node1 ~]# ssh-copy-id -i .ssh/id_rsa.pub root@The authenticity of host () cant be established.RSA key fingerprint is cc:c3:c7:45:9e:40:60:dd:03:13:b3:37:9a:ff:0e:8a.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added (RSA) to the list of known hosts.root@s password: Now try logging into the machine, with ssh root@, and check in: .ssh/authorized_keysto make sure we havent added extra keys that you were

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档