我是这样安装的:
1.sudo echo“debhttp://www.rabbitmq.com/debian测试主要内容”>> /etc/apt/sources.list
2.wgethttps://www.rabbitmq.com/rabbitmq-signing-key-public.asc
3.sudo apt-key 添加 rabbitmq-signing-key-public.asc
4.sudo apt-get 更新
5.sudo apt-get 安装 rabbitmq-服务器
第 5 点之后我收到以下错误。
* Starting message broker rabbitmq-server * FAILED - check /var/log/rabbitmq/startup_\{log, _err\}
[fail]
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
dpkg: error processing package rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)