问题描述
在Ubuntu下安装rabbitmq出现如下错误:
1 | BOOT FAILED |
rabbitmq version: 3.6.15
erlang version: 21.0
问题解决
erlang支持rabbit mq3.7.7以上版本;
rabbit mq3.6.15 只能用 erlang20.x版本
于是用apt remove 命令卸载掉apt自动下载的版本1
apt-get remove rabbitmq-server
用wget命令下载3.7.7版本1
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.10/rabbitmq-server_3.7.10-1_all.deb
启动rabbitmq命令:1
service rabbitmq-server start
查看状态1
rabbitmqctl status
增加systemctl支持,设置开机自启动1
2
3systemctl enable rabbitmq-server
systemctl stop rabbitmq-server
systemctl start rabbitmq-server