我有一台运行 jessie 的 digital ocean VPS。我尝试rabbitmq-server
在机器上安装,但无法启动服务器。
/etc/init.d/rabbitmq-server start
Starting rabbitmq-server (via systemctl): rabbitmq-server.serviceJob for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details. failed!`
systemctl status rabbitmq-server.service
● rabbitmq-server.service - LSB: Enable AMQP service provided by RabbitMQ broker
Loaded: loaded (/etc/init.d/rabbitmq-server)
Active: failed (Result: exit-code) since Mon 2015-10-19 04:36:33 EDT; 2min 33s ago
Process: 16172 ExecStart=/etc/init.d/rabbitmq-server start (code=exited, status=1/FAILURE)
Oct 19 04:35:22 saltcode.in su[16183]: + ??? root:rabbitmq
Oct 19 04:35:22 saltcode.in su[16183]: pam_unix(su:session): session opened for user rabbitmq by (uid=0)
Oct 19 04:36:00 saltcode.in su[16236]: Successful su for rabbitmq by root
Oct 19 04:36:00 saltcode.in su[16236]: + ??? root:rabbitmq
Oct 19 04:36:00 saltcode.in su[16236]: pam_unix(su:session): session opened for user rabbitmq by (uid=0)
Oct 19 04:36:33 saltcode.in rabbitmq-server[16172]: Starting message broker: rabbitmq-serverFAILED - check /var/log/rabbitmq/startup_\{log, _err\} ... (warning).
Oct 19 04:36:33 saltcode.in rabbitmq-server[16172]: failed!
Oct 19 04:36:33 saltcode.in systemd[1]: rabbitmq-server.service: control process exited, code=exited status=1
Oct 19 04:36:33 saltcode.in systemd[1]: Failed to start LSB: Enable AMQP service provided by RabbitMQ broker.
Oct 19 04:36:33 saltcode.in systemd[1]: Unit rabbitmq-server.service entered failed state.
这些是来自日志的行
/var/log/rabbitmq$ tail *
==> startup_err <==
==> startup_log <==
ERROR: epmd error for host saltcode: timeout (timed out)
答案1
如果你ERROR: epmd error for host saltcode: timeout (timed out)
在 rabbitmq 启动日志中看到此信息,则表示你的rabbitmq
实例无法找到Erland 端口映射守护进程 (epmd)。的默认端口epmd
是4369
。
timeout
如果日志中出现错误,则应通过运行检查日志中的主机名是否解析ping hostname
。 如果主机名无法解析,则需要编辑文件/etc/hosts
并为主机添加条目。