更新时间:2023-12-01 22:28:40
好吧,这是一个粗略的:
OK, this was a rough one:
确保您的主机名正确.你可以跑
Make sure your hostname is correct. you can run
sudo 主机名 --file/etc/hostname
以确保.如果不是通过更改 /etc/hostname
来更改它.a.b.c.d
应该足够了.
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-broken
来完成安装(会抱怨它被安排了更多的东西).使用 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.