错误和解决办法
错误一
[error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln401] Error happend on checking configurations. Can't exec "/usr/local/bin/master_ip_failover": Permission denied at /usr/local/share/perl5/MHA/ManagerUtil.pm line 68.
重新复制脚本进去,并加入虚拟ip设置
错误二
/usr/local/bin/master_ip_failover --command=status --ssh_user=root --orig_master_host=192.168.111.201 --orig_master_ip=192.168.111.201 --orig_master_port=3306
Bareword "FIXME_xxx" not allowed while "strict subs" in use at /usr/local/bin/master_ip_failover line 99.
Execution of /usr/local/bin/master_ip_failover aborted due to compilation errors
解决方法: 进入master_ip_failover 文件把99行的"FIXME_xxx"注释掉