Enter /etc/yum.repos.d/ folder
Create rabbitmq-erlang.repo file
The content is as follows
[ rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/21/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
Create rabbitmq.repo file
The content is as follows
[ bintray-rabbitmq-server]
name=bintray-rabbitmq-rpm
baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/8/
gpgcheck=0
repo_gpgcheck=0
enabled=1
Install command
yum install rabbitmq-server
rabbitmq related commands
Turn on
service rabbitmq-server start
shut down
service rabbitmq-server stop
Check status
service rabbitmq-server status
Reboot
service rabbitmq-server restart
Enable plugin page management
rabbitmq-plugins enable rabbitmq_management
Create user
rabbitmqctl add_user admin mypassword
Grant permissions
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*"".*"".*"
The browser visits http://machine IP:15672 to open the management interface, and log in with the admin account configured in the previous step
to sum up
The above is the tutorial of centos8 using yum to install rabbitmq introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message, and the editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!
Recommended Posts