MHA+非root用户SSH等效性配置

环境:CentOS5.8

             MySQL5.5.17

实验:搭建MHA高可用架构(非root用户SSH等效性配置)SSH等效性用户配置的是:concert  端口:1314

MHA配置文件

[concert@mhamanager mha]$ more /etc/masterha_default.cnf
[server default]
user          = root
password      = mysql_admin
ssh_user      = concert
ssh_port      = 1314
repl_user     = repl
repl_password = repl_pwd
ping_interval = 3
ping_type     = select

 

[concert@mhamanager mha]$ more /etc/appl.cnf
[server default]
manager_workdir    = /mha/appl
manager_log        = /mha/appl/manager.log
remote_workdir     = /mha/appl

[server1]
hostname           = 192.168.66.88
master_binlog_dir  = /data/lib/mysql
candidate_master   = 1

[server2]
hostname           = 192.168.66.89
master_binlog_dir  = /data/lib/mysql
candidate_master   = 1

[server3]
hostname           = 192.168.66.120
no_master          = 1
port               = 3307

 

问题:配置好非root用户SSH等效性后,通过masterha_check_ssh检查没有问题

[concert@mhamanager ~]$ /usr/bin/masterha_check_ssh --conf=/etc/appl.cnf 
Tue Sep  2 15:06:01 2014 - [info] Reading default configuratoins from /etc/masterha_default.cnf..
Tue Sep  2 15:06:01 2014 - [info] Reading application default configurations from /etc/appl.cnf..
Tue Sep  2 15:06:01 2014 - [info] Reading server configurations from /etc/appl.cnf..
Tue Sep  2 15:06:01 2014 - [info] Starting SSH connection tests..
Tue Sep  2 15:06:01 2014 - [debug] 
Tue Sep  2 15:06:01 2014 - [debug]  Connecting via SSH from concert@192.168.66.88(192.168.66.88:1314) to concert@192.168.66.89(192.168.66.89:1314)..
Tue Sep  2 15:06:01 2014 - [debug]   ok.
Tue Sep  2 15:06:01 2014 - [debug]  Connecting via SSH from concert@192.168.66.88(192.168.66.88:1314) to concert@192.168.66.120(192.168.66.120:1314)..
Tue Sep  2 15:06:01 2014 - [debug]   ok.
Tue Sep  2 15:06:02 2014 - [debug] 
Tue Sep  2 15:06:01 2014 - [debug]  Connecting via SSH from concert@192.168.66.89(192.168.66.89:1314) to concert@192.168.66.88(192.168.66.88:1314)..
Tue Sep  2 15:06:01 2014 - [debug]   ok.
Tue Sep  2 15:06:01 2014 - [debug]  Connecting via SSH from concert

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值