gpt4 book ai didi

rabbitmq-server 无法启动 - 无法连接到 epmd/Ubuntu 16.04

转载 作者:行者123 更新时间:2023-12-04 15:30:40 24 4
gpt4 key购买 nike

我遵循了本指南 https://www.rabbitmq.com/install-debian.html并安装了rabbitmq-server。但是,它不会以错误消息开头:

Jul 31 20:29:49 76672.local rabbitmqctl[7519]: attempted to contact: [rabbit@76672]
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: rabbit@76672:
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: * unable to connect to epmd (port 4369) on 76672: badarg (unknown POSIX error)
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: current node details:
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: - node name: 'rabbitmq-cli-30@76672'
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: - home dir: /var/lib/rabbitmq
Jul 31 20:29:49 76672.local rabbitmqctl[7519]: - cookie hash: VwJCJ/LkSvmUKaoPOglCcQ==
Jul 31 20:29:49 76672.local systemd[1]: Failed to start RabbitMQ broker.
Jul 31 20:29:49 76672.local systemd[1]: rabbitmq-server.service: Unit entered failed state.
Jul 31 20:29:49 76672.local systemd[1]: rabbitmq-server.service: Failed with result 'exit-code'.
dpkg: error processing package rabbitmq-server (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for systemd (229-4ubuntu17) ...
Processing triggers for ureadahead (0.100.0-19) ...
Errors were encountered while processing:
rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
altor_work@76672:

我尝试在一个清晰的 Ubuntu 实例上进行此安装,但遇到了同样的错误。我用谷歌搜索了错误消息,似乎我的网络设置有问题 - 我想我应该从默认状态更改一些设置。

知道需要改变什么吗?或者我应该第一次尝试哪种设置?

附言我完全是 Unix 新手。对我来说,它只是一个运行 Python 脚本的云环境。

最佳答案

我通过在文件中设置 HOSTNAME 解决了我的问题 rabbitmq-env.conf .我不知道究竟是什么导致了这个问题。

我的设置:

sudo cat /etc/hostname
76672.localhost

sudo cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntu16.04 ubuntu16
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.1 76672.local

/etc/rabbitmq/rabbitmq-env.conf
# Empty - if the file is empty rabbitmq doesn't start
HOSTNAME=76672.local # With this rabbitmq doesn't start either
HOSTNAME=localhost # With this all works

关于rabbitmq-server 无法启动 - 无法连接到 epmd/Ubuntu 16.04,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45425286/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com