天天看點

Linux系統安裝配置rabbitmq

本文安裝RabbitMQ

1.安裝相關依賴

yum update

yum install epel-release

yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git wget wxBase.x86_64

2.安裝ErLang

因為RabbitMQ服務端代碼是使用并發式語言Erlang編寫的。

wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

yum update

yum install erlang

ps:rpm -Uvh     更新(或安裝)

3.檢查是否安裝成功

輸入erl
Linux系統安裝配置rabbitmq

4.安裝 RabbitMQ

wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.9/rabbitmq-server-3.7.9-1.el7.noarch.rpm

rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc

yum install rabbitmq-server-3.7.9-1.el7.noarch.rpm

ps:rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc 用來導入signing-key

5.啟動服務

systemctl start rabbitmq-server

6.添加管理者賬号

rabbitmqctl add_user admin 1230

7.配置設定使用者标簽

rabbitmqctl set_user_tags admin administrator

8.建立和賦角色完成後檢視并确認

rabbitmqctl list_users
Linux系統安裝配置rabbitmq

9.浏覽器測試

ip位址:15672

輸入配置的使用者賬戶密碼:

Linux系統安裝配置rabbitmq

登入完成界面如下:

Linux系統安裝配置rabbitmq

至此,大功告成~

繼續閱讀