Can't run rabbitmq-server -detached in centos7

636 views
Skip to first unread message

frank...@gmail.com

unread,
Dec 7, 2017, 9:54:41 AM12/7/17
to rabbitmq-users
I am trying to setup a cluster node in centos 7 for rabbitmq 3.7.0
After following the instruction from the docs, I can startup the rabbitmq-server by:
systemctl start rabbitmq-server

But, when running "rabbitmq-server -detached", the log said that rabbitmq required erlang>1.9.3, current version is 1.9.0.

I removed all erlang* packages from yum, and re-install erlang2.0.1 many times.
Unfornately, I was keep posted the same error message.

Please help to look into the problem, and give any suggestion.

Thanks.

Luke Bakken

unread,
Dec 7, 2017, 3:36:44 PM12/7/17
to rabbitmq-users
Hi Frank,

I'm not sure why you want to run rabbitmq-server -detached, because systemctl start rabbitmq-server has already started RabbitMQ for you in the background.

In any case, if you stop RabbitMQ first with systemctl stop rabbitmq-server, you should be able to run /sbin/rabbitmq-server -detached just fine. Again, I recommend using systemd to run RabbitMQ instead.

I've attached a transcript of trying to reproduce your issue.

Thanks,
Luke
centos-7-transcript-b0UDJFtKEeg.txt

frank...@gmail.com

unread,
Dec 8, 2017, 10:15:53 PM12/8/17
to rabbitmq-users
I follow the instruction to setup the rabbitmq cluster.


rabbit1$ rabbitmq-server -detached
rabbit2$ rabbitmq-server -detached
rabbit3$ rabbitmq-server -detached

在 2017年12月8日星期五 UTC+8上午4:36:44,Luke Bakken写道:

Luke Bakken

unread,
Dec 9, 2017, 11:31:51 AM12/9/17
to rabbitmq-users
Hello,

I just found that series of commands here: https://www.rabbitmq.com/clustering.html#starting

I will edit that page because those instructions are misleading if you have installed RabbitMQ from packages, like you have.

In your case, do not run rabbitmq-server -detached, but run these commands on each node as the root user to make sure RabbitMQ is started:

systemctl start rabbitmq-server
systemctl status rabbitmq-server
rabbitmqctl status

Then, follow the clustering guide starting at this point:


Let us know how it goes - thanks!

frank...@gmail.com

unread,
Dec 11, 2017, 3:38:52 AM12/11/17
to rabbitmq-users
yes, this works, and I also execute below steps that not found in the doc:
1.rabbitmqctl cluster_status // to get the node name for every node
2.then vim the hosts to add the ip mapping for every node name
if don't have step2 executed, will meet the hostname mismatch problem.

Thanks very for your help.

在 2017年12月10日星期日 UTC+8上午12:31:51,Luke Bakken写道:
Reply all
Reply to author
Forward
0 new messages