RabbitMQ 凭据#
¥RabbitMQ credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
支持的身份验证方法#
¥Supported authentication methods
- 用户连接
¥User connection
相关资源#
¥Related resources
有关服务的更多信息,请参阅 RabbitMQ 连接文档。
¥Refer to RabbitMQ's Connections documentation for more information about the service.
使用用户连接#
¥Using user connection
要配置此凭据,你需要安装 RabbitMQ 代理 并具备以下条件:
¥To configure this credential, you'll need to have a RabbitMQ broker installed and:
- 输入 RabbitMQ 代理的主机名。
¥Enter the Hostname for the RabbitMQ broker. 2. 输入连接应使用的端口。
¥Enter the Port the connection should use. 3. 输入连接应使用的登录用户。
¥Enter a User the connection should use to log in as.
-
默认值为
guest。RabbitMQ 建议在生产环境中使用不同的用户。有关更多信息,请参阅 访问控制 |基础知识。如果你使用guest账户并通过非本地主机连接,请参阅下面的guest用户问题 以获取故障排除提示。¥The default is
guest. RabbitMQ recommends using a different user in production environments. Refer to Access Control | The Basics for more information. If you're using theguestaccount with a non-localhost connection, refer toguestuser issues below for troubleshooting tips. 4. 请输入用户密码。
¥Enter the user's Password.
-
guest用户的默认密码为guest。¥The default password for the
guestuser isguest. 5. 输入连接应用作虚拟主机的 虚拟主机。默认虚拟主机为/。
¥Enter the virtual host the connection should use as the Vhost. The default virtual host is /.
6. 选择连接是否使用 SSL。如果启用此选项,还需设置:
¥Select whether the connection should use SSL. If turned on, also set:
-
无密码:选择 SSL 证书连接是否使用 SASL 机制 EXTERNAL(关闭)或不使用密码(开启)。如果启用,你还需要输入:
¥Passwordless: Select whether the SSL certificate connection users SASL mechanism EXTERNAL (turned off) or doesn't use a password (turned on). If turned on, you'll also need to enter:
- 客户端证书:粘贴要使用的 SSL 客户端证书文本。
¥The Client Certificate: Paste the text of the SSL client certificate to use.
- 客户端密钥:粘贴要使用的 SSL 客户端密钥。
¥The Client Key: Paste the SSL client key to use.
- 密码粘贴要使用的 SSL 密码。
¥The Passphrase: Paste the SSL passphrase to use.
-
CA 证书:粘贴要使用的 SSL CA 证书文本。
¥CA Certificates: Paste the text of the SSL CA certificates to use.
访客用户问题#
¥guest user issues
如果你使用 guest 用户作为凭据并尝试访问远程主机,则可能会看到连接错误。RabbitMQ 日志显示如下错误:
¥If you use the guest user for the credential and you try to access a remote host, you may see a connection error. The RabbitMQ logs show an error like this:
1 | |
这是因为 RabbitMQ 禁止默认的 guest 用户从远程主机连接。它只能通过 localhost 连接。
¥This happens because RabbitMQ prohibits the default guest user from connecting from remote hosts. It can only connect over the localhost.
要解决此错误,你可以:
¥To resolve this error, you can:
- 更新
guest用户,使其拥有远程主机访问权限。
¥Update the guest user to allow it remote host access.
- 创建或使用其他用户连接到远程主机。默认情况下,只有
guest用户受到限制。
¥Create or use a different user to connect to the remote host. The guest user is the only user limited by default.
有关更多信息,请参阅 "guest" 用户只能从本地主机连接。
¥Refer to "guest" user can only connect from localhost for more information.