rabbitmq-server安装配置

由于rabbitmq需要erlang支持,所以首先安装erlang

我安装的rabbitmq3.8.14,所以需要erlang23支持

/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=1
enabled=1
# PackageCloud's repository key and RabbitMQ package signing key
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
       https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
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
# PackageCloud's repository key and RabbitMQ package signing key
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
       https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300

然后直接yum安装就行,安装出来的会是erlang最新

yum install erlang -y

开始安装rabbitmq-server,下载对应的版本

https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.14

开始安装

yum install rabbitmq-server-3.8.14-1.el7.noarch.rpm

安装好之后启动rabbitmq-server

systemctl start rabbitmq-server

然后添加用户和为用户授权

rabbitmqctl add_user test 123456

rabbitmqctl set_permissions -p / test ".*" ".*" ".*"

rabbitmqctl set_user_tags test administrator

最后关闭防火墙在浏览器访问

rabbitmq-plugins enable rabbitmq_management


http://172.16.1.60:15672

 

上一篇:使用批处理创建和编译我的Erlang工程


下一篇:Ubuntu linux Erlang编程----毕达哥拉斯定理