RabbitMQ消息中間件-安裝(Linux)

1、下載(使用rpm安裝)bash

連接:https://pan.baidu.com/s/1Ww5cK2UJ3bGbbUaAOXRI_g
提取碼:ncqs app

 

2、安裝oop

1.在存放rpm目錄中執行:spa

rpm -Uvh *.rpm

 

注:如報錯以下:插件

error: Failed dependencies:

erlang >= 21.3 is needed by rabbitmq-server-3.8.1-1.el7.noarch

        socat is needed by rabbitmq-server-3.8.1-1.el7.noarch 

須要按順序安裝:rest

  1. rpm -Uvh  erlang-21.3.8.6-1.el7.x86_64.rpm 
  2. rpm -Uvh  openssl-1.0.2k-19.el7.x86_64.rpm 
  3. rpm -Uvh openssl-libs-1.0.2k-19.el7.x86_64.rpm
  4. rpm -Uvh  socat-1.7.3.2-2.el7.x86_64.rpm
  5. rpm -Uvh  rabbitmq-server-3.8.1-1.el7.noarch.rpm

 

2.顯示全部插件:server

rabbitmq-plugins list

 

3.開啓rabbitmq管理界面:blog

rabbitmq-plugins enable rabbitmq_management

 

4.設置rabbitmq開機自啓動:rabbitmq

chkconfig rabbitmq-server on

 

5.啓動rabbitmq:ssl

rabbitmq-server start

訪問 http://

登陸遇到問題:User can only log in via localhost。

緣由:rabbitmq從3.3.0開始禁止使用guest/guest權限經過除localhost外的訪問

 

解決方法:

找到這個文件rabbit.app

vi /usr/lib/rabbitmq/lib/rabbitmq_server-3.8.1/ebin/rabbit.app

將:{loopback_users, [<<」guest」>>]},

改成:{loopback_users, []},如圖:

 

 

6.重啓服務:

systemctl restart rabbitmq-server.service
相關文章
相關標籤/搜索