轻量级前端框架在提升开发效率与用户体验中的重要作用
933
2022-08-28
RabbitMQ集群搭建(基于CentOS7的RabbitMQ3.10版本)
@[TOC] 官网的教程参见-1sLf '| sudo -E bash # 设置repository,官网上是CentOS8,我这里是CentOS7 echo '## ## Zero dependency Erlang ## [rabbitmq_erlang] name=rabbitmq_erlang baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/$basearch repo_gpgcheck=1 gpgcheck=1 enabled=1 # repository key and RabbitMQ package signing key gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey https://github.com/rabbitmq/signing-keys/releases/download/2.0/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 # repository key and RabbitMQ package signing key gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 ## ## RabbitMQ server ## [rabbitmq_server] name=rabbitmq_server baseurl=https://packagecloud.io/rabbitmq/rabbitmq-server/el/7/$basearch repo_gpgcheck=1 gpgcheck=0 enabled=1 # repository key and RabbitMQ package signing key gpgkey=https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 [rabbitmq_server-source] name=rabbitmq_server-source baseurl=https://packagecloud.io/rabbitmq/rabbitmq-server/el/7/SRPMS repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300'>/etc/yum.repos.d/rabbitmq.repo yum update -y yum -q makecache -y --disablerepo='*' --enablerepo='rabbitmq_erlang' --enablerepo='rabbitmq_server' yum install socat logrotate -y # 官方文档此处指定了仓库,但是CentOS7不支持,就用下面指令吧 yum install erlang rabbitmq-server -y
安装插件
rabbitmq-plugins enable rabbitmq_management rabbitmq-plugins enable rabbitmq_tracing
配置guest账号
默认情况下guest是不能远程登陆的,这里是开发环境,修改下。从3.8开始,rabbitmq的配置文件发生改变,一个是没有了默认的配置文件,另外配置文件的格式也发生了改变。对于前者,可以参见官方example:'loopback_users.guest = false'>/etc/rabbitmq/rabbitmq.conf
启动
systemctl enable --now rabbitmq-server
登陆
这时使用浏览器访问15672端口,guest/guest登陆即可
生产环境集群版
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~