How to install and set up MQ in Linux

  
                

MQ, also known as IBM MQ, can build a basic transport layer for enterprise ESB. Its use needs to configure the running environment, and needs to be related after installation. The following small series will introduce you to the Linux installation and setting of MQ. Interested friends may wish to learn more about it.

MQ Download: http: //www-03.ibm.com/software/products/us/en/wmq/

MQ packages installed for WMQv600Trial-x86_linux_2 .tar.gz. Extract WMQv600Trial-x86_linux_2.tar.gz to a directory.

(1) Execute the acceptance of the license script: . /mqlicense.sh –accept This script is the MQ licensed program for installing WebSphere MQ packages. It is important that this script is not properly configured and will cause the MQ installation to fail. –accept is not to start the graphics directly accept the license.

(2) Install WebSphere MQ for Linux server:

[root@localhost mq]# rpm-ivh MQSeriesRuntime-6.0.0-0.i386.rpm

[ Root@localhost mq]# rpm-ivh MQSeriesSDK-6.0.0-0.i386.rpm

[root@localhost mq]# rpm-ivh MQSeriesServer-6.0.0-0.i386.rpm

Note: After the installation is complete, the relevant files will be automatically installed under /opt/mqm. When installing

MQSeriesRuntime-6.0.0-0.i386.rpm, the installer is automatically created for the system. After an mqm user and an mqm group are installed, you need to use the user to configure the MQ.

(3) Install the WebSphere MQ for Linux client:

[root@localhost mq]# rpm-ivh MQSeriesClient-6.0.0-0.i386.rpm

(4) Install the WebSphere MQ sample program (including amqsput, amqsget, amqsgbr, amqsbcg, etc.)

[root@localhost mq]# rpm-ivh MQSeriesSamples-6.0.0-0.i386.rpm Sample program installation In /opt/mqm/samp/bin.

(5) Install other MQ packages

[root@localhost mq]# rpm-ivh MQSeriesMan-6.0.0-0.i386.rpm

[root@ Localhost mq]# rpm-ivh MQSeriesJava-6.0.0-0.i386.rpm

[root@localhost mq]# rpm-ivh IBMJava2-SDK-1.4.2-0.0.i386.rpm

The last step above is to install the JDK runtime environment. If you already have the same or a higher version of the JDK, you don't need to install it. (6) The installation process creates a user named mqm and a group named mqm. At this time, the new user is locked. You must set a password to unlock it so that the user can be used normally. Use the passwd command:

[root@localhost mq]# passwd mqm The above operations are all performed under the root user, and the MQ6.0 installation ends. The configuration commands related to MQ are all under the mqm user.

Note:

If you execute the crtmqm command,

-bash-3.2$ crtmqm

-bash: crtmqm: command not found

You need to configure the environment variables of the mqm user, edit the following files, and add the following content, as follows:

The first method: Relatively safer than the second type is only valid for mqm users

1)-bash-3.2$ vi /var/mqm/.bash_profile

PATH=$PATH:/opt/mqm/samp/bin:/opt/mqm/bin:bin:/usr/bin: /usr/sbin:/usr/local/bin:/usr/X11R6/bin

2) Execute “. ” command to make this file effective

-bash-3.2$ . .bash_profile

3) Try the crtmqm or dspmqm command again and you will see that it has taken effect.

The second method:

1, su root

2, vim /etc/profile

3, at the end plus: PATH= $PATH:/opt/mqm/samp/bin:/opt/mqm/bin:bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin

4, close the remote terminal to re-open, no need to restart the server

5, ok! !

The above is the introduction of Linux installation and setting of MQ methods, download the links provided in this article, you can also search and download, and the mqm user settings introduce two methods, the first one is recommended.

Copyright © Windows knowledge All Rights Reserved