RabbitMQ offline installation tutorial

rabbitMQ installation

       1. Install rabbitMQ need three packages:

       socat-1.7.3.2-2.el7.x86_64.rpm

       erlang-19.0.4-1.el7.centos.x86_64.rpm

       rabbitmq-server-3.6.6-1.el7.noarch.rpm

       2. Install the package installation command rpm -ivh package

       3. Start RabbitMQ Server command

       # Set On Enable

       chkconfig rabbitmq-server on

       # Start Service

       #Out of service

       service rabbitmq-server stop

       4. Configuration RabbitMQ

       After starting RabbitMQ, will generate a runtime log in / var / log / rabbitmq directory, at the top of the log, we can see the information of the configuration file.

       However, it found that the beginning of time and without any configuration file. The official had shining introduction to the next /usr/share/doc/rabbitmq-server-3.6.6/ copy the template to the next directory / etc / rabbitmq directory modifications:

       cd /usr/share/doc/rabbitmq-server-3.7.7/

       cp rabbitmq.config.example /etc/rabbitmq/rabbitmq.config

       Added in rabbitmq_management

       {listener, [{port,     5672},

          {ip,       "IP"},

          {Ssl, false}]}] // particularly prone to error, accurate write here

       1) Configure User Rights

       rabbitmq default will help us create a guest user, password is also guest. Therefore, to security, we recommend that users delete or change the password. The user has all the rights, but not the default remote access, accessible only via localhost. To be able to remotely access rabbitmq, we can remove the local access restrictions guest users.

       2) to add a new user:

       # Add user

       rabbitmqctl add_user user name and password (later add underlined)

       # Give users an administrator role

       rabbitmqctl set_user_tags Administrator User (intermediate is underlined)

       rabbitmqctl set_permissions -p / user '*' '*' '*'

Published 23 original articles · won praise 7 · views 20000 +

Guess you like

Origin blog.csdn.net/ghd602338792/article/details/103713082