Hi Emile,<br><br><div class="gmail_quote">On Wed, Mar 14, 2012 at 9:57 PM, Emile Joubert <span dir="ltr">&lt;<a href="mailto:emile@rabbitmq.com">emile@rabbitmq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Brian,<br>
<div class="im"><br>
On 14/03/12 00:26, Brian Jing wrote:<br>
&gt; =INFO REPORT==== 14-Mar-2012::11:05:07 ===<br>
&gt; started TCP Listener on [::]:4446<br>
<br>
</div>Where does the config for this port number (4446) come from? </blockquote><div><br>This comes from the NODE_PORT variable defined in the environment config file. since the existing 1.8.0 already uses 5672 as the default port,� I need a different port to be able to run this second instance of rabbitmq on the same machine. Does this make sense?<br>
�<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Are you<br>
sure the correct config file is being read during broker startup? �What<br>
does the broker startup banner say?<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>I&#39;m pretty sure that the correct config files are being used. I changed the default env config file from /etc/rabbitmq/rabbitmq-env.conf to /etc/rabbitmq/rabbitmq_env.conf before I rebuilt the source (only thing I changed in the source). I know this env config file is being used because rabbitmq 2.7.1 generates separate log files for the SERVICENAME I specified and rabbitmq 2.7.1 listens to the port I specified in the env file as well.<br>
<br>The content of my rabbitmq_env.conf is as follows:<br><br><span style="color:rgb(0,102,0)"># cat /etc/rabbitmq/rabbitmq_env.conf</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">SERVICENAME=RabbitMQ-new</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">NODENAME=rabbit-new@$HOSTNAME</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">NODE_PORT=4446</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">CONFIG_FILE=/etc/rabbitmq/rabbitmq-2.7.1.config</span><br style="color:rgb(0,102,0)">
<br>Content of my new rabbitmq.conf:<br><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)"># cat /etc/rabbitmq/rabbitmq-2.7.1.config</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">[</span><br style="color:rgb(0,102,0)">

<span style="color:rgb(0,102,0)">��� {rabbit, [</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">������� {ssl_listeners, [{&quot;0.0.0.0&quot;,4445}]},</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">������� {ssl_options, [</span><br style="color:rgb(0,102,0)">

<span style="color:rgb(0,102,0)">����������� {cacertfile,&quot;/etc/rabbitmq/certs/testca/cacert.pem&quot;},</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">����������� {certfile,&quot;/etc/rabbitmq/certs/server/cert.pem&quot;},</span><br style="color:rgb(0,102,0)">

<span style="color:rgb(0,102,0)">����������� {keyfile,&quot;/etc/rabbitmq/certs/server/key.pem&quot;},</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">����������� {verify, verify_peer},</span><br style="color:rgb(0,102,0)">

<span style="color:rgb(0,102,0)">����������� {fail_if_no_peer_cert, false}</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">������� ]}</span><br style="color:rgb(0,102,0)"><br style="color:rgb(0,102,0)">

<span style="color:rgb(0,102,0)">��� ]}</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">].</span><br><br>Here is the rabbitmq startup information:<br><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)"># /opt/rabbitmq-server-2.7.1/sbin/rabbitmq-server </span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">Activating RabbitMQ plugins ...</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">0 plugins activated:</span><br style="color:rgb(0,102,0)"><br style="color:rgb(0,102,0)">
<br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">+---+�� +---+</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">|�� |�� |�� |</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">|�� |�� |�� |</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">|�� |�� |�� |</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">|�� +---+�� +-------+</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">|������������������ |</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">| RabbitMQ� +---+�� |</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">|���������� |�� |�� |</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">|�� v2.7.1� +---+�� |</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">|������������������ |</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">+-------------------+</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">AMQP 0-9-1 / 0-9 / 0-8</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">Copyright (C) 2007-2011 VMware, Inc.</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">Licensed under the MPL.� See <a href="http://www.rabbitmq.com/">http://www.rabbitmq.com/</a></span><br style="color:rgb(0,102,0)">
<br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">node���������� : rabbit-new@ServerA</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">app descriptor : /opt/rabbitmq-server-2.7.1/sbin/../ebin/rabbit.app</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">home dir������ : /root</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">config file(s) : (none)</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">cookie hash��� : </span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">log����������� : /var/log/rabbitmq/rabbit-new@</span><span style="color:rgb(0,102,0)">ServerA</span><span style="color:rgb(0,102,0)">.log</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">sasl log������ : /var/log/rabbitmq/rabbit-new@</span><span style="color:rgb(0,102,0)">ServerA</span><span style="color:rgb(0,102,0)">-sasl.log</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">database dir�� : /var/lib/rabbitmq/mnesia/rabbit-new@</span><span style="color:rgb(0,102,0)">ServerA</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">erlang version : 5.7.4</span><br style="color:rgb(0,102,0)">
<br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">-- rabbit boot start</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting file handle cache server������������������������������������ ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting worker pool������������������������������������������������� ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting database���������������������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting codec correctness check������������������������������������� ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">-- external infrastructure ready</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting plugin registry��������������������������������������������� ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting auth mechanism cr-demo�������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting auth mechanism amqplain������������������������������������� ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting auth mechanism plain���������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting statistics event manager������������������������������������ ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting logging server���������������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting exchange type direct���������������������������������������� ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting exchange type fanout���������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting exchange type headers��������������������������������������� ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting exchange type topic����������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">-- kernel ready</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting alarm handler����������������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting node monitor������������������������������������������������ ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting cluster delegate�������������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting guid generator���������������������������������������������� ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting memory monitor���������������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">-- core initialized</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting empty DB check���������������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting exchange, queue and binding recovery������������������������ ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting mirror queue slave sup�������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting adding mirrors to queues������������������������������������ ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">-- message delivery logic ready</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting error log relay��������������������������������������������� ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting networking�������������������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<span style="color:rgb(0,102,0)">starting direct_client����������������������������������������������� ...done</span><br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">starting notify cluster nodes���������������������������������������� ...done</span><br style="color:rgb(0,102,0)">
<br style="color:rgb(0,102,0)"><span style="color:rgb(0,102,0)">broker running</span><br style="color:rgb(0,102,0)"><br>Cheers,<br><br>Brian<br></div></div>