更新时间:2022-03-22 10:38:35 来源:极悦 浏览1230次
RabbitMQ 用于在vCloud Director环境中交换消息。
如果您已经安装了 RabbitMQ,请确保将主机配置为支持 SSL 连接。
对于测试和开发环境,您可以选择跳过此过程并按照为测试和开发环境创建容器中的说明让 RabbitMQ 在 Docker 容器中运行。
以下是安装和配置 RabbitMQ 主机的过程示例。
# wget http://www.rabbitmq.com/releases/erlang/erlang-18.3-1.el6.x86_64.rpm
# rpm -i erlang-18.3-1.el6.x86_64.rpm
# wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1-1.noarch.rpm
# rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
# rpm -i rabbitmq-server-3.6.1-1.noarch.rpm
# wget http://github.com/michaelklishin/tls-gen/archive/master.zip
#解压master.zip
# cd tls-get-master/basic
替换vcd-db.gcp.local为您的域:
# CN=vcd-db.gcp.local 密码=vmware make
# mv testca/ /etc/rabbitmq/
# mv 服务器/ /etc/rabbitmq/
# mv 客户端/ /etc/rabbitmq/
集所有者:
# chown -R rabbitmq: /etc/rabbitmq/testca
# chown -R rabbitmq: /etc/rabbitmq/server
# chown -R rabbitmq: /etc/rabbitmq/client
使用以下内容创建文件/etc/rabbitmq/rabbitmq.config 。
[
{ssl,[{版本,['tlsv1.2','tlsv1.1',tlsv1]}]},
{兔子, [
{ssl_listeners, [5671]},
{ssl_options, [{cacertfile,"/etc/rabbitmq/testca/cacert.pem"},
{certfile,"/etc/rabbitmq/server/cert.pem"},
{keyfile,"/etc/rabbitmq/server/key.pem"},
{版本,['tlsv1.2','tlsv1.1',tlsv1]},
{密码,[“ECDHE-ECDSA-AES256-GCM-SHA384”,“ECDHE-RSA-AES256-GCM-SHA384”,
"ECDHE-ECDSA-AES256-SHA384","ECDHE-RSA-AES256-SHA384",
"ECDH-ECDSA-AES256-GCM-SHA384","ECDH-RSA-AES256-GCM-SHA384",
"ECDH-ECDSA-AES256-SHA384","ECDH-RSA-AES256-SHA384",
"DHE-RSA-AES256-GCM-SHA384","DHE-DSS-AES256-GCM-SHA384",
"DHE-RSA-AES256-SHA256","DHE-DSS-AES256-SHA256","AES256-GCM-SHA384",
"AES256-SHA256","ECDHE-ECDSA-AES128-GCM-SHA256",
"ECDHE-RSA-AES128-GCM-SHA256","ECDHE-ECDSA-AES128-SHA256",
"ECDHE-RSA-AES128-SHA256","ECDH-ECDSA-AES128-GCM-SHA256",
"ECDH-RSA-AES128-GCM-SHA256","ECDH-ECDSA-AES128-SHA256",
"ECDH-RSA-AES128-SHA256","DHE-RSA-AES128-GCM-SHA256",
“AND-DSS-AES128-GCM-SHA256”、“AND-RSA-AES128-SHA256”、“AND-DSS-AES128-SHA256”、
"AES128-GCM-SHA256","AES128-SHA256","ECDHE-ECDSA-AES256-SHA",
"ECDHE-RSA-AES256-SHA","DHE-RSA-AES256-SHA","DHE-DSS-AES256-SHA",
"ECDH-ECDSA-AES256-SHA","ECDH-RSA-AES256-SHA","AES256-SHA",
"ECDHE-ECDSA-DES-CBC3-SHA","ECDHE-RSA-DES-CBC3-SHA","EDH-RSA-DES-CBC3-SHA",
"EDH-DSS-DES-CBC3-SHA","ECDH-ECDSA-DES-CBC3-SHA","ECDH-RSA-DES-CBC3-SHA",
"DES-CBC3-SHA","ECDHE-ECDSA-AES128-SHA","ECDHE-RSA-AES128-SHA",
"DHE-RSA-AES128-SHA","DHE-DSS-AES128-SHA","ECDH-ECDSA-AES128-SHA",
"ECDH-RSA-AES128-SHA","AES128-SHA","EDH-RSA-DES-CBC-SHA","DES-CBC-SHA"]},
{验证,验证_无},
{fail_if_no_peer_cert,false}]}]}
].
# 服务 rabbitmq-server 启动
启用 UIhttp://server-name:15672/
# rabbitmq-plugins 启用 rabbitmq_management
创建管理员用户登录:
# rabbitmqctl add_user admin vmware
# rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
# rabbitmqctl set_user_tags admin 管理员
通过上述,相信大家对RabbitMQ安装配置已经有所了解,大家如果想了解更多相关知识,不妨来关注一下极悦的RabbitMQ教程,里面的课程内容由浅到深,通俗易懂,适合没有基础的小白学习,希望对大家能够有所帮。
0基础 0学费 15天面授
Java就业班有基础 直达就业
业余时间 高薪转行
Java在职加薪班工作1~3年,加薪神器
工作3~5年,晋升架构
提交申请后,顾问老师会电话与您沟通安排学习