SymmetricDS 示例 - 客户端节点拒绝连接到服务器节点

问题描述

我正在研究 SymmetricDS 教程中的示例。我正在使用下载 zip 的示例目录中的配置文件 corp-000.properties 和 store-001.properties。我已将它们放在引擎目录中并对其进行了编辑,以便 corp-000 使用 Postgresql DB 作为 ma​​ster-000 和 store-001 使用 MysqL DB 作为 slave-001,两者都在不同的机器上。

这里是 corp-000.properties 的配置:

engine.name=master-000
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://127.0.0.1/master?stringtype=unspecified

我还启用了防火墙(8080/tcp 和 5432/tcp)并将端口从 31415 更改为 8080:但是,当仍然出现相同的错误并且 url 返回此结果时:

This site can’t be reached

<Master-node-IP> refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

我应该怎么做才能解决这个问题?

解决方法

添加到公司配置

auto.registration=true

不能伤害添加

auto.reload=true

@swm 的解决方案是

解决方法是需要在 symmetricDS 中设置 bind ip