1. 程式人生 > >mysql database 單向資料同步:otter

mysql database 單向資料同步:otter

[[email protected] ~]# wget https://raw.github.com/alibaba/otter/master/manager/deployer/src/main/resources/sql/otter-manager-schema.sql --no-check-certificate

[[email protected] ~]# mysql -uroot -pabcd.1234
mysql> source otter-manager-schema.sql

mysql> grant all privileges on *.* to 'otter'@'%' identified by 'otter' with grant option;
query ok, 0 rows affected (0.04 sec)

mysql> flush privileges;
query ok, 0 rows affected (0.05 sec)

[
[email protected]
 ~]# mkdir -p /usr/local/manager [[email protected] ~]# tar zxvf manager.deployer-4.2.16.tar.gz -C /usr/local/manager [[email protected] ~]# cd /usr/local/manager/conf/ [[email protected] conf]# vi otter.properties  ## otter manager domain name otter.domainName = 192.168.40.37 ## 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.37:2181 ## default zookeeper sesstion timeout = 60s otter.zookeeper.sessionTimeout = 60000 [
[email protected]
 ~]# cd /usr/local/manager/bin [[email protected] bin]# ./startup.sh [[email protected] ~]# cd /usr/local/manager/logs [[email protected] 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 ......