1.下载软件 tunnel
从git上下载源码并打包:
git clone https://github.com/hellobike/tunnel.git
cd tunnel
mvn clean package -Dmaven.test.skip=true
使用格式:
cd target
unzip AppTunnelService.zip
cd AppTunnelService
java -server -classpath conf/*:lib/* com.hellobike.base.tunnel.TunnelLauncher -u false -c 配置文件
2.开启pg逻辑复制
进入到pg的data目录
修改pg_hba.conf,
vim pg_hba.conf
修改完后如下内容:
修改postgresql.conf
vim postgresql.conf
修改如下内容: