Does RabbitMQ migrate to Windows?

I do not have access to the administrator account in Windows 7. Is there a way to install RabbitMQ and its required Erlang without administrator rights? Somehow portable?

I need to use it in a Piedon Celery project.

Thanks!

+6
source share
1 answer

It is possible. Here is how I did it:

You need to create a portable Erlang and purchase RabbitMQ server files.

  • You can install regular Erlang on another computer, and then copy the entire installation directory to a computer with a limited account. You can use local documents or AppData, for example C:\Users\Limited_Account\AppData\erl5.10.4 (If you do not have access to another computer, you can extract the installation file using 7-Zip, but it will be difficult to fix the paths.)

  • Modify erg.ini in the bin folder with a new path. (By default, erg.ini uses Unix line endings, so it can be thought of as a single line.)

     [erlang] Bindir=C:\\Users\\Limited_Account\\AppData\\erl5.10.4\\erts-5.10.4\\bin Progname=erl Rootdir=C:\\Users\\Limited_Account\\AppData\\erl5.10.4\\erl5.10.4 
  • See if bin \ erl.exe Erlang Shell opens. If you see a crash dump, the path may be wrong. If Visual C ++ Redist. the files have not been previously installed, this will cause a problem with msvcr100.dll, and you will also have to manually copy them, but I do not recommend doing this.

  • Download the zip version of the RabbitMQ server from https://www.rabbitmq.com/install-windows-manual.html and extract it.

  • Set the variable% ERLANG_HOME%. You can enter set ERLANG_HOME="C:\\Users\\Limited_Account\\AppData\\erl5.10.4\" at the command prompt. Alternatively, you can add this line to each .bat in the sbin folder.

  • Now you can use the management scripts in the sbin folder. For example, you can use rabbitmq_server-3.2.4 \ sbin \ rabbitmq-server.bat to start the RabbitMQ server. Obviously, starting a service is not an option because you are not an administrator.

For more information see https://www.rabbitmq.com/install-windows-manual.html

+5
source

Source: https://habr.com/ru/post/957406/


All Articles