0

我在 Windows Server 2019 上使用 RabbitMq 服务器 3.9.4 和 OTP 24 并想连接远程主机。

在 rabbitmq 中,我使用这些设置创建了用户:

rabbitmqctl add_user rmq password
rabbitmqctl set_permissions -p / rmq ".*" ".*" ".*"
rabbitmqctl set_user_tags rmq administrator

and opened port 5672 in the firewall for remote access.

我正在尝试从其他机器连接我的 .net rabbitmq 客户端,但连接被拒绝。

 var factory = new ConnectionFactory
            {
                HostName = "myhostname",
                UserName = "rmq",
                Password = "password",
            };                                                                              
var connection = factory.CreateConnection()
4

0 回答 0