首页 > 系统相关 >Ubuntu下安装RabbitMQ

Ubuntu下安装RabbitMQ

时间:2023-01-25 20:46:25浏览次数:63  
标签:sudo cloudsmith gpg rabbitmq RabbitMQ https Ubuntu 安装

  • 设置Erlang仓库

curl -1sLf \
  'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/setup.deb.sh' \
  | sudo -E bash
  • 设置rabbitmq仓库

curl -1sLf \
  'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/setup.deb.sh' \
  | sudo -E bash 
#!/usr/bin/sh

sudo apt-get install curl gnupg apt-transport-https -y

## Team RabbitMQ's main signing key
curl -1sLf "https://keys.openpgp.org/vks/v1/by-fingerprint/0A9AF2115F4687BD29803A206B73A36E6026DFCA" | sudo gpg --dearmor | sudo tee /usr/share/keyrings/com.rabbitmq.team.gpg > /dev/null
## Cloudsmith: modern Erlang repository
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg > /dev/null
## Cloudsmith: RabbitMQ repository
curl -1sLf https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg > /dev/null

## Add apt repositories maintained by Team RabbitMQ
sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF
## Provides modern Erlang/OTP releases
##
deb [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main
deb-src [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.E495BB49CC4BBE5B.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/deb/ubuntu bionic main

## Provides RabbitMQ
##
deb [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
deb-src [signed-by=/usr/share/keyrings/io.cloudsmith.rabbitmq.9F4587F226208342.gpg] https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/deb/ubuntu bionic main
EOF

## Update package indices
sudo apt-get update -y

## Install Erlang packages
sudo apt-get install -y erlang-base \
                        erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \
                        erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \
                        erlang-runtime-tools erlang-snmp erlang-ssl \
                        erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl

## Install rabbitmq-server and its dependencies
sudo apt-get install rabbitmq-server -y --fix-missing
  • 运行RabbitMQ 服务

systemctl start rabbitmq-server
  • 起动 Management Plugin

rabbitmq-plugins enable rabbitmq_management
  • 创建登录用户并设置权限

# create a user
rabbitmqctl add_user full_access s3crEt
# tag the user with "administrator" for full management UI and HTTP API access
rabbitmqctl set_user_tags full_access administrator


来自为知笔记(Wiz)

标签:sudo,cloudsmith,gpg,rabbitmq,RabbitMQ,https,Ubuntu,安装
From: https://www.cnblogs.com/baiyifengyun/p/17067254.html

相关文章

  • 在不受支持的 Mac 上安装 macOS Ventura、Monterey、Big Sur (OpenCore Legacy Patche
    请访问原文链接:https://sysin.org/blog/install-macos-13-on-unsupported-mac/,查看最新版。原创作品,转载请保留出处。作者主页:www.sysin.org随着OpenCoreLegacyPatch......
  • linux 安装mysql
    1下载mysqlwgethttps://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.41-linux-glibc2.12-x86_64.tar.gz2groupaddmysql添加用户组useradd-r-gmysql......
  • 2、python编辑器的选择安装与配置(pycharm和jupyter)
    1、pycharm首先创建一个新的项目,下边会有解释器的选择,因为已经创建了pytorch的conda环境,所以可以直接选择已存在的pytorch环境下的python文件  2、点击pythonconsol......
  • 利用Github Actions定制编译自己的Padavan固件,小白也可轻松上手,无需安装编译环境
    编译时间大概是20-30分钟左右,不同型号的固件时间不同。源码的登录IP:192.168.2.1用户名/密码:admin/adminwifi密码:1234567890交流群:1020793396教程开始:首先打开 ......
  • 老毛子Padavan一键安装LNMP后部署自建网站教程
    老毛子Padavan一键安装LNMP后部署自建网站教程(例子:mayswind的Aria-Ng新Web前端)一、启用nginx+mysql+php环境<ignore_js_op> 启动无报错,继续下面操作二、新建网站文件......
  • Ubuntu虚拟机不显示ipv4地址 (虚拟机无法连接网络)
    相信很多朋友都遇到过虚拟机连接不上网络或者说使用ifconfig不显示ipv4网络地址的情况,就想下图一样:  网上请教很多大神都说更改“网络连接”为“NAT模式”,但是试了无......
  • 萤火虫亚马逊电脑端安装教程
    萤火虫亚马逊电脑端安装教程一,关闭电脑防火墙及杀毒软件,最好卸载掉杀毒软件二,下载电脑端,日亚电脑端下载地址:http://jp.ffly88.net美亚电脑端下载地址:http://us.ffly88.net......
  • pytorch环境安装
    1、下载anaconda,这个里面会提供很多包,所以不用下载多余的软件的,比如python2、一定要记住安装路径,后面选项都是默认,下载好之后测试一下,打开anacondaprompt界面,如果左侧括......
  • liunx系统安装Redis详细步骤
    liunx系统安装Redis详细步骤官网下载Redis安装包使用工具将redis安装包拖入liunx系统创建Redis存放目录mkdir/usr/local/redis解压到redis存放目录tar-zxvfred......
  • liunx系统安装JDK环境详细步骤
    Liunx系统安装JDK环境详细步骤一下载liunx版本jdk压缩包进入JDK官方网站下载jdk压缩包。下载前需要登入账户,可以自己注册一个账户!也可以使用本博主提供的网盘下......