Wednesday 15 June 2016

MQ (Message Queue) installation on Linux

1] Download the file mq WMQ_7.1.0.3_TRIAL_LNX_X86_64_ML.tar

2] Create mqm diretory in var and opt

    mkdir /opt/mqm
    mkdir /var/mqm

3] create mqm group

    groupadd mqm

4] create mqm user and add that user to mqm group

     useradd -g mqm mqm

5] unzip file

tar -xvf WMQ_7.1.0.3_TRIAL_LNX_X86_64_ML.tar

6] Accept the license

./mqlicense.sh

7] Install all rpm's (execute command on linux terminal)

  rpm -qa MQS*.rpm

8]  /opt/mqm/bin/setmqinst -i -p /opt/mqm

9] su  mqm (Change user as mqm)

10] run the commands

11] if you are getting the error like unable to allocate sufficient system resource then set the kernel parameters as follows: -


cd /etc

edit the sysctl.conf conf file

include these parameters in that file

    kernel.msgmni = 1024
   kernel.shmmni = 4096
    kernel.shmall = 2097152
     kernel.shmmax = 268435456
    kernel.sem = 500 256000 250 1024
    fs.file-max = 524288
    kernel.pid-max = 120000
    kernel.threads-max = 48000 

No comments:

Post a Comment