rabbitmq 拒绝启动 [英] rabbitmq refusing to start

查看:33
本文介绍了rabbitmq 拒绝启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 ubuntu 上安装了 rabbitmq 并尝试使用 rabbitmq-server start 启动它,但是,我收到此错误:

激活RabbitMQ插件...0 个插件已激活:名称为rabbit"的节点已经在mybox"上运行诊断:- mybox 上的节点及其端口:[{rabbit,38618},{rabbitmqprelaunch13346,41776}]- 当前节点:rabbitmqprelaunch13346@mybox- 当前节点主目录:/var/lib/rabbitmq- 当前节点 cookie 哈希:8QRKGluOJOcZ4AAkEdFwQg==

所以我尝试使用 service rabbitmq-server restart 停止或重新启动它,但出现以下错误:Restarting rabbitmq-server: RabbitMQ is not running>

服务器的主机名 hostname -s 是 mybox.

如何停止当前正在运行的实例,或者至少如何管理它?我无法访问它,但我无法正确运行 rabbitmq.

谢谢.

解决方案

Rabbitmq 设置为安装后自动启动.我不认为它是使用 service 命令配置运行的.

查看rabbitmq的状态

sudo rabbitmqctl status

停止rabbitmq

sudo rabbitmqctl stop

(再次尝试 status 命令以查看它已停止).要重新启动,推荐的方法是

sudo invoke-rc.d rabbitmq-server start

这些都适用于使用 apt-get 的 vanilla ubuntu 安装

还是不行?

如果您尝试启动或重启rabbitmq 失败,请检查正在运行的进程数.

ps -ef |兔子

应该有 5 个进程以用户 rabbitmq 运行.如果您有更多,特别是当它们以其他用户(例如 root 或您自己的用户)身份运行时,您应该停止这些进程.

最干净的方法可能是重启你的机器.

I have installed rabbitmq on ubuntu and trying to start it using rabbitmq-server start, however, I'm getting this error:

Activating RabbitMQ plugins ...

0 plugins activated:

node with name "rabbit" already running on "mybox"

diagnostics:

- nodes and their ports on mybox: [{rabbit,38618},
                                       {rabbitmqprelaunch13346,41776}]
- current node: rabbitmqprelaunch13346@mybox
- current node home dir: /var/lib/rabbitmq
- current node cookie hash: 8QRKGluOJOcZ4AAkEdFwQg==

so I try to stop it or restart it using service rabbitmq-server restart but I get the following error: Restarting rabbitmq-server: RabbitMQ is not running

The server's host name hostname -s is mybox.

How do I stop the currently running instance, or at least, how do I manage it? I have no access to it and yet I'm not able to run rabbitmq properly.

Thank you.

解决方案

Rabbitmq is set to start automatically after it's installed. I don't think it is configured run with the service command.

To see the status of rabbitmq

sudo rabbitmqctl status

To stop the rabbitmq

sudo rabbitmqctl stop

(Try the status command again to see that it's stopped). To start it again, the recommended method is

sudo invoke-rc.d rabbitmq-server start

These all work with the vanilla ubuntu install using apt-get

Still not working?

If you've tried unsuccessfully to start or restart rabbitmq, check to see how many processes are running.

ps -ef | grep rabbit

There should be 5 processes running as the user rabbitmq. If you have more, particularly if they're running as other users (such as root, or your own user) you should stop these processes.

The cleanest way is probably to reboot your machine.

这篇关于rabbitmq 拒绝启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆