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.