https://www.linuxprobe.com/install-rabbitmq-on-centos-7.html
失败--版本不对
主要参考:
https://github.com/rabbitmq/erlang-rpm
卸载erlang-使用yum install命令安装
1、yum list | grep erlang
使用此命令查询出erlang在Linux系统中安装包的名字
2、yum remove esl-erlang.x86_64
install
/etc/yum.repos.d/rabbitmq-erlang.repo
# In /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
yum install erlang
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
yum install rabbitmq-server-3.8.0.rc.3-1.el6.noarch.rpm
open ui
rabbitmq-plugins enable rabbitmq_management
start
systemctl start rabbitmq-server.service
systemctl enable rabbitmq-server.service
status
systemctl status rabbitmq-server.service
systemctl status rabbitmq-server -l
ui
username/password
管理控制台的地址默认为 http://server-name:15672
添加一个账户吧,用户名 admin密码 admin
rabbitmqctl add_user admin admin
赋予超级管理员
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*"".*" ".*"
网友评论