需要修改linux主机名,主机名不能为数字 使用命令 hostnamectl set-hostname “主机名“ 然后编辑下hosts文件 vim /etc/hosts , 给127.0.0.1添加hostname 最后保存,重启服务器后启动 rabbitmq 就成功了!