#./mqlicense.sh -accept (如果报错,就使用./mqlicense.sh -accept -jre /usr/bin/java)再报错,安装yum install libstdc++.i686 glibc.i686 gtk2.i686 nss-softokn.i686
#rpm -ivh MQSeriesRuntime-7.0.1-3.x86_64.rpm MQSeriesServer-7.0.1-3.x86_64.rpm MQSeriesClient-7.0.1-3.x86_64.rpm MQSeriesJava-7.0.1-3.x86_64.rpm MQSeriesTXClient-7.0.1-3.x86_64.rpm MQSeriesJRE-7.0.1-3.x86_64.rpm MQSeriesEclipseSDK33-7.0.1-3.x86_64.rpm MQSeriesConfig-7.0.1-3.x86_64.rpm MQSeriesSamples-7.0.1-3.x86_64.rpm MQSeriesMan-7.0.1-3.x86_64.rpm
看MQ是否安装成功
#dspmqver
Install IBM MQ. At a minimum, you must install the MQSeriesRuntime and the MQSeriesServer components.
MQ9需要JDK8
To install to the default location, /opt/mqm, use the rpm -ivh command to install each component that you require.
For example, to install the runtime and server components to the default location, use the following command:
mqconfig -v 8.0
yum install glibc.i686 libstdc++.i686 libgcc
mqlicense.sh -text_only
mqlicense.sh -accept
rpm -ivh MQSeriesRuntime-*.rpm MQSeriesServer-*.rpm
To install all components to the default location use the following command:
rpm -ivh MQSeries*.rpm
========================
安装路径/bin/setmqinst -i -p 安装路径
Set up environment variables for use with a particular installation by entering the following command:
setmqenv -s
setmqenv or crtmqenv
=====================
#./mqlicense.sh -accept (如果报错,就使用./mqlicense.sh -accept -jre /usr/bin/java)再报错,安装yum install libstdc++.i686 glibc.i686 gtk2.i686 nss-softokn.i686
#rpm -ivh MQSeriesRuntime-7.0.1-3.x86_64.rpm MQSeriesServer-7.0.1-3.x86_64.rpm MQSeriesClient-7.0.1-3.x86_64.rpm MQSeriesJava-7.0.1-3.x86_64.rpm MQSeriesTXClient-7.0.1-3.x86_64.rpm MQSeriesJRE-7.0.1-3.x86_64.rpm MQSeriesEclipseSDK33-7.0.1-3.x86_64.rpm MQSeriesConfig-7.0.1-3.x86_64.rpm MQSeriesSamples-7.0.1-3.x86_64.rpm MQSeriesMan-7.0.1-3.x86_64.rpm
看MQ是否安装成功
#dspmqver
================
vi /etc/sysctl.conf
# KeepAlive的空闲时长,或者说每次正常发送心跳的周期,默认值为7200s(2小时)
net.ipv4.tcp_keepalive_time=7200
# KeepAlive探测包的发送间隔,默认值为75s
net.ipv4.tcp_keepalive_intvl=75
# 在tcp_keepalive_time之后,没有接收到对方确认,继续发送保活探测包次数,默认值为9(次)
net.ipv4.tcp_keepalive_probes=9
# Maximum number of shared memory segments 可以增加
kernel.shmmni = 4096
# Maximum amount of shared memory (pages) 可以增加
kernel.shmall = 2097152
# Maximum size of a shared-memory segment (bytes)
kernel.shmmax = 268435456
# Maximum amount of semaphores permitted per set/Maximum number of semaphores 可以增加/Maximum number of operations in single operations/Maximum number of semaphore sets 可以增加
kernel.sem = 500 256000 250 1024
# Maximum open files 仅运行一个队列管理器时推荐值
fs.file-max = 524288
# Maximum number of process identifiers 可以增加
kernel.pid_max = 12000
# Maximum number of threads 可以增加
kernel.threads-max = 48000
# KeepAlive的空闲时长
net.ipv4.tcp_keepalive_time = 300
sysctl -p
===============
vi /etc/security/limits.conf
mqm hard nofile 10240
mqm soft nofile 10240
mqm hard nproc 4096
mqm soft nproc 4096
PS:
nproc = 2048 + clientConnections * 4 + qmgrChannels * 4 + localBindingConnections
clientConnections is the maximum number of connections from clients on other machines connecting to queue managers on this machine.
qmgrChannels is the maximum number of running channels (as opposed to channel definitions) to other queue managers. This includes cluster channels, sender/receiver channels, and so on.
localBindingConnections does not include application threads.
讚Liked by 1 人
Install IBM MQ. At a minimum, you must install the MQSeriesRuntime and the MQSeriesServer components.
To install to the default location, /opt/mqm, use the rpm -ivh command to install each component that you require.
For example, to install the runtime and server components to the default location, use the following command:
mqlicense.sh -text_only
rpm -ivh MQSeriesRuntime-*.rpm MQSeriesServer-*.rpm
To install all components to the default location use the following command:
rpm -ivh MQSeries*.rpm
讚讚