Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos os x上的rabbitmqctl start\应用程序错误:无法连接到节点rabbit@localhost:点头_Macos_Rabbitmq - Fatal编程技术网

Macos os x上的rabbitmqctl start\应用程序错误:无法连接到节点rabbit@localhost:点头

Macos os x上的rabbitmqctl start\应用程序错误:无法连接到节点rabbit@localhost:点头,macos,rabbitmq,Macos,Rabbitmq,我使用命令brew install rabbitmq在OS X上安装了rabbitmq服务器。 当我运行rabbitmqctl start\u app时,我得到以下错误 Starting node rabbit@localhost ... Error: unable to connect to node rabbit@localhost: nodedown DIAGNOSTICS =========== attempted to contact: [rabbit@localhost] ra

我使用命令
brew install rabbitmq
在OS X上安装了rabbitmq服务器。
当我运行
rabbitmqctl start\u app
时,我得到以下错误

Starting node rabbit@localhost ...
Error: unable to connect to node rabbit@localhost: nodedown

DIAGNOSTICS
===========

attempted to contact: [rabbit@localhost]

rabbit@localhost:
  * connected to epmd (port 4369) on localhost
  * epmd reports: node 'rabbit' not running at all
                  other nodes on localhost: ['rabbitmq-cli-50']
  * suggestion: start the node

current node details:
- node name: 'rabbitmq-cli-50@MacAir'
- home dir: /Users/abeer
- cookie hash: S1lhU2Pz5rrKNRd+lGv1og==
这里的问题到底是什么?如何消除它

然后可以使用rabbitmq服务器启动服务器

正如我从评论中了解到的,您需要在后台运行RMQ。为了做到这一点,你可以

sudo ./rabbitmq-server &

您应该使用
sudo

sudorabbitmq服务器启动


我在远程服务器中遇到了这个问题,因为我使用命令设置主机名:

hostnamectl set-hostname controller
但是命令行标题仍然是
localhost

[root@localhost ~]#
因此,我退出远程服务器,然后重新连接它,现在可以使用
rabbitmq服务器了。

运行

rabbitmqctl reset
然后


rabbitmqctl start\u app
这不是启动rabbitmq的方法。查看
/usr/local/sbin
您应该有
rabbitmq服务器
我想在后台运行它。我尝试了
brew服务启动rabbitmq
,但没有成功
rabbitmqctl start