Create a queue manager called QM1

Create a queue manager, called QM1 by using the command-line interface. Queue managers are the main components in an IBM MQ messaging network.


Before starting

We must have IBM MQ installed. If we do not, see Installing using a silent installation for information about how to do so.


In this example, all names are typed in uppercase and because IBM MQ names are case-sensitive, we must type all names in uppercase too.


Procedure

  1. Open a command prompt as an administrator.
  2. Create a queue manager with the name QM1 by typing the following command:
    crtmqm QM1
    

    When the system creates the queue manager, the following output is displayed:

    C:\>crtmqm QM1
    IBM MQ queue manager created.
    Creating or replacing default objects for QM1.
    Default objects statistics : 61 created. 0 replaced. 0 failed.
    Completing setup.
    Setup completed.
    
    The queue manager is created, and is stopped. We must start the queue manager before we can administer it, and before we can read and write messages from its queues.
  3. Start the queue manager by entering the following command:
    strmqm QM1
    

    When the queue manager successfully starts, the following output is displayed:

    C:\>strmqm QM1
    IBM MQ queue manager 'QM1' starting.
    5 log records accessed on queue manager 'QM1' during the log replay phase.
    Log replay for queue manager 'QM1' complete.
    Transaction manager state recovered for queue manager 'QM1'.
    IBM MQ queue manager 'QM1' started.
    
    The queue manager is started.


What to do next

To create a queue, see Create a queue called LQ1.

Parent topic: Installing and configuring using the command line interface


Related information