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.
Usually the network card name is automatically recognized by the system and exists
The Linux date command is mainly used to display and set the system time. For progr
Ubuntu system installed Nvidia driver, you can switch dual graphics in the settings. The performance
The ping command in Linux system can be used for network fault diagnosis and check
How Linux uses the shell to view all files in the directory and its subdirectories
What should I do if the Linux boot file rc.local cannot be executed?
How to use NTP to synchronize Linux system time
Linux system how to build ldap server
How to upgrade Docker in Ubuntu system
Linux system sort command operation example
CentOS closes Ctrl+Alt+Del to restart shortcuts
Linux installation and configuration mongodb method
Linux file method using file command to identify the file type
Summary of lftp usage in Linux system
Win7 system optimization is simple and easy to maintain at home Win7
Windows7 operating system basic tutorial Course 5: Input Chinese characters (1)
How to use the right-click jump function in the Win10 system registry?
Yahoo Android browser released for Japan: equipped with security features
Win7 can not start msn how to do
XP system startup speed optimization (1)
How to set up Win7 system UAC pop-up does not black screen
Computer win10 has failed, please help solve
How to solve the problem of 100% of ekrn.exe memory usage under WinXP