Skip to main content

Linux CentOS7 version offline installation rabbitmq

Linux CentOS7 version offline installation rabbitmq

1. Download rpm (all are el7.x86_64.rpm)

1.erlang: [Release 22.3.4.19 · [rabbitmq](/search?q=rabbitmq)/erlang-rpm · GitHub](https://github.com/rabbitmq/erlang-rpm/releases/tag/v22.3.4.19 "Release 22.3.4.19 · rabbitmq/erlang-rpm · GitHub")

2.rabbitmq: Release RabbitMQ 3.8.5 · rabbitmq/rabbitmq-server · GitHub

csdn offline package: linuxCentOS7 version offline installation of rabbitmq rpm file-CentOS document resources-CSDN library

2. Install rpm:

Install erlang:

rpm -ivh erlang-22.3.4.19-1.el7.x86_64.rpm

Install socat:

rpm -ivh socat-1.7.3.2-2.el7.x86_64.rpm

Install erlang:
rpm -ivh rabbitmq-server-3.8.5-1.el7.noarch.rpm

Just follow the three steps normally. If you need logrotate:

Check if logrotate is available, rpm is not installed

rpm -qa | grep logrotate

rpm -ivh logrotate-3.8.6-19.el7.x86_64.rpm

3. Start the rabbitmq service: (It is best to use the root user)
Execute the command:
Start the service:

service rabbitmq-server start

RabbitMQ can only log in with http://127.0.0.1:15672 or http://localhost:15672/ by default. You can log in with the guest account and guest password.
When logging in with IP http://IP:15672/, use guest. Account and guest password login prompt User can only log in via localhost

Configure a new management account:

Set the account password to admin admin

rabbitmqctl add_user admin admin

Add permissions (allow the admin user to have all permissions on the virtual host "/"):

rabbitmqctl set_permissions -p "/" admin "." "." ".*"

Set administrator permissions:

Set admin as administrator privileges

rabbitmqctl set_user_tags admin administrator

Open web management:

rabbitmq-plugins enable rabbitmq_management

Log in to the management page: http://IP:15672, the account password is admin admin

Commonly used commands:

service rabbitmq-server start //Start
service rabbitmq-server stop //Stop
service rabbitmq-server restart //Restart