Hi Liz,<div><br></div><div>I have just done this recently. You also have to change the NODENAME setting in the /etc/rabbitmq/rabbitmq-env file.</div><div><br></div><div>Regards,</div><div>Iain.<br><br><div class="gmail_quote">
On 20 July 2012 20:53, Elizabeth Liao <span dir="ltr"><<a href="mailto:eliao@seegrid.com" target="_blank">eliao@seegrid.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm trying to change the hostname of a machine that is running rabbitmq-server without logging out but I've been unsuccessful so far.<br>
<br>
I've tried the following sequence of commands:<br>
1. rabbitmqctl stop<br>
2. /etc/init.d/rabbitmq-server stop<br>
3. Set hostname in /etc/hosts and /etc/sysconfig/network<br>
4. Set hostname using /bin/hostname<br>
5. /etc/init.d/rabbitmq-server start ends up failing<br>
<br>
The following are the contents of the startup_log file:<br>
Activating RabbitMQ plugins ...<br>
<br>
********************************************************************************<br>
*WARNING* Undefined function ssl:ssl_accept/3<br>
*WARNING* Undefined function unicode:characters_to_binary/3<br>
********************************************************************************<br>
<br>
4 plugins activated:<br>
* amqp_client-2.8.2<br>
* erlando-2.8.2<br>
* rabbitmq_federation-2.8.2<br>
* rabbitmq_shovel-2.8.2<br>
<br>
ERROR: epmd error for host "OldHostname": nxdomain (non-existing domain)<br>
------------------------<br>
Additionally, env hostname correctly returns the the new hostname. Is there something that needs to be restarted or is the old hostname getting cached somewhere? Thanks<br>
<br>
I am running rabbitmq-server-2.8.2 on FC11<br>
<br>
Liz<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div>