1,配置百胜源
root@mgr1 ~ #猫/etc/yum.repos.d/signal18.repo (signal18) name=Signal18存储库 baseurl=http://repo.signal18.io/centos/releasever/basearch/美元 gpgcheck=0 启用=1
2,百胜安装过程
root@mgr1 ~ # yum安装replication-manager-osc 加载插件:fastestmirror 从缓存hostfile加载镜像速度 *基础:mirror.dal.nexril.net * epel: mirrors.yun-idc.com *附加:mirrors.huaweicloud.com *更新:mirrors.tuna.tsinghua.edu.cn | 833 B就是github_orchestrator/x86_64/签名 github_orchestrator | 1.0 kB/x86_64/签名就是! ! ! | 819 B就是github_orchestrator-source/签名 github_orchestrator-source/签名| 951 B就是! ! ! signal18 | 2.9 kB就是 signal18/7/x86_64/primary_db | 5.8 kB 00:00:01 解决依赖关系 ——比;运行的事务检查 ——比;包replication-manager-osc。x86_64 1560253855:2.0.1_28_gf072-1将被安装 ——比;完成依赖分辨率 依赖性解析=================================================================================================================================================================================================包拱版本库的大?================================================================================================================================================================================================安装: replication-manager-osc x86_64 1560253855:2.0.1_28_gf072-1 signal18 26米 交易汇总=================================================================================================================================================================================================安装1包 总下载大小:26米 安装尺寸:192米 这是好[y/d/N]: y 下载包: 复制-经理- osc - 2.0.1_28_gf072 - 1. - x86_64。rpm | 26 MB 00:22:57 运行的事务检查 运行事务测试 交易测试成功 运行的事务 安装:1560253855:replication-manager-osc-2.0.1_28_gf072-1。x86_64 1/1 验证:1560253855:replication-manager-osc-2.0.1_28_gf072-1。x86_64 1/1 安装: replication-manager-osc。x86_64 1560253855:2.0.1_28_gf072-1 完成了!
3,配置文件修改
[root@mgr1 ~] #找到/- name * .toml/etc/replication-manager/cluster.d/cluster01.toml/etc/replication-manager/cluster.d/cluster02.toml (root@mgr1 ~) # vim/etc/replication-manager/cluster.d/cluster01.toml (root@mgr1 ~) # mkdir - p/数据/replication-manager (root@mgr1 ~) # mkdir - p/数据/share_replication-manager # vim/etc/replication-manager/config.toml root@mgr1 ~ #猫/etc/replication-manager/config.toml root@mgr1 ~ (Cluster01) title=癈luster01” db-servers-hosts=" 192.168.56.14:3306、192.168.56.15:3306 192.168.56.16:3306” db-servers-prefered-master=" 192.168.56.15:3306 " db-servers-credential="协调器:123456 " db-servers-connect-timeout=1 replication-credential="协调器:123456 " failover-mode="自动" (默认) monitoring-datadir="/数据/replication-manager " monitoring-sharedir="/数据/share_replication-manager " 进行日志级别=1 日志文件="/var/log/replication-manager.log” replication-multi-master=false replication-multi-tier-slave=false failover-readonly-state=true http服务器=true http-bind-address=" 0.0.0.0 " http端口=" 10001 "
4,启动
root@mgr1 ~ #/etc/init.d/replication-manager重启 重新启动replication-manager(通过systemctl)(好): null null null null null null null null null null null null null null null null null null null null null null null null null null null null null nullreplication-manager MySQL哈安装测试笔记