IBM MQ for DB Replication
Installation
MQ8 + RHEL 6/7/8
Installer Files:
- WS_MQ_V8.0_IFR1_LINUX_ON_X86_64_I.tar
- 8.0.0-WS-MQ-LinuxX64-FP0011.tar
System Configuration:
Edit /etc/sysctl.d/wmq.conf
# for MQ
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.shmmax = 268435456
kernel.sem = 500 256000 250 1024
fs.file-max = 524288
net.ipv4.tcp_keepalive_time = 300
kernel.threads-max = 32768
Apply the changes
sysctl -p /etc/sysctl.d/wmq.conf
Edit /etc/security/limits.conf
# for MQ
mqm hard nofile 10240
mqm soft nofile 10240
Install the MQ Server
tar -xf WS_MQ_V8.0_IFR1_LINUX_ON_X86_64_I.tar
cd server
./mqlicense.sh -text_only
rpm -ivh MQSeriesRuntime-*.rpm MQSeriesServer-*.rpm
Install FP0011
mkdir FP0011
tar -xzf 8.0.0-WS-MQ-LinuxX64-FP0011.tar.gz -C FP0011
cd FP0011
rpm -ivh MQSeriesRuntime-*.rpm MQSeriesServer-*.rpm
TIPs:
- 預設 MQ 安裝目錄:/opt/mqm
- 如果安裝時,想變更目錄位置,安裝指令改成
rpm --prefix /opt/customLocation -ivh MQSeriesRuntime-*.rpm MQSeriesServer-*.rpm
Verifying a server installation
RHEL
su - mqm
vi ~/.bash_profile
.bash_profile:
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
# Set up environment variables for the user mqm
. /opt/mqm/bin/setmqenv -s
Show the MQ version
[mqm@dotnetdev ~]$ dspmqver
Name: WebSphere MQ
Version: 8.0.0.2
Level: p800-002-150427.1
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 4.18.0-553.40.1.el8_10.x86_64
InstName: Installation1
InstDesc:
Primary: No
InstPath: /opt/mqm
DataPath: /var/mqm
MaxCmdLevel: 801
LicenseType: Production