service rabbitmq-server start启动失败
程序员文章站
2022-07-10 20:19:32
...
问题如下
- 执行
service rabbitmq-server start
出现Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err} rabbitmq-server.
- 具体如下
[[email protected] rabbitmq]# service rabbitmq-server start
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err}
rabbitmq-server.
问题解决
查看rabbitmq状态
/etc/init.d/rabbitmq-server status
结果如下
[[email protected] rabbitmq]# /etc/init.d/rabbitmq-server status
Status of node [email protected] ...
Error: unable to connect to node [email protected]: nodedown
查看日志
cat /var/log/rabbitmq/startup_log
结果如下
[[email protected] ~]# cat /var/log/rabbitmq/startup_log
ERROR: epmd error for host backbay2: timeout (timed out)
分析问题
- 可以发现问题提示的错误是Host backbay2(youhostname)的错误
解决办法
输入
vi /etc/rabbitmq/rabbitmq-env.conf
插入这条语句
NODENAME=[email protected]
按ESC然后输入:wq
保存离开
启动测试
启动
service rabbitmq-server start
关闭
service rabbitmq-server stop
开启界面管理
rabbitmq-plugins enable rabbitmq_management
重新启动
service rabbitmq-server restart
设置开机自启
chkconfig rabbitmq-server on
防火墙开放15672端口
/sbin/iptables -I INPUT -p tcp --dport 15672 -j ACCEPT
/etc/rc.d/init.d/iptables save
推荐阅读
-
docker.service启动失败:Unit not found的原因及解决办法
-
关于xampp中无法启动mysql,Attempting to start MySQL service...的解决办法!!
-
启动docker服务的时候报错:Failed to start docker.service: Unit docker.service is masked.
-
The nexus service was launched, but failed to start. --nexus启动报错完美解决
-
Mysql“service mysqld start”无法启动
-
centos启动rpcbind报错Job rpcbind.service/start failed with result 'dependency'
-
Linux启动某个服务报错:Failed to start xxx.service: Unit not found
-
service rabbitmq-server start启动失败
-
FAILED TO START,zookeeper启动失败
-
Mac zookeeper3.61启动失败-FAILED TO START