MySQL组复制 - 无法连接到远程服务器

时间:2018-05-25 19:46:28

标签: mysql

我试图设置组复制插件我在/etc/mysql/my.cnf中指定了所有设置并执行了相应的防火墙规则:但是我无法连接到远程服务器。有两种不同的公共IP地址服务器,而不是本地计算机。

目标服务器上的ufw输出设置:未安装Iptables。

To                         Action      From
--                         ------      ----
33061                      ALLOW IN    Anywhere
3306                       ALLOW IN    Anywhere
22                         ALLOW IN    Anywhere
80                         ALLOW IN    Anywhere
443                        ALLOW IN    Anywhere
80,443/tcp                 ALLOW IN    Anywhere
33061/tcp                  ALLOW IN    Anywhere
33061 (v6)                 ALLOW IN    Anywhere (v6)
3306 (v6)                  ALLOW IN    Anywhere (v6)
22 (v6)                    ALLOW IN    Anywhere (v6)
80 (v6)                    ALLOW IN    Anywhere (v6)
443 (v6)                   ALLOW IN    Anywhere (v6)
80,443/tcp (v6)            ALLOW IN    Anywhere (v6)
33061/tcp (v6)             ALLOW IN    Anywhere (v6)

错误日志输出

2018-05-25T17:36:41.825416Z 0 [Note] Plugin group_replication reported: 'XCom protocol version: 3'
2018-05-25T17:36:41.825460Z 0 [Note] Plugin group_replication reported: 'XCom initialized and ready to accept incoming connections on port 33061'
2018-05-25T17:36:41.912783Z 0 [ERROR] Plugin group_replication reported: '[GCS] Error on opening a connection to {remote IP}:33061 on local port: 33061.'

如果我检查远程端口,我得到:

root@li111-4:/etc/nginx/sites-available# nc -zv {remote IP} 33061
nc: connect to {remote IP} port 33061 (tcp) failed: Connection refused

0 个答案:

没有答案