Install Erlang first
View the corresponding version of rabbitmq and the corresponding version of Erlang
www.rabbitmq.com/which-erlang.html
Here, choose to install rabbitmq version 3.8.16, corresponding to Erlang version 23.2 or above. Go hereErlang official websiteErlang version dependency required for downloading and loading
Ubuntu version
Ubuntu version: focal 12.04 (LTS) bionic 18.04 (LTS) xenial 16.04 (LTS) trust 14.04 (LTS)
Because I am ubuntu20.4, here I download the 23.3.1 focal version of Erlang.
Start installation
#If you installed the old version of Erlang first, uninstall it first
$ sudo apt autoremove --purge erlang-base
$ suso dpkg -i esl-erlang_23.3.1-1_ubuntu-focal_amd64.deb
An error will be reported when it is found. Since the error is reported as missing, the installation depends on the error. For example, the error reported here is as follows
Next, install all missing dependencies
$ sudo apt -f install
Execute again
$ suso dpkg -i esl-erlang_23.3.1-1_ubuntu-focal_amd64.deb
Check whether the installation is successful
erl
Installing rabbitmq
Download the DEB package,address
#Uninstall old rabbitmq
$ sudo apt remove rabbitmq-server
$ sudo apt update
$ dpkg -i rabbitmq-server_3.8.16-1_all.deb
#Missing dependent execution
$ sudo apt -f install
#Execute again
$ dpkg -i rabbitmq-server_3.8.16-1_all.deb
Start, stop and restart services
##The default rabbitmq is a plug-in without a web client installed
rabbitmq-plugins enable rabbitmq management
##Create user
rabbitmqctl add_user admin admin
Adding user "admin" ...
##Role assignment
rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administrator] ...
##Authorization
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
Setting permissions for user "admin" in vhost "/" ...
#Start service
service rabbitmq-server start
#Stop service
service rabbitmq-server stop
#Restart service
service rabbitmq-server restart
Log in
This work adoptsCC agreement, reprint must indicate the author and the link to this article