Skip to content

Instantly share code, notes, and snippets.

@marcinantkiewicz
Last active July 30, 2018 18:54
Show Gist options
  • Save marcinantkiewicz/e502f241c728533ce82f to your computer and use it in GitHub Desktop.
Save marcinantkiewicz/e502f241c728533ce82f to your computer and use it in GitHub Desktop.
rabbitmq on localhost
* cofnig origin ref: http://serverfault.com/questions/235669/how-do-i-make-rabbitmq-listen-only-to-localhost
Bugs:
* epmd stays up after rabbitmq-server is stopped. It's shared amond all Erlang instances, so maintainers feel not one packake should kill it.
https://bugzilla.redhat.com/show_bug.cgi?id=1104843
* Erlang has a bug requiring ERL_EPMD_ADDRESS to be specified as IPv6. It seems that, if epmd is built with ipv6, it looses ability to bind with ipv4. Fix traversing from upstream.
https://bugs.launchpad.net/ubuntu/+source/erlang/+bug/1374109
https://github.com/erlang/otp/compare/maint...msantos:epmd-IPv6-node-reg
We run R16B03-1/3.2.4-1
[
{rabbitmq_management, [
{listener, [{port, 15672}, {ip, "127.0.0.1"}]}
]},
{kernel, [
{inet_dist_use_interface,{127,0,0,1}}
]}
].
export RABBITMQ_NODENAME=rabbit@localhost
export RABBITMQ_NODE_IP_ADDRESS=127.0.0.1
export ERL_EPMD_ADDRESS=::ffff:127.0.0.1
## -- Note: location of the config file here should omit the '.config' sufix. rabbitmq-server script will add.
export RABBITMQ_CONFIG_FILE="/etc/rabbitmq/rabbit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment