您好,登錄后才能下訂單哦!
這篇文章主要介紹“RabbitMQ怎么安裝配置”,在日常操作中,相信很多人在RabbitMQ怎么安裝配置問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”RabbitMQ怎么安裝配置”的疑惑有所幫助!接下來,請跟著小編一起來學習吧!
RabbitMQ 用于在vCloud Director環境中交換消息。
如果您已經安裝了 RabbitMQ,請確保將主機配置為支持 SSL 連接。
對于測試和開發環境,您可以選擇跳過此過程并按照為測試和開發環境創建容器中的說明讓 RabbitMQ 在Docker 容器中運行。
以下是安裝和配置 RabbitMQ 主機的過程示例。
# wget https://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 https://www.rabbitmq.com/rabbitmq-signing-key-public.asc# rpm -i rabbitmq-server-3.6.1-1.noarch.rpm
# wget https://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怎么安裝配置”的學習就結束了,希望能夠解決大家的疑惑。理論與實踐的搭配能更好的幫助大家學習,快去試試吧!若想繼續學習更多相關知識,請繼續關注億速云網站,小編會繼續努力為大家帶來更多實用的文章!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。