本篇文章給大家主要講的是關(guān)于MySQL數(shù)據(jù)庫(kù)實(shí)現(xiàn)遠(yuǎn)程同步的工具alibaba otter的內(nèi)容,感興趣的話就一起來(lái)看看這篇文章吧,相信看完MySQL數(shù)據(jù)庫(kù)實(shí)現(xiàn)遠(yuǎn)程同步的工具alibaba otter對(duì)大家多少有點(diǎn)參考價(jià)值吧。
在水磨溝等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供網(wǎng)站設(shè)計(jì)、成都網(wǎng)站設(shè)計(jì) 網(wǎng)站設(shè)計(jì)制作按需制作網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),品牌網(wǎng)站設(shè)計(jì),成都全網(wǎng)營(yíng)銷,外貿(mào)網(wǎng)站建設(shè),水磨溝網(wǎng)站建設(shè)費(fèi)用合理。[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.properties log4j.rootLogger=INFO,ROLLINGFILE [root@wallet01 ~]# cd /usr/local/zookeeper-3.4.14/bin [root@wallet01 bin]# vi zkEnv.sh if [ "x${ZOO_LOG_DIR}" = "x" ] then ZOO_LOG_DIR="/usr/local/zookeeper-3.4.14/logs" fi if [ "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/profile PATH=$PATH:/usr/local/zookeeper-3.4.14/bin [root@wallet01 ~]# zkServer.sh start ZooKeeper JMX enabled by default Using config: /usr/local/zookeeper-3.4.14/bin/../conf/zoo.cfg Starting zookeeper ... STARTED [root@wallet01 ~]# zkServer.sh status ZooKeeper JMX enabled by default Using config: /usr/local/zookeeper-3.4.14/bin/../conf/zoo.cfg Mode: 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.1234 mysql> source otter-manager-schema.sql mysql> 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 name otter.domainName = 192.168.40.34 ## otter manager http port otter.port = 8080 ## otter manager database config otter.database.driver.class.name = com.mysql.jdbc.Driver otter.database.driver.url = jdbc:mysql://127.0.0.1:3306/otter otter.database.driver.username = otter otter.database.driver.password = otter ## otter communication port otter.communication.manager.port = 1099 ## default zookeeper address otter.zookeeper.cluster.default = 192.168.40.34:2181 ## default zookeeper sesstion timeout = 60s otter.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.log 2018-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 config otter.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.1234 mysql> 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 config otter.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.1234 mysql> 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)
默認(rèn)用戶名:admin 默認(rèn)密碼:admin
[root@wallet02 ~]# mysql -uroot -pabcd.1234 mysql> 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};
以上關(guān)于MySQL數(shù)據(jù)庫(kù)實(shí)現(xiàn)遠(yuǎn)程同步的工具alibaba otter詳細(xì)內(nèi)容,對(duì)大家有幫助嗎?如果想要了解更多相關(guān),可以繼續(xù)關(guān)注我們的行業(yè)資訊板塊。
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。
分享名稱:MySQL數(shù)據(jù)庫(kù)實(shí)現(xiàn)遠(yuǎn)程同步的工具alibabaotter-創(chuàng)新互聯(lián)
鏈接分享:http://jinyejixie.com/article16/dphhdg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、網(wǎng)站改版、網(wǎng)站制作、自適應(yīng)網(wǎng)站、網(wǎng)站策劃、網(wǎng)站導(dǎo)航
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容