Install RabbitMQ on CentOS7

Source: Internet
Author: User

Install RabbitMQ on CentOS7

1. Download the rpm of erlang and rabbitmq-server:

Http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm

Http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm

NOTE: If downloading is slow, you can try to use Baidu cloud disk for offline download.

Then, put all the downloaded rpm files in a folder for easy installation.

2. Install erlang:

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

Test whether the installation is successful:

Third, install rabbitmq:

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

Prompt to depend on socat when installing rabbitmq

Yum install socat

Then install rabbitmq again

Fourth, start and close:

/Sbin/service rabbitmq-server stop # disable

/Sbin/service rabbitmq-server start # start

/Sbin/service rabbitmq-server status # status

Fifth, cd to the/sbin directory:

./Rabbitmq-plugins list

./Rabbitmqctl status

Vi. Others

Run the following command to add the user admin and password admin.

[Root @ localhost sbin] #./rabbitmqctl add_user admin
Creating user "admin "...
... Done.
[Root @ localhost sbin] #./rabbitmqctl set_user_tags admin administraotr
Setting tags for user "admin" to [administraotr]…
... Done.
[Root @ localhost sbin] #./rabbitmqctl list_users
Listing users...
Admin [administraotr]
Guest [administrator]
... Done.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.