安装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_usersListing users ...guest [administrator]
6.删除guest用户
rabbitmqctl delete_user guest
7.添加新用户
rabbitmqctl add_user ckl m84qva>QgoD
8.设置用户tag
# rabbitmqctl set_user_tags seedeer administratorSetting tags for user "seedeer" to [administrator] ...
9.设置用户权限
# rabbitmqctl set_permissions -p / seedeer ".*" ".*" ".*"Setting permissions for user "seedeer" in vhost "/" ...
10.查看用户权限
# rabbitmqctl list_user_permissions seedeerListing permissions for user "seedeer" .../ .* .* .*
11.启用web管理
# rabbitmq-plugins enable rabbitmq_managementThe 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.登入