1. 程式人生 > >rabbitMQ安裝部署

rabbitMQ安裝部署

rabbitmq

  1. 安裝erlang

yum install erlang

2.安裝rabbitmq

wget 
yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm

3.啟動服務

systemctl start rabbitmq-server.service

4.查看服務狀態

service rabbitmq-server status

5.查看用戶列表

# rabbitmqctl list_users
Listing users ...
guest   [administrator]

6.刪除guest用戶

 rabbitmqctl delete_user guest

7.添加新用戶

rabbitmqctl add_user ckl m84qva>QgoD

8.設置用戶tag

# rabbitmqctl set_user_tags seedeer administrator
Setting tags for user "seedeer" to [administrator] ...

9.設置用戶權限

# rabbitmqctl set_permissions -p / seedeer ".*" ".*" ".*"
Setting permissions for user "seedeer" in vhost "/" ...

10.查看用戶權限

# rabbitmqctl list_user_permissions seedeer
Listing permissions for user "seedeer" ...
/       .*      .*      .*

11.啟用web管理

# rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
  mochiweb
  webmachine
  rabbitmq_web_dispatch
  amqp_client
  rabbitmq_management_agent
  rabbitmq_management

12.配置服務配置文件

#  cd /etc/rabbitmq/
# vim rabbitmq.config
[
{rabbit, [{tcp_listeners, [5672]}, {seedeer, ["seedeer"]}]}
].

13.重啟服務

systemctl restart rabbitmq-server.service

14.查看頁面

技術分享

15.登入

技術分享

本文出自 “深呼吸再出擊” 博客,請務必保留此出處http://ckl893.blog.51cto.com/8827818/1975941

rabbitMQ安裝部署