Skip to content

Canal Admin QuickStart

agapple edited this page Aug 31, 2019 · 8 revisions

部署

  1. 导入mysql脚本:canal-admin/canal_manager.sql

  2. 在 canal-admin.jar的同级目录下创建application.yml配置:

server:
  port: 8089
spring:
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8

spring.datasource:
    url: jdbc:mysql://127.0.0.1:3306/canal_manager?useUnicode=true&characterEncoding=UTF-8&useSSL=false
    username: root
    password: 121212
    driver-class-name: com.mysql.jdbc.Driver
    hikari:
      maximum-pool-size: 10
      minimum-idle: 1

并修改对应的数据源

  1. 启动canal-admin:
java -jar canal-admin.jar 

访问地址:http://ip:8089/index.html 即可访问

  1. 修改canal-server的配置, canal.properties:
#################################################
######### 		common argument		#############
#################################################
#canal.manager.jdbc.url=jdbc:mysql://127.0.0.1:3306/canal_manager?useUnicode=true&characterEncoding=UTF-8&useSSL=false
#canal.manager.jdbc.username=root
#canal.manager.jdbc.password=121212

只保留数据源配置即可

Clone this wiki locally