Following are the steps to install IBM WebSphere MQ version 8 on Ubuntu 14.04.
1) Create a user account with name "mqm" in Ubuntu. This should basically create a user called "mqm" and usergroup called "mqm"
2) Login to "mqm" user account and proceed with next steps
3) Increase the open file limit for the user "mqm" to "10240" or higher value. For this open "/etc/security/limits.conf" file and set the values as bellow.
mqm hard nofile 10240
mqm soft nofile 10240
4) Increase the number of processes allowed for the user "mqm" to "4096" or higher value. For this open "/etc/security/limits.conf" file and set the values as bellow. You will need to edit this file as a sudo user.
mqm hard nproc 4096
mqm soft nproc 4096
5) Install "RPM" on Ubuntu if you already don't have it.
sudo apt-get install rpm
6) Download the IBM MQ (you will get a file like WSMQ_8.0.0.4_TRIAL_LNX_ON_X86_64_.tar.gz)
7) Unzip above downloaded file. Following command will unzip the file and create a folder called "MQServer" in same location.
tar -xzvf WSMQ_8.0.0.4_TRIAL_LNX_ON_X86_64_.tar.gz
8) Go to "MQServer" folder and run following command to accept the licence
sudo ./mqlicense.sh -text_only
9) Then run following command to create unique set of packages in system (Please note that you can replace "mqmtest" part with any alphanumeric suffix if needed)
sudo ./crtmqpkg mqmtest
You will get following output once successfully run the above step in commandline.
mqm@mqm-esb:~/Downloads/MQServer$ sudo ./crtmqpkg mqmtest
Repackaging WebSphere MQ for "x86_64" using suffix "mqmtest"
###############################################################
Repackaging complete - rpms are at "/var/tmp/mq_rpms/mqmtest/x86_64"
10) Now go to "/var/tmp/mq_rpms/mqmtest/x86_64" folder and run following command to install all components to default location "/opt/mqm/"
sudo rpm -ivh --force-debian --ignorearch MQSeries*.rpm
11) Once above step runs successfully you have installed the WebSphere MQ and you can start to using it. You can use MQ Explorer to administrate local and remote Queue Managers and therir resources. Go to "/opt/mqm/bin" directory and run following command to open MQExplorer.
./MQExplorer
1) Create a user account with name "mqm" in Ubuntu. This should basically create a user called "mqm" and usergroup called "mqm"
2) Login to "mqm" user account and proceed with next steps
3) Increase the open file limit for the user "mqm" to "10240" or higher value. For this open "/etc/security/limits.conf" file and set the values as bellow.
mqm hard nofile 10240
mqm soft nofile 10240
4) Increase the number of processes allowed for the user "mqm" to "4096" or higher value. For this open "/etc/security/limits.conf" file and set the values as bellow. You will need to edit this file as a sudo user.
mqm hard nproc 4096
mqm soft nproc 4096
5) Install "RPM" on Ubuntu if you already don't have it.
sudo apt-get install rpm
6) Download the IBM MQ (you will get a file like WSMQ_8.0.0.4_TRIAL_LNX_ON_X86_64_.tar.gz)
7) Unzip above downloaded file. Following command will unzip the file and create a folder called "MQServer" in same location.
tar -xzvf WSMQ_8.0.0.4_TRIAL_LNX_ON_X86_64_.tar.gz
8) Go to "MQServer" folder and run following command to accept the licence
sudo ./mqlicense.sh -text_only
9) Then run following command to create unique set of packages in system (Please note that you can replace "mqmtest" part with any alphanumeric suffix if needed)
sudo ./crtmqpkg mqmtest
You will get following output once successfully run the above step in commandline.
mqm@mqm-esb:~/Downloads/MQServer$ sudo ./crtmqpkg mqmtest
Repackaging WebSphere MQ for "x86_64" using suffix "mqmtest"
###############################################################
Repackaging complete - rpms are at "/var/tmp/mq_rpms/mqmtest/x86_64"
10) Now go to "/var/tmp/mq_rpms/mqmtest/x86_64" folder and run following command to install all components to default location "/opt/mqm/"
sudo rpm -ivh --force-debian --ignorearch MQSeries*.rpm
11) Once above step runs successfully you have installed the WebSphere MQ and you can start to using it. You can use MQ Explorer to administrate local and remote Queue Managers and therir resources. Go to "/opt/mqm/bin" directory and run following command to open MQExplorer.
./MQExplorer
I am unable to edit limits.conf file with mqm user
ReplyDelete