mysql database 单向数据同步:otter

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

[root@amb01 ~]# 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)

[root@amb01 ~]# mkdir -p /usr/local/manager
[root@amb01 ~]# tar zxvf manager.deployer-4.2.16.tar.gz -C /usr/local/manager
[root@amb01 ~]# cd /usr/local/manager/conf/
[root@amb01 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

[root@amb01 ~]# cd /usr/local/manager/bin
[root@amb01 bin]# ./startup.sh

[root@amb01 ~]# cd /usr/local/manager/logs
[root@amb01 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 ......



猜你喜欢

转载自blog.51cto.com/13598811/2318678