Install MQ in Linux and mq in linux
MQ: http://www-03.ibm.com/software/products/us/en/wmq/
The installed mqsoftware package is wmqv600trial-x86_linux_2.tar.gz. Extract wmqv600trial-x86_linux_2.tar.gz to a directory.
(1) execute the accept permission Script :. /mqlicense. sh-accept is the MQ license program for installing the WebSphere MQ package. it is critical that the installation of MQ fails if this script is not correctly configured. -accept is used to accept the permission directly without starting the image.
(2) install the 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 related files will be automatically installed in/opt/mqm and installed in
During the MQSeriesRuntime-6.0.0-0.i386.rpm, the installer automatically creates an mqm user and an mqm group for the system. After the installation is complete, the user needs to be used for MQ configuration.
(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, and amqsbcg)
[Root @ localhost mq] # rpm-ivh MQSeriesSamples-6.0.0-0.i386.rpm sample program installed in/opt/mqm/samp/bin.
(5) install other MQ software 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 JDK of the same or higher version already exists, you do not need to install it again. (6) A user named mqm and a group named mqm are created during the installation process. At this time, the new user is locked and a password must be set for unlocking, in this way, the user can be used normally. Run the passwd command:
[Root @ localhost mq] # All operations above passwd mqm are performed under the root user, and MQ6.0 installation is complete. MQ configuration commands are performed under the mqm user.
Note:
If the prompt is displayed when 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 file, and add the following content:
Method 1: relatively safer than method 2, only valid for mqm users
1)-bash-3.2 $ vi/var/mqm/. bash_profile
PATH = $ PATH:/opt/mqm/samp/bin:/opt/mqm/bin:/usr/sbin:/usr/local/bin: /usr/X11R6/bin
2) execute the "." command to make the file take effect.
-Bash-3.2 $. bash_profile
3) try again to execute the crtmqm or dspmqm command and you will find that it has taken effect.
Method 2:
1. su root
2. vim/etc/profile
3. Add:
PATH = $ PATH:/opt/mqm/samp/bin:/opt/mqm/bin:/usr/sbin:/usr/local/bin: /usr/X11R6/bin
4. Close the remote terminal and restart the server.
5. OK !!