Getting Started with Websphere MQ on Linux CentOS

Install Procedure for MQ Series 7.1.0-0

Step 1 - Create Working Folder
-bash-3.2$ mkdir $HOME/MQ
-bash-3.2$ cd $HOME/MQ

Step 2 - Download
-bash-3.2$ wget

Step 3 - Run License Acceptance Script
-bash-3.2$ ./ -accept

Step 4- Install MQ Runtime Environment
-bash-3.2$ rpm -ivh MQSeriesRuntime-7.1.0-0.i386.rpm

Step 5 - Install MQ Server
-bash-3.2$ rpm -ivh MQSeriesServer-7.1.0-0.i386.rpm

Step 6 - Install MQ Samples need these for testing

-bash-3.2$ rpm -ivh MQSeriesSamples-7.1.0-0.i386.rpm

Step 7 - Lets Test
Login as super user root
-bash-3.2$ su - mgm
-bash-3.2$ cd /opt/mqm/bin

-bash-3.2$ ./crtmqm -q dtm.queue.manager # create a queue manager
-bash-3.2$ ./strmqm # start the queue manager
-bash-3.2$ ./runmqsc # run MQMS commands
define qlocal (dtmtest.queue)

Step 8 - Test
-bash-3.2$cd  /opt/mqm/samp/bin
-bash-3.2$./amqsput DTMTEST.QUEUE # runmqsc will put it in caps
-bash-3.2$./amqsput DTMTEST.QUEUE
Sample AMQSPUT0 start
target queue is DTMTEST.QUEUE
First MQ Script

Sample AMQSPUT0 end

-bash-3.2$./amqsget DTMTEST.QUEUE
Sample AMQSGET0 start
message <First MQ Script>
message <end>

no more messages
Sample AMQSGET0 end


  1. -bash-3.2$ su - mgm typo

    mqm is the correction

    1. This comment has been removed by the author.

  2. This comment has been removed by the author.

  3. how i came here i don’t know , but this is the excellent one for my technical information
    websphere Online Training

  4. Big data training .All the basic and get the full knowledge of hadoop.
    Big data training

  5. Big data and data warehousing related information is always updated to me at hadoop online training in hyderabad. Nice insight on the topic refer the details at
    hadoop online training


Post a Comment

Popular posts from this blog

Basic Send Message to MQ with Java and IBM MQ JMS

Basic Receive Message to MQ with Java and IBM MQ JMS

Creating a simple Alert / Success Message with ASP.NET/VB using Bootstrap