首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >RabbitMQ死了

RabbitMQ死了
EN

Stack Overflow用户
提问于 2022-08-05 15:16:04
回答 1查看 254关注 0票数 0

实际上,我不知道如何在我的头衔中很好地描述我的问题。我现在面临的问题是,我在本地安装了一个通过Homebrew (Mac)安装的RabbitMQ,它突然就死了。我突然无法向队列发送消息。不幸的是,我无法发布错误消息,因为我尝试了其他几个步骤,包括重置、卸载和重新安装兔子。重新安装之后,我无法启动兔子服务器;在此之后,它会被卡住:

代码语言:javascript
复制
sudo rabbitmq-server start
Password:
2022-08-05 11:14:17.972308-04:00 [info] <0.221.0> Feature flags: list of feature flags found:
2022-08-05 11:14:17.979492-04:00 [info] <0.221.0> Feature flags:   [x] classic_mirrored_queue_version
2022-08-05 11:14:17.979531-04:00 [info] <0.221.0> Feature flags:   [x] implicit_default_bindings
2022-08-05 11:14:17.979546-04:00 [info] <0.221.0> Feature flags:   [x] maintenance_mode_status
2022-08-05 11:14:17.979568-04:00 [info] <0.221.0> Feature flags:   [x] quorum_queue
2022-08-05 11:14:17.979583-04:00 [info] <0.221.0> Feature flags:   [x] stream_queue
2022-08-05 11:14:17.979599-04:00 [info] <0.221.0> Feature flags:   [x] user_limits
2022-08-05 11:14:17.979611-04:00 [info] <0.221.0> Feature flags:   [x] virtual_host_metadata
2022-08-05 11:14:17.979672-04:00 [info] <0.221.0> Feature flags: feature flag states written to disk: yes
2022-08-05 11:14:18.203961-04:00 [notice] <0.44.0> Application syslog exited with reason: stopped
2022-08-05 11:14:18.204012-04:00 [notice] <0.221.0> Logging: switching to configured handler(s); following messages may not be visible in this log output

  ##  ##      RabbitMQ 3.10.7
  ##  ##
  ##########  Copyright (c) 2007-2022 VMware, Inc. or its affiliates.
  ######  ##
  ##########  Licensed under the MPL 2.0. Website: https://rabbitmq.com

  Erlang:      25.0.3 [jit]
  TLS Library: OpenSSL - OpenSSL 1.1.1q  5 Jul 2022

  Doc guides:  https://rabbitmq.com/documentation.html
  Support:     https://rabbitmq.com/contact.html
  Tutorials:   https://rabbitmq.com/getstarted.html
  Monitoring:  https://rabbitmq.com/monitoring.html

  Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log
        /usr/local/var/log/rabbitmq/rabbit@localhost_upgrade.log
        <stdout>

  Config file(s): (none)

  Starting broker... completed with 7 plugins.

在这之后,它就会永远挂着。

我想把兔子从我的电脑上完全卸载,然后重新安装;当我第一次安装它的时候,它就像一种魅力,但是由于它们的某种原因,有些东西已经鼓起来了。有人能帮我吗?

而且,是的,显然要做的是brew rm rabbitmq,但这正是我陷入这种情况的原因。不可能那么简单。

EN

回答 1

Stack Overflow用户

发布于 2022-08-05 16:01:11

我让它起作用了。这些步骤的一些组合起了作用:

  1. 更改服务的权限:

代码语言:javascript
复制
sudo chown -R $(whoami) $(brew --prefix)/*

  1. 重新发布launchctl配置:

代码语言:javascript
复制
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.rabbitmq.plist          

launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.rabbitmq.plist

  1. 重新启动服务:

代码语言:javascript
复制
brew services restart rabbitmq        

然后起作用了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73251941

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档