系统:Ubuntu20.04
tips:一定要在终端sudo apt-get update
1. 安装erlang
sudo apt-get install erlang-nox
2. 安装rabbitmq
sudo apt-get install rabbitmq-server
3. 查看是否安装成功
systemctl status rabbitmq-server
4. 添加用户,设置密码
sudo rabbitmqctl add_user xqs 123456
5. 给该账号赋予权限
sudo rabbitmqctl set_user_tags xqs administrator
6. 赋予virtual host中所有资源的配置,读,写权限
sudo rabbitmqctl set_permissions -p / xqs '.*' '.*' '.*'
7. 开启rabbitmq的web服务
sudo rabbitmq-plugins enable rabbitmq_management
8. 在浏览器输入网址:http://127.0.0.1:15672访问,输入上面注册的账号,密码登录
标签:get,sudo,apt,rabbitmqctl,rabbitmq,ubuntu,xqs,安装 From: https://www.cnblogs.com/xianqingsong/p/16890687.html