解压安装文件
tar -zxvf CZ50AML-Linux.tar.gz -C ibm
接受许可
./mqlicense.sh
Displaying license agreement on :1.0
Exception in thread "main" java.lang.UnsatisfiedLinkError: fontmanager (libstdc++.so.5: 无法打开共享对象文件: 没有那个文件或目录)
报错,改用如下方式
mqlicense.sh -accept
License has already been accepted: Proceed with install.
进行安装
[root@tianjian ibm]# rpm -U MQSeriesRuntime-7.0.1-0.i386.rpm
[root@tianjian ibm]# rpm -U MQSeriesS
MQSeriesSamples-7.0.1-0.i386.rpm MQSeriesSDK-7.0.1-0.i386.rpm MQSeriesServer-7.0.1-0.i386.rpm
[root@tianjian ibm]# rpm -U MQSeriesSDK-7.0.1-0.i386.rpm
[root@tianjian ibm]# rpm -U MQSeriesServer-7.0.1-0.i386.rpm
[root@tianjian ibm]# rpm -U MQSeriesClient-7.0.1-0.i386.rpm
[root@tianjian ibm]# rpm -U MQSeriesSamples-7.0.1-0.i386.rpm
[root@tianjian ibm]# passwd mqm
Changing password for user mqm.
New UNIX password:
BAD PASSWORD: it is WAY too short
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
创建队列管理器
[root@tianjian ibm]# su - mqm
-bash-3.1$ crtmqm -q QM1
There are 90 days left in the trial period for this copy of WebSphere MQ.
WebSphere MQ queue manager created.
Directory '/var/mqm/qmgrs/QM1' created.
Creating or replacing default objects for QM1.
Default objects statistics : 65 created. 0 replaced. 0 failed.
Completing setup.
Setup completed.
启动队列管理器
-bash-3.1$ strmqm QM1
There are 90 days left in the trial period for this copy of WebSphere MQ.
WebSphere MQ queue manager 'QM1' starting.
5 log records accessed on queue manager 'QM1' during the log replay phase.
Log replay for queue manager 'QM1' complete.
Transaction manager state recovered for queue manager 'QM1'.
WebSphere MQ queue manager 'QM1' started.
启动监听
-bash-3.1$ runmqlsr -t TCP -p 1414 -m QM1
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.sh-3.1$ runmqlsr -p 1414 -m QM1
AMQ9223: 输入协议类型。
用法:runmqlsr [-m QMgrName] -t TCP [ProtocolOptions]
-bash-3.1$ runmqlsr -t TCP -p 1414 -m QM1
5724-H72 (C) Copyright IBM Corp. 1994, 2009. ALL RIGHTS RESERVED.
strmqcsv
-bash-3.1$ runmqsc
在linux上定义通道
DEFINE CHANNEL(SYSTEM.ADMIN.SVRCONN) CHLTYPE(SVRCONN) REPLACE
修改通道的MCAUSER
alter CHANNEL(SYSTEM.ADMIN.SVRCONN) CHLTYPE(SVRCONN) MCAUSER('mqm')
MCAUSER据说是不超过20个字符,实际测试超过12个字符就报错。
windows系统上得有mqm用户