Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Path error while running rabbitmq-server

   C:\rabbitmq-server-3.6.0\scripts>rabbitmq-plugins enable rabbitmq_management
'realpath' is not recognized as an internal or external command,
operable program or batch file.
init terminating in do_boot ()
'realpath' is not recognized as an internal or external command,
operable program or batch file.
init terminating in do_boot ()
'realpath' is not recognized as an internal or external command,
operable program or batch file.
{"init terminating in do_boot",{undef,[{rabbit_plugins_main,start,[],[]},{init,start_it,1,[{file,"init.erl"},{line,1053}]},{init,start_em,1[{file,"init.erl"},{line,1034}]}]}}
init terminating in do_boot ()

C:\rabbitmq-server-3.6.0\scripts>rabbitmq-server

realpath' is not recognized as an internal or external command,
operable program or batch file.
{"init terminating in do_boot",{undef,[{rabbit_prelaunch,start,[],[]},{init,start_it,1,[{file,"init.erl"},{line,1053}]},{init,start_em,1[{file,"init.erl"},{line,1034}]}]}}
Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()

I am using erlang version 7.0 and rabbitmq 3.6.0

I have set environment variables as follows

ERLANG_HOME - C:\Program Files\erl7.0
RABBITMQ_SERVER - C:\rabbitmq-server-3.6.0

Please Help

like image 993
abhishek sharma Avatar asked Feb 11 '16 15:02

abhishek sharma


People also ask

How do I connect to RabbitMQ server?

In order for a client to interact with RabbitMQ it must first open a connection. This process involves a number of steps: Application configures the client library it uses to use a certain connection endpoint (e.g. hostname and port) The library resolves the hostname to one or more IP addresses.


2 Answers

For windows

  1. Open command prompt
  2. change directory to C:\Program Files\RabbitMQ Server\rabbitmq_server- 3.7.12\sbin
  3. type command rabbitmq-plugins enable rabbitmq_management
like image 184
rupesh Avatar answered Nov 01 '22 17:11

rupesh


There are likely some additional steps you need to follow for Windows OS:

Rabbitmq manual for Windows

like image 9
Hamid Zandi Avatar answered Nov 01 '22 17:11

Hamid Zandi