Prior to the WebSphere MQ 7.1 release, there was only one instance of the installation of the product, on UNIX and Linux systems,
Some soft connections are added to the/usr/lib,/usr/bin and/usr/include directories, which also point to the only installation.
Starting with version 7.1, you can install multiple versions of WebSphere MQ. We can configure one of these installations as a master installation.
--------------------------------------------------------------------------------
-Optimized kernel parameters
[[email protected] opt]# vi/etc/sysctl.conf or directly modify the corresponding configuration file under the/proc/sys folder
Add the following entries or change them to the displayed values, and you do not need to adjust if the system parameters are larger than the following values.
Kernel.msgmni = 1024
Kernel.shmmni = 4096
Kernel.shmall = 2097152
Kernel.sem = 500 256000 250 1024
Fs.file-max = 32768
Net.ipv4.tcp_keepalive_time = 300
[[email protected] opt]# sysctl-p make changes effective immediately
---------------------------------------------------------------------------------
-Create MQ users and user groups
MQ manages MQ servers through local Linux users and user groups, and the MQM user group is a member of the MQ administrator.
Has full permissions for the MQ server.
The name of the user group must be: MQM
User name can be customized, here we use: MQM
[Email protected] ~]# Groupadd MQM
[Email protected] ~]# useradd-d/var/mqm-g MQM MQM
[Email protected] ~]# passwd MQM
---------------------------------------------------------------------------------
-Create MQ installation directory and working directory
[Email protected] opt]# MKDIR/OPT/MQM
[Email protected] opt]# MKDIR/VAR/MQM
The installation directory for the product code is/OPT/MQM, and the work data is stored in the/VAR/MQM, and these locations cannot be changed.
You can use symbolic connections to customize catalog entries:
Mkdir/otherdisk/mqm
Ln-s/OTHERDISK/MQM/OPT/MQM
---------------------------------------------------------------------------------
-Get software License
[Email protected] mq]#./mqlicense.sh-accept-text_only
Licensed Materials-property of IBM
5724-h72
(C) Copyright IBM Corporation 1994, All rights reserved.
US government Users Restricted rights-use, duplication or disclosure
Restricted by GSA ADP Schedule contract with IBM Corp.
Agreement accepted:proceed with install.
---------------------------------------------------------------------------------
-Unzip the installation package
[Email protected] mq]# TAR-ZXVF wmq_7.1.0.3_trial_lnx_x86_64_ml.tar.gz
-Install WebSphere MQ service side
[Email protected] mq]# RPM-IVH \
MQSERIESMAN-7.5.0-2.X86_64.RPM \
MQSERIESMSG_ZH_CN-7.5.0-2.X86_64.RPM \
MQSERIESRUNTIME-7.5.0-2.X86_64.RPM \
MQSERIESSDK-7.5.0-2.X86_64.RPM \
MQSERIESJAVA-7.5.0-2.X86_64.RPM \
MQSERIESCLIENT-7.5.0-2.X86_64.RPM \
MQSERIESSAMPLES-7.5.0-2.X86_64.RPM \
mqseriesserver-7.5.0-2.x86_64.rpm
-Check the system related parameters to meet the requirements, modify the corresponding parameters
[email protected] mq]# su mqm-c/opt/mqm/bin/mqconfig
-Configure MQ system environment variables
[Email protected] mqm]# Vi/etc/profile
Add the following two lines:
Export path= $PATH:/opt/mqm/bin:/opt/mqm/samp/bin
Export classpath= $CLASSPATH:/opt/mqm/java/lib/com.ibm.mq.jar:/opt/mqm/samp/wmqjava/samples
[[email protected] mqm]# source/etc/profile make changes effective immediately
---------------------------------------------------------------------------------
To view the installation version:
[Email protected] ~]# Dspmqver
Amq8594:websphere MQ Commands is no longer available in/usr/bin.
In order to run MQ commands must manage your path configuration as
Described in the WebSphere MQ product documentation. In particular review the
Topic on "Choosing a primary Installation".
Setmqinst-i-P/OPT/MQM
---------------------------------------------------------------------------------
-Optimize TCP parameters
[Email protected] mqm]# vi/etc/sysctl.conf
Modify the following:
Kernel.msgmni = 1024
Kernel.shmmni = 4096
Kernel.shmall = 2097152
Kernel.sem = 500 256000 250 1024
Fs.file-max = 32768
Net.ipv4.tcp_keepalive_time = 300
-aix under:
1. Optimize TCP socket send buffer size
No-p-O tcp_sendspace=65536
2. Optimize TCP socket Receive buffer size
No-p-O tcp_recvspace=65536
3. Optimizing TCP Connections
No-o tcp_keepidle=60
Reference Link: 49008747
Installation of Linux under MQ