Discussion:
[rabbitmq-users] running Rabbitmq-server as a windows service
Jeremy Herman
2014-11-14 19:08:11 UTC
Permalink
See Run RabbitMQ as a Service on
http://www.rabbitmq.com/install-windows.html.
Environment variables can be used but that requires service
*reinstallation*
http://www.rabbitmq.com/configure.html#customise-windows-environment
Michael, do you have an example of this? How to 'reinstall' when it is
already running as a windows service so that it picks up new environment
variables?
In the windows services, environment variables cannot be used.
So, I cannot start the rabbitmq-server.bat file in my windows
service.
But, I need to start the broker in the background and it should
be running in the background as much as the computer(server)
is running.
One more thing, I need to run the broker on a server and when I log
off from the server, all my open applications would be closed
forcefully, But, windows services that are created by me would
continue it's running.
How can I use the broker as a windows service?
See Run RabbitMQ as a Service on
http://www.rabbitmq.com/install-windows.html.
Environment variables can be used but that requires service
*reinstallation*
http://www.rabbitmq.com/configure.html#customise-windows-environment
http://www.rabbitmq.com/windows-quirks.html
If you need to run RabbitMQ in the background from your own program,
this is a general Windows operations question, which we can't offer
help with on this list.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeremy Herman
2014-11-14 19:24:02 UTC
Permalink
Figured it out. I was running rabbit-server vs rabbit-service.
See Run RabbitMQ as a Service on
http://www.rabbitmq.com/install-windows.html.
Environment variables can be used but that requires service
*reinstallation*
http://www.rabbitmq.com/configure.html#customise-windows-environment
Michael, do you have an example of this? How to 'reinstall' when it is
already running as a windows service so that it picks up new environment
variables?
In the windows services, environment variables cannot be used.
So, I cannot start the rabbitmq-server.bat file in my windows
service.
But, I need to start the broker in the background and it should
be running in the background as much as the computer(server)
is running.
One more thing, I need to run the broker on a server and when I log
off from the server, all my open applications would be closed
forcefully, But, windows services that are created by me would
continue it's running.
How can I use the broker as a windows service?
See Run RabbitMQ as a Service on
http://www.rabbitmq.com/install-windows.html.
Environment variables can be used but that requires service
*reinstallation*
http://www.rabbitmq.com/configure.html#customise-windows-environment
http://www.rabbitmq.com/windows-quirks.html
If you need to run RabbitMQ in the background from your own program,
this is a general Windows operations question, which we can't offer
help with on this list.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Klishin
2014-11-14 20:21:31 UTC
Permalink
Michael, do you have an example of this? How to 'reinstall' when
it is already running as a windows service so that it picks up new
environment variables?
There's an uninstaller, search for "RabbitMQ" in the start menu. Then install it again. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jeremy Herman
2014-11-14 22:11:44 UTC
Permalink
Hi Michael,

I saw that. Thanks! However my service needs to run that command, and my
service is ran under the "Local Service" account. Attempting to run that
command under the service gives me the following error:

RabbitMQ: Could not start erlang service "RabbitMQ"with commandline ["C:\Program
Files\erl6.1\erts-6.1\bin\erl.exe" -service_event ErlSrv_RabbitMQ -nohup -sname
***@WIN7X64ENT-0 -pa "C:\\Program Files (x86)\\RabbitMQ
Server\\rabbitmq_server-3.3.4\\sbin\\..\\ebin" -boot start_sasl -s rabbit
boot -config
"C:\\Windows\\system32\\config\\systemprofile\\AppData\\Roaming\\RabbitMQ\\rabbitmq"
+W w +A30 +P 1048576 -kernel inet_default_connect_options "[{nodelay,true}]"
-sasl errlog_type error -sasl sasl_error_logger false -rabbit
error_logger {file,\""C:/Windows/system32/config/systemprofile/AppData/
Roaming/RabbitMQ/log/***@WIN7X64ENT-0.log"\"} -rabbit sasl_error_logger
{file,\""C:/Windows/system32/config/systemprofile/AppData/Roaming/RabbitMQ/
log/***@WIN7X64ENT-0-sasl.log"\"} -rabbit enabled_plugins_file \""C:
/Windows/system32/config/systemprofile/AppData/Roaming/RabbitMQ/
enabled_plugins"\" -rabbit plugins_dir \""C:/Program Files (x86)/RabbitMQ
Server/rabbitmq_server-3.3.4/sbin/../plugins"\" -rabbit plugins_expand_dir
\""C:/Windows/system32/config/systemprofile/AppData/Roaming/RabbitMQ/db/
***@WIN7X64ENT-0-plugins-expand"\" -rabbit windows_service_config \""C:
/Windows/system32/config/systemprofile/AppData/Roaming/RabbitMQ/rabbitmq"\"
-os_mon start_cpu_sup false -os_mon start_disksup false -os_mon
start_memsup false -mnesia dir \""C:/Windows/system32/config/systemprofile/
AppData/Roaming/RabbitMQ/db/***@WIN7X64ENT-0-mnesia"\" -kernel
inet_dist_listen_min 25672 -kernel inet_dist_listen_max 25672 ].
Post by Michael Klishin
Michael, do you have an example of this? How to 'reinstall' when
it is already running as a windows service so that it picks up new
environment variables?
There's an uninstaller, search for "RabbitMQ" in the start menu. Then
install it again.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...