rabbitmq安装(ubuntu)
本文大量复制自:https://blog.csdn.net/qq_22638399/article/details/81704372
# 安装erlang apt-get install erlang-nox erl # 添加公钥,更新源 wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - apt-get update # 安装rabbit,成功后自动启动 apt-get install rabbitmq-server systemctl status rabbitmq-server #Active: active (running) 说明处于运行状态 # service rabbitmq-server status 用service指令也可以查看,同systemctl指令 service rabbitmq-server start # 启动 service rabbitmq-server stop # 停止 service rabbitmq-server restart # 重启 # 添加用户,授权管理员、根目录 rabbitmqctl add_user admin 12345 rabbitmqctl set_user_tags admin administrator rabbitmqctl set_permissions -p / admin '.*' '.*' '.*' # 启用web插件 rabbitmq-plugins enable rabbitmq_management service rabbitmq-server restart # 重启
# 查询用户列表
rabbitmqctl list_users
# 删除用户
rabbitmqctl delete_user Username
# 修改用户密码
rabbitmqctl change_password Username Newpassword