按照官网步骤安装
1.执行成功
sudo apt-get install curl gnupg apt-transport-https -y
2.下面三个都执行失败
## 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 ## Community mirror of Cloudsmith: modern Erlang repository curl -1sLf https://ppa1.novemberain.com/gpg.E495BB49CC4BBE5B.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/rabbitmq.E495BB49CC4BBE5B.gpg > /dev/null ## Community mirror of Cloudsmith: RabbitMQ repository curl -1sLf https://ppa1.novemberain.com/gpg.9F4587F226208342.key | sudo gpg --dearmor | sudo tee /usr/share/keyrings/rabbitmq.9F4587F226208342.gpg > /dev/null
3.这步没有执行
## Add apt repositories maintained by Team RabbitMQ sudo tee /etc/apt/sources.list.d/rabbitmq.list <<EOF
4.提示无法创建临时文件,执行失败
## Update package indices sudo apt-get update -y
5.执行成功
## 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
6.执行成功
## Install rabbitmq-server and its dependencies sudo apt-get install rabbitmq-server -y --fix-missing
7.安装成功后默认启动
systemctl start rabbitmq-server
systemctl stop rabbitmq-server
8.配置文件rabbitmq.conf.example,从下载github,拷贝到/etc/rabbitmq/rabbitmq.conf
## Uncomment the following line if you want to allow access to the ## guest user from anywhere on the network. loopback_users.guest = false
9.网页访问(management模块开启),可以在服务关闭下,然后启动。
rabbitmq-plugins enable rabbitmq_management
浏览器ip:15672
输入guest/guest
标签:gpg,##,sudo,apt,rabbitmq,erlang,安装 From: https://www.cnblogs.com/anenyang/p/17601498.html