签到成功

知道了

CNDBA社区CNDBA社区

Redhat 7.9安装IBM MQ 9.0.5.0

2021-10-05 09:49 1452 0 原创 WMQ
作者: hbhe0316

1.环境准备

http://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文件

http://www.cndba.cn/hbhe0316/article/4862
http://www.cndba.cn/hbhe0316/article/4862http://www.cndba.cn/hbhe0316/article/4862http://www.cndba.cn/hbhe0316/article/4862

[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安装WMQhttp://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队里管理器http://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.启动和停止队列管理器

http://www.cndba.cn/hbhe0316/article/4862
http://www.cndba.cn/hbhe0316/article/4862http://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

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
hbhe0316

hbhe0316

关注

1.只有承认无知,才能装下新的东西; 2.进步来自一点点滴滴的积累; 3.广博让你更优秀,而专业让你无法替代; 4.挫折和失败能够转换为一种财富。

  • 889
    原创
  • 1
    翻译
  • 13
    转载
  • 24
    评论
  • 访问:1139299次
  • 积分:1523
  • 等级:核心会员
  • 排名:第6名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ