且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

RabbitMQ在Debian Stretch上安装/启动失败

更新时间:2023-12-01 22:32:40

好的,这很粗糙:


  1. 确保您的主机名正确。您可以运行

  1. Make sure your hostname is correct. you can run

sudo主机名--file / etc / hostname

sudo hostname --file /etc/hostname

来确保。如果没有更改,请更改 / etc / hostname abcd 应该足够了。

to make sure. If it isn't change it by changing /etc/hostname. a.b.c.d should be enough.

如果您位于公司防火墙的后面 rabbitmq 将无法连接到所有接口。更改 /etc/rabbitmq/rabbitmq-env.conf ,设置 NODE = rabbit @ localhost

If you're behind a company firewall rabbitmq will fail to connect to all the interfaces. Change /etc/rabbitmq/rabbitmq-env.conf, setting NODE=rabbit@localhost. This is enough for development.

现在,您可以 sudo apt-get install --fix -破碎以完成安装(会抱怨说它预定了更多的东西)。使用 sudo rabbitmqctl status 来确保节点正常运行-如果没有,它将清楚地表明。

Now you can sudo apt-get install --fix-broken to complete the installation (will complain it was scheduled for more stuff). Use sudo rabbitmqctl status to make sure the node is properly running - it will say it clearly if not.