Install WebSphere MQ v7.5 on Red Hat Linux in under 1 minute with one click

On the recent project of mine I had to install WebSphere MQ multiple times on multiple machines. In this post I would like to share script that I have built to automate the entire WMQ installation process on a freshly installed RHEL down to about 60 seconds and only a single click. Sounds exciting? Lets get started!


Initially I have used several scripts provided to me by folks from the IBM Hursley lab in UK. Those Perl based scripts do every possible thing with WebSphere MQ, and then some more :-). For my use I decided to create my own script – not as flexible as the one I had received from the IBM lab, but simple to use for inexperienced user. My desire was to install WMQ with “one click”. IBM does provide a very detailed installation instructions for WebSphere MQ in the official docs, but those instructions may seem intimidating to the inexperienced user, hence my desire to have “one click” install for WMQ. I wish something like this came with the product – perhaps it will? Hey, I am sharing the source :-). Before the installation you need the following:

If you are wondering why the WMQ download size is 449 MB, you should know that WMQ install image includes JDK as well as administration tools, managed file transfer tools, advanced message security tools, and few other things that you wont find with any other messaging product.In my file I also included a jar file containing the IBM Performance Harness for JMS v1.2. You can download this jar from IBM website if you wish and replace the one I provided.

Once you have all of the above, you can run “one click” WebSphere MQ install. Here is what is going to happen while you run the script:

  • Several Linux kernel settings will be changed to recommended defaults per WMQ docs.
  • IBM license will be “accepted”.
  • Some important WMQ packages will get installed using the rpm command.
  • New queue manager will be created.
  • Basic tuning options will be applied to your new queue manager.
  • Two queues will be defined on the queue manager.
  • Test program will put a message on each of the queues.
  • WMQ Explorer will be started so you can manage your brand new WebSphere MQ installation.
  • Chocolate bar will pop out of your DVD drive… No,  not really. You’ve had enough magic for the day, haven’t you?

All of the above with just a single command. You can easily customize my script to create any number of queue managers and queues, customize install paths, etc. I will post detailed explanation of the script in a separate post. Here is the “one click” command:

  1. Let the magic begin:
    sudo ./
  2. Youare done! To test your new queues you can run some workload on them with another script I provided:

Feel free to apply customizations as you see fit. Please note that this script is designed for those who are not familiar with WMQ to get them up and running quickly. For real production environments you would want to apply security settings, tuning specific to your corporate standards, etc. All of that can be scripted using powerful WMQ API, or command line, or scripting commands, as described in the WebSphere MQ product documentation.

PS. If you are interested in working with IBM Integration Bus (IIB for short – old name WebSphere Message Broker), you could easily extend the concept of 1 click install to be able to install WMQ + IIB in 2 minutes with a “single click”. Here is my article with manual install instructions for WMB and performance testing script for it.

PS 1. Here is the latest article that shows one click installation of IIB v9 for Developers.

Categories: Technology

Tags: ,

9 replies

  1. Thanks – this worked like a champ for v8 also except I needed to insert “cd MQServer” at line 281 before ./ -accept


  2. Hi Roman, thanks for your share your script. Ihave a little problem at the end of the installation:

    License has already been accepted: Proceed with install.
    rpm: RPM should not be used directly install RPM packages, use Alien instead!
    rpm: However assuming you know what you are doing…
    error: Failed dependencies:
    /bin/sh is needed by MQSeriesRuntime-7.5.0-2.x86_64
    /bin/sh is needed by MQSeriesServer-7.5.0-2.x86_64
    /bin/sh is needed by MQSeriesClient-7.5.0-2.x86_64
    /bin/sh is needed by MQSeriesSDK-7.5.0-2.x86_64
    /bin/sh is needed by MQSeriesMan-7.5.0-2.x86_64
    /bin/sh is needed by MQSeriesSamples-7.5.0-2.x86_64
    /bin/sh is needed by MQSeriesJRE-7.5.0-2.x86_64
    gtk2 >= 2.2.4-0 is needed by MQSeriesExplorer-7.5.0-2.x86_64
    /bin/sh is needed by MQSeriesExplorer-7.5.0-2.x86_64
    /bin/sh is needed by MQSeriesJava-7.5.0-2.x86_64

    My distribution is 3.2.0-4-amd64 #1 SMP Debian 3.2.78-1 x86_64 GNU/Linux

    /bin/sh exist.

    Could you help me with this issue?

    Thanks a lot.



  3. After run this “sudo apt-get install rpm”. I was able to install WMQ v8.0 on Ubuntu 14.04.3 using your scripts. Appreciated your post.


  4. Hi Roman, the article was really good to understand from the basics. I would like to install wmq & wmb on AIX servers. Do you have any recommendations/documentation for that. Please share with me if you have any, it could really help me to implement with expertise idea.

    Here’s my E-mail id:

    Thanks in advance!


  5. Thank you, this was really useful for a power start. I hope to find another one like this for the IIB.



  1. WebSphere MQ 7.5 and Apache ActiveMQ 5.9 performance comparison (part 1) | Why WebSphere? Blog

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: