[rabbitmq-discuss] Identifying TCP Listeners.
Adam Tauno Williams
awilliam at whitemice.org
Tue Apr 17 11:10:40 BST 2012
On Mon, 2012-04-16 at 15:45 +0100, Matthias Radestock wrote:
> The above configuration is invalid. The entry should be
> {kernel, [{inet_dist_use_interface, {127,0,0,1}}]}
Ok
> The fact that rabbit started up fine suggests that it didn't read the
> config at all. Check the broker start up log, which should contain the line
> config file(s) : /etc/rabbitmq/rabbitmq.config
The startup_log contains -
node : rabbit at workstation
app
descriptor : /usr/lib/rabbitmq/lib/rabbitmq_server-2.7.0/sbin/../ebin/rabbit.app
home dir : /var/lib/rabbitmq
config file(s) : /etc/rabbitmq/rabbitmq.config
cookie hash : W563d5DpLXI3d5BxbptjVw==
log : /var/log/rabbitmq/rabbit at workstation.log
sasl log : /var/log/rabbitmq/rabbit at workstation-sasl.log
database dir : /var/lib/rabbitmq/mnesia/rabbit at workstation
erlang version : 5.9
But adding the above the config file makes Rabbit unable to shutdown
properly (if added while the service is running) or unable to start (it
hangs).
> export ERL_EPMD_DIST_BIND=172.0.0.1
This variable doesn't effect what ports are opened.
I added ". /etc/sysconfig/rabbitmq" to the startup file and that file
contains:
export ERL_EPMD_DIST_BIND=127.0.0.1
Something & Erlang still opens all interfaces:
tcp 0.0.0.0:4369 0.0.0.0:* LISTEN 32571/epmd
tcp 127.0.0.1:55672 0.0.0.0:* LISTEN 32603/beam.smp
tcp 0.0.0.0:52445 0.0.0.0:* LISTEN 32603/beam.smp
tcp 127.0.0.1:5672 0.0.0.0:* LISTEN 32603/beam.smp
The config has managed to restric rabbit's service as well as the
management interface.
rabbitmq-server-2.7.0-1.suse.noarch
Linux 3.1.0-1.2-desktop
workstation:~ # cat /etc/rabbitmq/rabbitmq.config
[
{rabbit, {tcp_listeners, [{'127.0.0.1',5672}]},
{collect_statistics_interval, 10000} ] },
{rabbitmq_management, [ {http_log_dir, "/tmp/rabbit-mgmt"} ] },
{rabbitmq_management_agent, [ {force_fine_statistics, true} ] },
{rabbitmq_mochiweb, [ {listeners, [{mgmt, [{port, 55672},
{ip, "127.0.0.1"}]}]},
{default_listener, [{port, 60000} ] } ] }
].
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120417/df84e33f/attachment.pgp>
More information about the rabbitmq-discuss
mailing list