相关文章
docke 安装canal-admin ui管理canal-server(系列一)
canal-admin投递binglog到kafka,多进程消费kafka同步数据变更(系列二)
官方安装文档
canal-admin 的数据存储mysql安装
docker run -p 33061:3306 --name canal-mysql \
-v /usr/local/mysql/mysql-5.6/conf:/etc/mysql/conf.d \
-v /usr/local/mysql/mysql-5.6/logs:/logs \
-v /usr/local/mysql/mysql-5.6/data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=canal@mysql@2020 -d mysql:5.6
canal-admin ui安装
//下载指定脚本组装docker命令来启动
wget https://raw.githubusercontent.com/alibaba/canal/master/docker/run_admin.sh
sudo sh run_admin.sh -e server.port=8089 \
-e canal.adminUser=admin \
-e canal.adminPasswd=admin \
-e spring.datasource.address=192.168.3.110:33061 \
-e spring.datasource.database=canal_manager \
-e spring.datasource.username=root \
-e spring.datasource.password=canal@mysql@2020
//或者 直接docker 命令 启动
sudo docker run -it --name canal-admin \
-e server.port=8089 \
-e canal.adminUser=admin \
-e canal.adminPasswd=admin \
-e spring.datasource.address=192.168.3.110:33061 \
-e spring.datasource.database=canal_manager \
-e spring.datasource.username=root \
-e spring.datasource.password=canal@mysql@2020 \
-h 192.168.3.110 \
--net=host \
-m 1024m \
-d canal/canal-admin:v1.1.4
canal-server 安装
//下载脚本 组装docker命令来启动
wget https://raw.githubusercontent.com/alibaba/canal/master/docker/run.sh
sudo sh run.sh -e canal.admin.manager=127.0.0.1:8089 \
-e canal.admin.port=11110 \
-e canal.port=11121 \
-e canal.metrics.pull.port=11122 \
-e canal.admin.user=admin \
-e canal.admin.passwd=4ACFE3202A5FF5CF467898FC58AAB1D615029441
//或者直接docker命令启动
docker run -it --name=canal-server \
-e canal.admin.manager=192.168.3.110:8089 \
-e canal.admin.port=11110 \
-e canal.port=11121 \
-e canal.metrics.pull.port=11122 \
-e canal.admin.user=admin \
-e canal.admin.passwd=4ACFE3202A5FF5CF467898FC58AAB1D615029441 \
-h 192.168.3.110 \
--net=host \
-d canal/canal-server:v1.1.4
新建mytest实例的canal Instances
- 新建步骤
- 点击新建 名称为mytest ,选择绑定到哪个server上或者集群上
- 点击载入默认模板
- 将模板中以下参数替换为test环境的配置
- test 环境配置如下
# position info
canal.instance.master.address=test:33006
# username/password
canal.instance.dbUsername=test
canal.instance.dbPassword=test
canal.instance.connectionCharset = UTF-8
- 线上 环境配置如下
# position info
canal.instance.master.address=test:33006
# username/password
canal.instance.dbUsername=prod
canal.instance.dbPassword=prod
canal.instance.connectionCharset = UTF-8