rabbitMQ study notes [1] - stand-alone deployment original

   The company needs to support MQ for external access, and finally selects rabbitMQ. This article introduces the installation of rocketMQ.
1. Download
   [url="http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el6.x86_64.rpm
"]erlang[/url]
    [url="http://www .rabbitmq.com/releases/rabbitmq-server/v3.6.15/rabbitmq-server-generic-unix-3.6.15.tar.xz
"]rabbitMQ[/url]

Second, install
   cd /usr/local/
  
   rpm -ivh erlang -19.0.4-1.el6.x86_64.rpm
  
   xz -d rabbitmq-server-generic-unix-3.6.15.tar.xz

   tar -xvf rabbitmq-server-generic-unix-3.6.15.tar

   cd rabbitmq_server-3.6 .15/sbin #Open
   the management interface
   plugin./rabbitmq-plugins enable rabbitmq_management
  
3. Start    #Start in the
   background./rabbitmq-server -detached #Close    the service



   ./rabbitmqctl stop

4. Management #Check
   whether the service is
   started./rabbitmqctl status #Add
   an administrator account (username: admin password: admin)
   ./rabbitmqctl add_user admin admin #Set
   as a super administrator (administrator), if you only want to see The console can be set to (management)
   #If you want to add the function of creating and deleting vhosts (policymaker), if you want to view all vhosts (monitoring)
   ./rabbitmqctl set_user_tags admin administrator #Add
   vhost
   ./rabbitmqctl add_vhost "ZSGH" #Set
   vhost permissions (r01 is the username)
   ./rabbitmqctl set_permissions -p ZSGH r01 ".*" ".*" ".*" #Access    http://192.168.3.18:15672/
   through the interface #View    users and roles    rabbitmqctl list_users #View    vhost Permissions    ./rabbitmqctl list_user_permissions admin (view by user)





   ./rabbitmqctl list_permissions -p ZSGH (view by vhost)
   #View
   the queue./rabbitmqctl list_queues -p ZSGH #View
   vhost
   ./rabbitmqctl list_vhosts

5. Schematic
  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326068247&siteId=291194637