<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">How can I modify rabbitmq-server.bat to launch the management plugin on a specific port that is not 55672? I want to accomplish this in the batch file and not in a config file.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m running rabbitmq 2.5.1 server on windows 7. The server and client are both happily running and so I’m turning my attention to the management plugin. I modified rabbitmq-server.bat to include some commands for mochiweb plugin, the
important part being “<b>-rabbitmq_mochiweb port 55673 ^</b>“ in place of RABBITMQ_SERVER_START_ARGS. When the batch is run it fires the plugin up but on 55672 as if it’s ignoring the parameters. I am using the 2.5.1 version of the 6 plugin files need for
the management plugin. The modified part looks like below:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">"!ERLANG_HOME!\bin\erl.exe" ^<o:p></o:p></p>
<p class="MsoNormal">!RABBITMQ_EBIN_PATH! ^<o:p></o:p></p>
<p class="MsoNormal">-noinput ^<o:p></o:p></p>
<p class="MsoNormal">-boot "!RABBITMQ_BOOT_FILE!" ^<o:p></o:p></p>
<p class="MsoNormal">!RABBITMQ_CONFIG_ARG! ^<o:p></o:p></p>
<p class="MsoNormal">-sname !RABBITMQ_NODENAME! ^<o:p></o:p></p>
<p class="MsoNormal">-s rabbit ^<o:p></o:p></p>
<p class="MsoNormal">+W w ^<o:p></o:p></p>
<p class="MsoNormal">+A30 ^<o:p></o:p></p>
<p class="MsoNormal">+P 1048576 ^<o:p></o:p></p>
<p class="MsoNormal">-kernel inet_default_connect_options "[{nodelay, true}]" ^<o:p></o:p></p>
<p class="MsoNormal">!RABBITMQ_LISTEN_ARG! ^<o:p></o:p></p>
<p class="MsoNormal">-kernel error_logger {file,\""!LOGS:\=/!"\"} ^<o:p></o:p></p>
<p class="MsoNormal">!RABBITMQ_SERVER_ERL_ARGS! ^<o:p></o:p></p>
<p class="MsoNormal">-sasl errlog_type error ^<o:p></o:p></p>
<p class="MsoNormal">-sasl sasl_error_logger {file,\""!SASL_LOGS:\=/!"\"} ^<o:p></o:p></p>
<p class="MsoNormal">-os_mon start_cpu_sup true ^<o:p></o:p></p>
<p class="MsoNormal">-os_mon start_disksup false ^<o:p></o:p></p>
<p class="MsoNormal">-os_mon start_memsup false ^<o:p></o:p></p>
<p class="MsoNormal">-mnesia dir \""!RABBITMQ_MNESIA_DIR!"\" ^<o:p></o:p></p>
<p class="MsoNormal"><b>-rabbitmq_mochiweb port 55673 ^<o:p></o:p></b></p>
<p class="MsoNormal">!STAR!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I was running server 2.4.1 the command used was “<b>-rabbit_mochiweb port 55673 ^</b>“ which would correctly launch the management plugin on
<a href="http://localhost:55673/">http://localhost:55673/</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<br>
Jason Klassen<span style="mso-fareast-language:EN-CA"> <span lang="EN-US"><o:p></o:p></span></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>