RHEL: Start and Stop the RabbitMQ Server

You must first start the RabbitMQ server to use it. The default configuration for the server is usually adequate to start it.



  1. Log in as the root user and open a terminal window.

  2. Start the RabbitMQ server using the /sbin/service rabbitmq-server command, passing it the start option. For example:

    prompt# /sbin/service rabbitmq-server start

    The RabbitMQ server process runs as the rabbitmq user, which is non-interactive.

  3. To stop the server:

    prompt# /sbin/service rabbitmq-server stop
  4. To get status about the server (only partial output shown):

    prompt# /sbin/service rabbitmq-server status
    Status of node rabbit@localhost ...
         [{rabbitmq_management,"RabbitMQ Management Console","3.1.5"},
          {rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.1.5"},
          {mochiweb,"MochiMedia Web Server","2.7.0-rmq3.1.5-git680dba8"},
          {rabbitmq_management_agent,"RabbitMQ Management Agent","3.1.5"},
          {os_mon,"CPO  CXC 138 46","2.2.10"},
          {inets,"INETS  CXC 138 49","5.9.1"},
          {xmerl,"XML parser","1.3.2"},
          {mnesia,"MNESIA  CXC 138 12","4.7.1"},
          {amqp_client,"RabbitMQ AMQP Client","3.1.5"},
          {sasl,"SASL  CXC 138 11","2.2.1"},
          {stdlib,"ERTS  CXC 138 10","1.18.2"},
          {kernel,"ERTS  CXC 138 10","2.15.2"}]},
         "Erlang R15B02 (erts-5.9.2) [source] [64-bit] [async-threads:30] [kernel-poll:true]\n"},

What to do next