安装笔记:在CentOS上安装canal(可以在程序中读取mysql复制日志进行处理)
作者:互联网
https://blog.csdn.net/qq_23374741/article/details/72805923
wget https://github.com/alibaba/canal/releases/download/canal-1.1.4/canal.deployer-1.1.4.tar.gz
mkdir /data/canal
tar zxvf canal.deployer-1.1.4.tar.gz -C /data/canal
rm -f canal.deployer-1.1.4.tar.gz
cd /data/canal
GRANT SELECT, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'replication'@'%';
FLUSH PRIVILEGES;
vi conf/example/instance.properties
canal.instance.master.address
canal.instance.dbUsername=replication
canal.instance.dbPassword=密码
canal.instance.connectionCharset=UTF-8
canal.instance.filter.regex=kiddo\\.kid.*,kiddo\\.rec.*
cd /data/canal/bin
./startup.sh
然后到 logs目录下的两个目录canal和example目录下查看日志文件,如果都没有异常则表示服务启动成功
cd /data/canal/logs/
标签:canal,1.1,CentOS,deployer,data,instance,安装,tar 来源: https://www.cnblogs.com/ilovejesus/p/12490506.html