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/