1. 程式人生 > 實用技巧 >用華為的鯤鵬映象安裝RabbitMQ

用華為的鯤鵬映象安裝RabbitMQ

下載地址為:https://obs-mirror-ftp4.obs.cn-north-4.myhuaweicloud.com/middleware/rabbitmq-server-3.7.4-1.el7.noarch.rpm

1.安裝依賴軟體

yum install socat

2.下載安裝erlang20.1.7

wget https://obs-mirror-ftp4.obs.cn-north-4.myhuaweicloud.com:443/middleware/erlang-20.1.7.1-1.el7.centos.a.aarch64.rpm
rpm -ivh erlang-20.1.7.1-1.el7.centos.a.aarch64.rpm

3.下載安裝RabbitMQ3.7.4

wget https://obs-mirror-ftp4.obs.cn-north-4.myhuaweicloud.com:443/middleware/rabbitmq-server-3.7.4-1.el7.noarch.rpm
rpm -ivh rabbitmq-server-3.7.4-1.el7.noarch.rpm

4.測試

設定RabbitMQ服務:

systemctl enable rabbitmq-server #設定服務自動啟動
systemctl start rabbitmq-server #啟動rabbitmq服務
rabbitmq-plugins enable rabbitmq_management #啟用RabbitMQ的管理外掛
rabbitmqctl add_user admin admin #設定使用者名稱和密碼
rabbitmqctl set_user_tags admin administrator #設定使用者角色
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*" #為admin分配許可權
systemctl restart rabbitmq-server #重啟rabbitmq服務

訪問http://ip:15672,輸入admin,admin,可以看到圖形操作介面

參考地址:

http://arm.cloud-onlinelab.cn/