安装rabbit以后输入命令启动
systemctl start rabbitmq-server.service
然后报错:
Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.
输入命令:journalctl -xe查看详细信息
[root@mandao software]# jourznalctl -xe 8月 08 22:52:06 mandao systemd[1]: Starting RabbitMQ broker... -- Subject: Unit rabbitmq-server.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit rabbitmq-server.service has begun starting up. 8月 08 22:52:09 mandao rabbitmq-server[124890]: ERROR: epmd error for host mandao: address (cannot connect to host/port) 8月 08 22:52:09 mandao systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE
错误信息 ERROR: epmd error for host mandao: address (cannot connect to host/port)
分析问题:报错的意思大概是连不到主机rap的4369端口
解决办法:在/etc/hosts中加入如下内容,重启服务,问题解决
192.168.159.188 mandao