Centos6 RabbitMQ3.7.17 detailed installation and configuration procedures

Installation: rpm 

 

1 install erlang

curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash

 

 

 

yum install erlang 

after installation erlang can check the version number, as follows

 

 

 

2 Installation rabbit

rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
rpm --import https://packagecloud.io/gpg.key

curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

wget https://bintray.com/rabbitmq/rpm/download_file?file_path=rabbitmq-server/v3.7.x/el/6/noarch/rabbitmq-server-3.7.17-1.el6.noarch.rpm

rpm -ivh rabbitmq-server-3.7.17-1.el7.noarch.rpm

3 Configuration

   

 

 

 

   Rabbitmq.config.example copied to the / etc / rabbitmq / and rename the removed line suffix .example

   

  Then modify the rabbitmq.config

  By keyword search:

  

 

 

  Enable rabbitmq management platform plug-in

  

 

 

  rabbitmq will have a web page port number, the default is 15672, IP + port access in a browser, such as: http: //192.168.183.129: 15672 /,
there will be a login screen, enter the default guest account to try and found not login ( because the default guest user can only connect using localhost) 

 

 

      Create an account

  Prior to (1) create, you can look at what permissions of the current user and have

         list_users rabbitmqctl
         rabbitmqctl list_user_permissions the Guest

 (2) add the user (I am here to set the account admin, password is admin, random)

        ADMIN ADMIN add_user rabbitmqctl

(3) set its role

       ADMIN Administrator set_user_tags rabbitmqctl

(. 4) set permissions

     rabbitmqctl set_permissions -p "/" admin " . *" ". *" ". *"

  log on again

 

 

Reference Links:

https://blog.csdn.net/qq_36737803/article/details/100537593

https://www.cnblogs.com/leechenxiang/p/10526109.html

 

Guess you like

Origin www.cnblogs.com/amy720/p/11891100.html