RabbitMQ 基础
注意:注意有的命令前有 sudo
下载安装
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server_3.6.6-1_all.deb # 会有依赖错误,强制安装一下 sudo apt-get -f -y install sudo dpkg -i rabbitmq-server_3.6.6-1_all.deb
启动服务
sudo service rabbitmq-server restart
开启后台插件
sudo rabbitmq-plugins enable rabbitmq_management #这一步一定要加 sudo
默认用户密码为 guest guest ,只能本地访问,所以需要添加用户授权
添加用户
sudo rabbitmqctl add_user admin 123456
添加用户组
sudo rabbitmqctl set_user_tags admin administrator
添加权限
sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
然后就访问 15672 端口
常用命令
列出用户 rabbitmqctl list_users 查看用户权限 rabbitmqctl list_user_permissions <username> 更改密码 rabbitmqctl change_password <username> <newpassword>
相关推荐
liym 2020-07-20
changecan 2020-11-19
sunnnyduan 2020-10-16
lonesomer 2020-09-17
houdaiye 2020-09-23
XPZ0 2020-09-22
changecan 2020-09-22
jackadmi 2020-09-11
yuan00yu 2020-08-24
yserver 2020-08-15
liyansring 2020-08-15
liai 2020-08-09
山有木兮卿有意 2020-08-03
85206633 2020-07-28
suosuo 2020-07-28
83911930 2020-07-28
85590296 2020-07-22