Redhat 7.9安装IBM MQ 9.0.5.0

1.环境准备

https://www.cndba.cn/hbhe0316/article/4862
https://www.cndba.cn/hbhe0316/article/4862
https://www.cndba.cn/hbhe0316/article/4862
[root@node01 tmp]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.9 (Maipo)
[root@node01 tmp]# groupadd mqm
[root@node01 tmp]# useradd -g mqm mqm
[root@node01 tmp]# id mqm
uid=1003(mqm) gid=1003(mqm) groups=1003(mqm)

2.设置limits.conf文件

[root@node02 MQServer]# cat /etc/security/limits.conf
mqm             soft    nofile           65535
mqm             hard    nofile           65535
mqm             soft    nproc            65535
mqm             hard    nproc            65535
root            soft    nofile           65535
root            hard    nofile           65535
root            soft    nproc            65535
root            hard    nproc            65535

3.rpm安装WMQhttps://www.cndba.cn/hbhe0316/article/4862https://www.cndba.cn/hbhe0316/article/4862

[root@node01 tmp]# tar xvf IBM_MQ_9.0.5.0_LINUX_X86-64.tar.gz
[root@node01 tmp]# cd MQServer/
[root@node01 MQServer]# ./mqlicense.sh -accept
[root@node01 MQServer]# rpm -ivh MQSeriesRuntime-9.0.5-0.x86_64.rpm 
[root@node01 MQServer]# rpm -ivh MQSeriesServer-9.0.5-0.x86_64.rpm 
[root@node01 MQServer]# rpm -ivh MQSeriesJava-9.0.5-0.x86_64.rpm
[root@node01 MQServer]# rpm -ivh MQSeriesClient-9.0.5-0.x86_64.rpm 
[root@node01 MQServer]# rpm -ivh MQSeriesSamples-9.0.5-0.x86_64.rpm
[root@node01 MQServer]# rpm -ivh MQSeriesMan-9.0.5-0.x86_64.rpm 
[root@node01 MQServer]# rpm -ivh MQSeriesMsg_Zh_CN-9.0.5-0.x86_64.rpm
[root@node01 mqm]# /opt/mqm/bin/setmqinst -i -p /opt/mqm/
143 of 143 tasks have been completed successfully.
'Installation1' (/opt/mqm) set as the primary installation.

4.创建MQ队里管理器https://www.cndba.cn/hbhe0316/article/4862

[mqm@node01 ~]# su - mqm 
[mqm@node01 ~]$ crtmqm -lf 16384 -lp5 -ls4 source
IBM MQ queue manager created.
Directory '/var/mqm/qmgrs/source' created.
The queue manager is associated with installation 'Installation1'.
Creating or replacing default objects for queue manager 'source'.
Default objects statistics : 84 created. 0 replaced. 0 failed.
Completing setup.
Setup completed.
修改/var/mqm/qmgrs/source/qm.ini文件
防止由于网络不稳定的原因导致的通道状态问题
增加keepAlive=YES参数。
如需设置以上参数,需在qm.ini文件中添加以下内容:
Channels:
MaxChannels=1000
MaxActiveChannels=1000
TCP:
keepAlive=YES
qm.ini文件中的参数需要重启队列管理器生效。

5.启动和停止队列管理器https://www.cndba.cn/hbhe0316/article/4862

https://www.cndba.cn/hbhe0316/article/4862
https://www.cndba.cn/hbhe0316/article/4862 https://www.cndba.cn/hbhe0316/article/4862
[mqm@node01 source]$ strmqm source
IBM MQ queue manager 'source' starting.
The queue manager is associated with installation 'Installation1'.
5 log records accessed on queue manager 'source' during the log replay phase.
Log replay for queue manager 'source' complete.
Transaction manager state recovered for queue manager 'source'.
IBM MQ queue manager 'source' started using V9.0.5.0.
[mqm@node01 source]$ dspmq
QMNAME(source)                                            STATUS(Running)
[mqm@node01 source]$ endmqm -i source
IBM MQ queue manager 'source' ending.
IBM MQ queue manager 'source' ended.
[mqm@node01 source]$ dspmq
QMNAME(source)                                            STATUS(Ended immediately)

版权声明:本文为博主原创文章,未经博主允许不得转载。

WMQ

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值