-
Notifications
You must be signed in to change notification settings - Fork 0
canal安装
yangyp8110 edited this page Jan 17, 2018
·
1 revision
默认安装的实例是example,需要个性化配置,请先阅读canal配置
- 以下示例安装的是
canal.deployer-1.0.24.tar.gz
版本 - 安装文档里部分说明:
//创建用户canal,并授权
mysql> CREATE USER canal IDENTIFIED BY 'canal';
mysql> GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'canal'@'%';
//如果已经存在,直接授权
--mysql> GRANT ALL PRIVILEGES ON *.* TO 'canal'@'%' ;
mysql> FLUSH PRIVILEGES;
- 安装文档操作,创建的canal用户
- 账号名:canal
- 密码:canal
- 启动
sh bin/startup.sh
- 查看启动
tail -100f logs/canal/canal.log
tail -100f logs/example/example.log
- 执行
sh bin/startup.sh
启动命令后,从日志看到以下信息(启动端口:11111)
[root@yyp ~]# cat /usr/local/install/canal/logs/canal/canal.log
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=96m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: UseCMSCompactAtFullCollection is deprecated and will likely be removed in a future release.
2017-07-14 23:08:40.845 [main] INFO com.alibaba.otter.canal.deployer.CanalLauncher - ## start the canal server.
2017-07-14 23:08:41.367 [main] WARN com.alibaba.otter.canal.common.utils.AddressUtils - Failed to retriving local host ip address, try scan network card
ip address. cause: yyp.localdomain: yyp.localdomain: Name or service not known2017-07-14 23:08:41.388 [main] INFO com.alibaba.otter.canal.deployer.CanalController - ## start the canal server[192.168.74.129:11111]
2017-07-14 23:08:44.255 [main] INFO com.alibaba.otter.canal.deployer.CanalLauncher - ## the canal server is running now ......
[root@yyp ~]#
- 关闭
sh bin/stop.sh