IBM MQ Installation on Linux

Matt Pavlovich guides you through installing IBM MQ on a Linux server, emphasizing the need for root and MQM user steps. Key tasks include modifying file handle limits, installing dependent RPMs, and ensuring compliance with enterprise policies. The IBM MQ installation media is extracted, and the MQ series samples are installed for validation. The process continues with creating a queue manager, setting default settings like max message size, and configuring a listener and channel. Finally, messages are sent and retrieved to verify the installation's functionality, completing the setup in under five minutes.

Download the installation commands on GitHub. https://uplinktv.github.io/ibmmq-devops/


Video Contents

Hey, it's Matt with an Uplink tech spot. We're going to install IBM MQ on a Linux server. The first steps, or the first half of the steps, are going to be done as the root user, and then the second half, or is the mqm user. So if you're an administrator, this will help you with setting your setting up any kind of installation recipe or possibly configuring a customized container. So these are the core steps you'll need to get MQ up and running in hopefully under five minutes.

So let's add that mqm user. The next step we need to do is check that the limits are where IBM MQ requires.

CentOS 77 the only one we had to modify is the number of file handles. And then we'll use the sysctl -p command to apply those changes without a reboot.

Next we want to install any dependent RPMs, nothing too crazy here, it shouldn't blow up any policies or standards you might have.

Once those are installed, we can grab the IBM MQ installation media.

IBM has changed their policies. They're a little more lenient to have a localized developer like on your developer workstation installation but as with any any kind of software, make sure you check with your organization to make sure that it meets with any of your enterprise policies.

Once it's down, we're going to extract the media. There's a folder called the MQServer folder inside this tarball, and that's where the RPMs and other supporting files are going to be. So we're going to go into that folder. I like to go ahead and accept the license now, before I do any other installation steps.

This list of RPMs is pretty standard. There's one key one we're doing for this installation, which is the MQSeriesSamples. This is going to give us a sample program to put and then get a message off the queue just to validate that we have the installation working. Additionally, I've included the extensions to do the other protocols like AMQP and MQTT.

Now that those RPMs are installed, we need to switch over to the mqm user and finish the second half the installation as the non root user.

Next, we need to create the queue manager, and then we start the queue manager. Once the queue manager is running, we want to set a couple settings and then create a couple objects.

I like to set a default Max message size of about four megs. The product only allows up to 100 megs, and four megs, seems pretty good for most messaging environments. The objects we're going to add are a listener, which is how clients will connect it over a network socket, and we're using the default port here of 1414.

Then we're going to add a channel. A channel is a little bit of a funky kind of object, nothing you can really relate to in any other product, like databases or anything. It's a combination of a thread pool, but it also handles the SSL connection, so it's separate from the listener. It's kind of its own deal. And then lastly, we're going to create our queue, which we're going to use to put and get messages to validate the installation. So the name of that queue I created here is ORDER.INPUT.

Once those objects are created, we're ready to use that program to put a message. And so here I'm putting a message body called TestMessage1, and I'm going to add TestMessage2 to our ORDER.INPUT queue, and then I'm gonna use the test GET command to pull those messages off. And you can see it pulled two messages with the Message bodies that we expected. So there you go. IBM MQ installed in under five minutes.

Matt Pavlovich

Matt Pavlovich, the Chief Technology Officer and Technical Practice Lead at HYTE Technologies, directs the HYTE Product Development Team. With a wealth of experience in the Open Source Software community, Matt is also a Committer on the Apache ActiveMQ project. Known for his technical prowess and leadership skills, Matt has successfully led numerous large-scale ActiveMQ implementations worldwide. Under his guidance, HYTE's services and tools enable accelerated Enterprise application development and enhance the supportability of middleware solutions.

Previous
Previous

Distributed Applications - Which network link is the problem?