ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
https://blog.csdn.net/qq_38167579/article/details/124293132 # 下载并解压 https://github.com/alibaba/canal/releases 在服务器指定位置 ``` wget https://github.com/alibaba/canal/releases/download/canal-1.1.6/canal.deployer-1.1.6.tar.gz wget https://github.com/alibaba/canal/releases/download/canal-1.1.6/canal.adapter-1.1.6.tar.gz ``` 解压到指定位置 **canal 解压后是分散的,我们在指定解压目录的时候需要将 canal 指定上** ``` tar -zxvf canal.deployer-1.1.6.tar.gz -C /usr/local/canal1.6/deployer tar -zxvf canal.adapter-1.1.6.tar.gz -C /usr/local/canal1.6/adapter ``` 修改 deployer 配置 ``` vim /usr/local/canal1.6/deployer/conf/example/instance.properties 修改数据库的地址以及用户名密码 # position info canal.instance.master.address=127.0.0.1:3306 # username/password canal.instance.dbUsername=root canal.instance.dbPassword=123456 ``` 修改adapter配置 ``` vim /usr/local/canal1.6/adapter/conf/application.yml 修改数据库的地址以及用户名密码,以及ES连接信息 srcDataSources: defaultDS: url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true username: root password: 123456 canalAdapters: - instance: example # canal instance Name or mq topic name groups: - groupId: g1 outerAdapters: - name: logger # 输出到日志,可以注释掉 - name: es7 # 输出到ES,如果用的是ES6.x版本就写es6 hosts: http://127.0.0.1:9200 # 127.0.0.1:9300 for transport mode properties: mode: rest # transport or rest # security.auth: test:123456 # only used for rest mode cluster.name: my-application # ES里配置的集群名 ```