After you install MQ, first you need to create a queue manager.
Suppose the MQ bin directory is in your system path, use
crtmqm -q QM1
Then start the queue manager
strmqm
Then connect to queue manager to use control command
runmqsc QM1
Then define a local queue
define ql(testQ) descr('
Test Q')
Then use "end" to quit the command.
The final step is to run samples like "amqsput" and "amqsget" to send and receive message, and they are also available in the bin directory.