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
TIPs:
- 預設 MQ 安裝目錄:/opt/mqm
- 如果安裝時,想變更目錄位置,安裝指令改成
rpm --prefix /opt/customLocation -ivh MQSeriesRuntime-*.rpm MQSeriesServer-*.rpm