If you are not familiar with what IBM MQ (message queue) is, check out our Getting Started page.
First, you will need to download the installation files. Before downloading, you will want to understand IBM version.release.modification.fixpack.
This will download a gzip compressed tar archive, such as MQ_V<version>_CDR_TRIAL_LIN_X86_64-BI.tar.gz. Extract the gzip compressed tar archive. This will create a new folder named MQServer in the /opt directory.
tar -zxvf MQ_V9.0.4_CDR_TRIAL_LIN_X86_64-BI.tar.gz -C /opt
Issue the mqlicense.sh command to accept the license agreement.
In /etc/sysctl.conf, set the file limit to be at least 100000.
fs.file-max = 100000
Issue the following command to refresh your users sysctl.
The rpm command is used to install the product. At a bare minimum, all that is required is the rpm command with the -i or --install option and the rpm files, like this.
rpm -i /opt/MQServer/MQSeriesRuntime-*.rpm rpm -i /opt/MQServer/MQSeriesServer-*.rpm rpm -i /opt/MQServer/MQSeriesSamples-*.rpm
However, typically, the -ivh or --install --verbose --hash options are used, like this.
rpm -ivh /opt/MQServer/MQSeriesRuntime-*.rpm rpm -ivh /opt/MQServer/MQSeriesServer-*.rpm rpm -ivh /opt/MQServer/MQSeriesSamples-*.rpm
By default, the RPM will be installed to the /opt/mqm directory. The --prefix option can be used to specify an alternate install directory, like this. This is needed if you want to install multiple versions of MQ on a system.
rpm --prefix /opt/mqm904 -ivh /opt/MQServer/MQSeriesServer-*.rpm
Once the installation name has been defined, it cannot be changed.
You will next want to create the queue manager.