1、Ubuntu默认未添加Rabbit源,需要添加源
nemo@Cynthia:~$ sudo vim /etc/apt/sources.list
添加:deb http:
//www
.rabbitmq.com
/debian/
testing main
保存后执行更新
nemo@Cynthia:~$ sudo apt-get update
2、下载rabbitmq
nemo@Cynthia:~$ sudo apt-get install rabbitmq-server
如果在安装中出现无法下载的错误,需要将rabbitMQ的公钥添加到信任列表中:
wget http:
//www
.rabbitmq.com
/rabbitmq-signing-key-public
.asc
apt-key add rabbitmq-signing-key-public.asc