MySQL数据库实现远程同步的工具alibaba otter
发表于:2026-10-31 作者:千家信息网编辑
千家信息网最后更新 2026年10月31日,本篇文章给大家主要讲的是关于MySQL数据库实现远程同步的工具alibaba otter的内容,感兴趣的话就一起来看看这篇文章吧,相信看完MySQL数据库实现远程同步的工具alibaba otter对
千家信息网最后更新 2026年10月31日MySQL数据库实现远程同步的工具alibaba otter
本篇文章给大家主要讲的是关于MySQL数据库实现远程同步的工具alibaba otter的内容,感兴趣的话就一起来看看这篇文章吧,相信看完MySQL数据库实现远程同步的工具alibaba otter对大家多少有点参考价值吧。
[root@wallet01 ~]# tar zxvf zookeeper-3.4.14.tar.gz -C /usr/local/[root@wallet01 ~]# cd /usr/local/zookeeper-3.4.14/conf[root@wallet01 conf]# mv zoo_sample.cfg zoo.cfg[root@wallet01 conf]# vi log4j.propertieslog4j.rootLogger=INFO,ROLLINGFILE[root@wallet01 ~]# cd /usr/local/zookeeper-3.4.14/bin[root@wallet01 bin]# vi zkEnv.shif [ "x${ZOO_LOG_DIR}" = "x" ]then ZOO_LOG_DIR="/usr/local/zookeeper-3.4.14/logs"fiif [ "x${ZOO_LOG4J_PROP}" = "x" ]then ZOO_LOG4J_PROP="INFO,ROLLINGFILE"fi[root@wallet01 ~]# mkdir -p /usr/local/zookeeper-3.4.14/logs[root@wallet01 ~]# vi /etc/profilePATH=$PATH:/usr/local/zookeeper-3.4.14/bin[root@wallet01 ~]# zkServer.sh startZooKeeper JMX enabled by defaultUsing config: /usr/local/zookeeper-3.4.14/bin/../conf/zoo.cfgStarting zookeeper ... STARTED[root@wallet01 ~]# zkServer.sh statusZooKeeper JMX enabled by defaultUsing config: /usr/local/zookeeper-3.4.14/bin/../conf/zoo.cfgMode: standalone[root@wallet01 ~]# yum install -y nc[root@wallet01 ~]# wget https://raw.github.com/alibaba/otter/master/manager/deployer/src/main/resources/sql/otter-manager-schema.sql --no-check-certificate[root@wallet01 ~]# mysql -uroot -pabcd.1234mysql> source otter-manager-schema.sqlmysql> create user otter@'%' identified by "otter";Query OK, 0 rows affected (0.08 sec)mysql> grant all on otter.* to otter@'%'Query OK, 0 rows affected (0.00 sec)[root@wallet01 ~]# mkdir -p /usr/local/manager[root@wallet01 ~]# tar zxvf manager.deployer-4.2.17.tar.gz -C /usr/local/manager[root@wallet01 ~]# cd /usr/local/manager/conf/[root@wallet01 conf]# vi otter.properties ## otter manager domain nameotter.domainName = 192.168.40.34## otter manager http portotter.port = 8080## otter manager database configotter.database.driver.class.name = com.mysql.jdbc.Driverotter.database.driver.url = jdbc:mysql://127.0.0.1:3306/otterotter.database.driver.username = otterotter.database.driver.password = otter## otter communication portotter.communication.manager.port = 1099## default zookeeper addressotter.zookeeper.cluster.default = 192.168.40.34:2181## default zookeeper sesstion timeout = 60sotter.zookeeper.sessionTimeout = 60000[root@wallet01 ~]# cd /usr/local/manager/bin[root@wallet01 bin]# ./startup.sh[root@wallet01 ~]# cd /usr/local/manager/logs[root@wallet01 logs]# cat manager.log2018-11-19 10:29:26.146 [] INFO com.alibaba.otter.manager.deployer.OtterManagerLauncher - ## start the manager server.2018-11-19 10:29:49.427 [] INFO com.alibaba.otter.manager.deployer.JettyEmbedServer - ##Jetty Embed Server is startup!2018-11-19 10:29:49.427 [] INFO com.alibaba.otter.manager.deployer.OtterManagerLauncher - ## the manager server is running now ......[root@wallet02 ~]# mkdir -p /usr/local/node[root@wallet02 ~]# tar zxvf node.deployer-4.2.17.tar.gz -C /usr/local/node[root@wallet02 ~]# cd /usr/local/node/conf/[root@wallet02 conf]# echo 1 > nid[root@wallet02 conf]# vi otter.properties ## otter arbitrate & node connect manager configotter.manager.address = 192.168.40.34:1099[root@wallet02 ~]# cd /usr/local/node/bin[root@wallet02 bin]# ./startup.sh[root@wallet02 ~]# cd /usr/local/node/logs/node[root@wallet02 node]# cat node.log 2018-11-19 10:58:09.830 [main] INFO com.alibaba.otter.node.deployer.OtterLauncher - INFO ## the otter server is running now ......[root@wallet02 ~]# mysql -uroot -pabcd.1234mysql> create user otter@'%' identified by "otter";Query OK, 0 rows affected (0.08 sec)mysql> grant replication slave,replication client on *.* to otter@'%';Query OK, 0 rows affected (0.02 sec)mysql> grant all on tpcc.* to otter@'%';Query OK, 0 rows affected (0.03 sec)[root@wallet03 ~]# mkdir -p /usr/local/node[root@wallet03 ~]# tar zxvf node.deployer-4.2.17.tar.gz -C /usr/local/node[root@wallet03 ~]# cd /usr/local/node/conf[root@wallet03 conf]# echo 2 > nid[root@wallet03 conf]# vi otter.properties ## otter arbitrate & node connect manager configotter.manager.address = 192.168.40.34:1099[root@wallet03 ~]# cd /usr/local/node/bin[root@wallet03 bin]# ./startup.sh[root@wallet03 ~]# cd /usr/local/node/logs/node[root@wallet03 node]# cat node.log 2018-11-19 10:58:09.830 [main] INFO com.alibaba.otter.node.deployer.OtterLauncher - INFO ## the otter server is running now ......[root@wallet03 ~]# mysql -uroot -pabcd.1234mysql> create user otter@'%' identified by "otter";Query OK, 0 rows affected (0.08 sec)mysql> grant replication slave,replication client on *.* to otter@'%';Query OK, 0 rows affected (0.02 sec)mysql> grant all on tpcc.* to otter@'%';Query OK, 0 rows affected (0.03 sec)默认用户名:admin 默认密码:admin

[root@wallet02 ~]# mysql -uroot -pabcd.1234mysql> show master status;+------------------+-----------+--------------+------------------+-------------------+| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |+------------------+-----------+--------------+------------------+-------------------+| mysql-bin.000005 | 100046965 | | | |+------------------+-----------+--------------+------------------+-------------------+1 row in set (0.00 sec)mysql> select unix_timestamp(now());+-----------------------+| unix_timestamp(now()) |+-----------------------+| 1556009946 |+-----------------------+1 row in set (0.00 sec){"journalName":"mysql-bin.000005","position":100046965,"timestamp":1556009946};以上关于MySQL数据库实现远程同步的工具alibaba otter详细内容,对大家有帮助吗?如果想要了解更多相关,可以继续关注我们的行业资讯板块。
工具
数据
数据库
同步
内容
价值
兴趣
密码
文章
更多
板块
用户
用户名
篇文章
行业
资讯
参考
帮助
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
咖啡豆
鸠鸠互联网科技
互联网最新的科技有限公司
北京互联网科技
互联网科技金融公司
互联网科技公司做什么
甘肃拓世互联网科技有限公司
蓝色互联网科技
现代互联网科技股
荆州市昕露互联网络科技有限公司
知域互联网科技有限公司大骗子
互联网科技人工智能实验室
本届互联网博览会上的黑科技
浙南科技城互联网大厦建设工程
迪庆互联网科技招生
长沙互联网科技
烟台灵鸽互联网科技有限公司
互联网金融科技公司的优势
广西科技产业互联网是什么
东风日产互联网科技公司叫什么
互联网公司 科技公司
平安科技 互联网
合肥互联网科技公司
互联网科技上市公司
互联网对科技的发展
玉溪新华互联网科技好不好
无锡工业互联网科技有限公司
科技互联网海报
神州科技互联网有限公司
瑞安市蟠桃会互联网科技有限公司