ubuntu – 仅在localhost上的RabbitMq管理插件

前端之家收集整理的这篇文章主要介绍了ubuntu – 仅在localhost上的RabbitMq管理插件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在RabbitMQ 3.5.7 Ubuntu 16.04上.

我想仅在localhost上实现RabbitMq Management插件,我的想法是使用隧道从我用来连接到我的服务器的计算机上使用SSH连接到RabbitMq管理Web GUI.

我发现这个thread似乎记录了要做的一切.

这是我做的:
我编辑了/etc/rabbitmq/rabbitmq-env.conf,看起来像这样:

export RABBITMQ_CONFIG_FILE="/etc/rabbitmq/rabbitmq.config"
# Defaults to rabbit. This can be useful if you want to run more than one node
# per machine - RABBITMQ_NODENAME should be unique per erlang-node-and-machine
# combination. See the clustering on a single machine guide for details:
# http://www.rabbitmq.com/clustering.html#single-machine
#NODENAME=rabbit

# By default RabbitMQ will bind to all interfaces,on IPv4 and IPv6 if
# available. Set this if you only want to bind to one network interface or#
# address family.
#NODE_IP_ADDRESS=127.0.0.1

# Defaults to 5672.
#NODE_PORT=5672

export RABBITMQ_NODENAME=rabbit@localhost
export RABBITMQ_NODE_IP_ADDRESS=127.0.0.1
export ERL_EPMD_ADDRESS=127.0.0.1

然后我创建并编辑了“/etc/rabbitmq/rabbitmq.config”:

[
        {rabbitmq_management,[
                {listener,[{port,15672},{ip,"127.0.0.1"}]}
        ]},{kernel,[
                {inet_dist_use_interface,{127.0.0.1}}
        ]}
].

我已经启动了一些服务rabbitmq-server reload,service rabbitmq-server stop,service rabbitmq-server start.

那没起效.

我重新启动机器它仍然无法正常工作.

当我做一个sudo lsof -i-n -P时,我看到:

beam 1199 rabbitmq 8u IPv4 13374 0t0 TCP *:25672 (LISTEN)

beam 1199 rabbitmq 9u IPv4 13376 0t0 TCP 127.0.0.1:60223-127.0.0.1:4369 (ESTABLISHED)

beam 1199 rabbitmq 18u IPv4 14714 0t0 TCP 127.0.0.1:5672 (LISTEN)

beam 1199 rabbitmq 19u IPv4 14716 0t0 TCP *:15672 (LISTEN)

在“/var/log/rabbitmq/rabbit@localhost.log”中,我可以看到:

“config file(s) : /etc/rabbitmq/rabbitmq.config (not found)”

解决了,我的错误是:

导出RABBITMQ_CONFIG_FILE =“/ etc / rabbitmq / rabbitmq.config”而不是在“/etc/rabbitmq/rabbitmq-env.conf”中导出RABBITMQ_CONFIG_FILE =“/ etc / rabbitmq / rabbitmq”

没有必要指定文件的扩展名“.config”.

在“/etc/rabbitmq/rabbitmq.config”中,我只是保留:

[
        {rabbitmq_management,]

节点:{kernel,[{inet_dist_use_interface,{127.0.0.1}}]}造成了一些冲突,我把它拿走了,没有进一步的调查.

原文链接:https://www.f2er.com/ubuntu/348283.html

猜你在找的Ubuntu相关文章