标签:releases tar 安装 开启 serve 代理 delete 界面 strong
RabbitMQ 是一个由 Erlang 语言开发的 AMQP 的开源实现的开源消息代理软件
AMQP :Advanced Message Queue,高级消息队列协议。它是应用层协议的一个开放标准,为面向消息的中间件设计,基于此协议的客户端与消息中间件可传递消息,并不受产品、开发语言等条件的限制。
CentOS 7.6(已关闭防火墙)
主机ip:192.168.129.11
添加erlang仓库源
# 创建/etc/yum.repos.d/rabbitmq_erlang.repo文件,写入如下内容
[rabbitmq_erlang]
name=rabbitmq_erlang
baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/$basearch
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
[rabbitmq_erlang-source]
name=rabbitmq_erlang-source
baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
安装erlang
yum install erlang -y
导入rabbitmq安装源的签名
rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
安装rabbitmq服务
yum install rabbitmq-server -y
启动服务并设置开机自启动
systemctl start rabbitmq-server
systemctl enable rabbitmq-server
开启管理界面
rabbitmq-plugins enable rabbitmq_management
rabbitmq-plugins list # 查看开启的插件
添加用户
rabbitmqctl add_user username passwd
删除用户
rabbitmqctl delete_user username
查看当前用户列表
rabbitmqctl list_users
修改密码
rabbimqctl change_password {username} {newpassword}
修改用户角色
rabbitmqctl set_user_tags username administrator
修改权限
rabbitmqctl set_permissions -p / username ".*" ".*" ".*"
标签:releases tar 安装 开启 serve 代理 delete 界面 strong
原文地址:https://www.cnblogs.com/welisit/p/11727644.html