3.3. Starting the Broker

3.3. Starting the Broker

  1. By default, the broker is installed in /usr/sbin/. If this is not on your path, you will need to type the whole path to start the broker:

    # /usr/sbin/qpidd -t
    [date] [time] info Loaded Module: libbdbstore.so.0
    [date] [time] info Locked data directory: /var/lib/qpidd
    [date] [time] info Management enabled
    [date] [time] info Listening on port 5672
    

    The -t or --trace option enables debug tracing, printing messages to the terminal.

  2. To stop the broker, type CTRL+C at the shell prompt

    [date] [time] notice Shutting down.
    [date] [time] info Unlocked data directory: /var/lib/qpidd
    
  3. For production use, MRG Messaging is usually run as a service. To start the broker as a service, run the following command as the root user:

    # service qpidd start
    Starting qpidd daemon:     [  OK  ]
    
  4. You can check on the status of the service using the service status command and stop the broker with service stop.

    # service qpidd status
    qpidd (pid PID) is running...
    				
    # service qpidd stop
    Stopping qpidd daemon:     [  OK  ]
    

Note

For more detail on downloading, installing and starting the broker, including troubleshooting information, refer to the MRG Messaging Installation Guide