🗒️如何在Linux安装RabbitMQ
2017-10-13
| 2023-7-13
0  |  0 分钟
type
status
date
slug
summary
tags
category
icon
password
标签

安装Erlang

下载Erlang

wget http://www.rabbitmq.com/releases/erlang/erlang-18.2-1.el6.x86_64.rpm

安装Erlang

rpm -ihv erlang-18.2-1.el6.x86_64.rpm

安装RabbitMQ

下载RabbitMQ

wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm

导入key文件

rpm --import <http://www.rabbitmq.com/rabbitmq-signing-key-public.asc>

安装RabbitMQ

yum install -y rabbitmq-server-3.6.6-1.el7.noarch.rpm
报错
error: Failed dependencies: socat is needed by rabbitmq-server-3.6.10-1.el6.noarch
解决
wget <http://www.convirture.com/repos/deps/RHEL/6.x/x86_64/socat-1.7.1.3-1.el6.rf.x86_64.rpm> rpm -ihv socat-1.7.1.3-1.el6.rf.x86_64.rpm #再次安装 rpm -ihv rabbitmq-server-3.6.10-1.el6.noarch.rpm done!

RabbitMQ配置

#启动 ./rabbitmq-server -detached #查看服务状态 ./rabbitmqctl status #关闭服务 ./rabbitmqctl stop #启用网页插件 ./rabbitmq-plugins enable rabbitmq-management #远程访问配置 #添加用户 ./rabbitmqctl add_user user user #添加权限 ./rabbitmqctl set_permissions -p "/" user ".*" ".*" ".*" #修改用户角色 ./rabbitmqctl set_user_tags user administrator #配置 vi ./etc/rabbitmq/rabbitmq.config.example [ {rabbit, [ {tct_listeners, [5672]}, {loopback_users, ["user"]} ]} ]. #访问 http://localhost:15672
done!
DevOps
  • RabbitMQ
  • MQ
  • Linux下运行SpringBoot Jar包Shell脚本Spring Boot 采用Sharding-JDBC 实现Mybatis的分库分表功能
    目录