MQ在LINUX下安装配置

tarzxvfmq7.tar.gz

rpm-ivhcompat-libstdc++-33-3.2.3-47.3.i386.rpm

rpm-ivhgsk7bas-7.0-4.14.i386.rpm

rpm-ivhibm-java2-i386-sdk-5.0-5.0.i386.rpm

用文本编辑器打开/etc/profile

JAVA_HOME=/opt/ibm/java2-i386-50

PATH=$JAVA_HOME/bin:$PATH

CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

exportJAVA_HOME

exportPATH

exportCLASSPATH

rpm-ivhMQSeriesClient-7.0.0-0.i386.rpmMQSeriesConfig-7.0.0-0.i386.rpmMQSeriesEclipseSDK33-7.0.0-0.i386.rpmMQSeriesFTA-7.0.0-0.i386.rpmMQSeriesJava-7.0.0-0.i386.rpmMQSeriesJRE-7.0.0-0.i386.rpmMQSeriesKeyMan-7.0.0-0.i386.rpmMQSeriesMan-7.0.0-0.i386.rpmMQSeriesMsg_Zh_CN-7.0.0-0.i386.rpmMQSeriesRuntime-7.0.0-0.i386.rpmMQSeriesSamples-7.0.0-0.i386.rpmMQSeriesSDK-7.0.0-0.i386.rpmMQSeriesServer-7.0.0-0.i386.rpmMQSeriesTXClient-7.0.0-0.i386.rpm

rpm-ivhMQSeriesRuntime-7.0.0-0.i386.rpmMQSeriesServer-7.0.0-0.i386.rpm

------------------

rpm-ivhMQSeriesEclipseSDK33-7.0.0-0.i386.rpm

MQSeriesConfig-7.0.0-0.i386.rpm

MQSeriesEclipseSDK33-7.0.0-0.i386.rpm

MQSeriesFTA-7.0.0-0.i386.rpm

将mqm用户加入root组

MQSeriesTXClient-7.0.0-0.i386.rpm

删除队列管理器

dltmqm

停止队列管理器

endmqm

iptables-IINPUT-ptcp--dport1416-jACCEPT

q1

---------------

crtmqm-qQUMICHCNSINOSH

strmqmQUMICHCNSINOSH

runmqscQUMICHCNSINOSH

defineqlocal(MICHCN.SINOSH_DI)

definelistener(listener.QUMICHCNSINOSH)trptype(tcp)control(qmgr)port(1415)

deletelistener(SYSTEM.DEFAULT.LISTENER.TCP)

startlistener(LISTENER.QUMICHCNSINOSH)

definechannel(MICHCN.TO.SINOSH)chltype(rcvr)trptype(tcp)sslciph(TRIPLE_DES_SHA_US)

displaychstatus(MICHCN.TO.SINOSH)

displaychstatus(SINOSH.TO.MICHCN)

alterqlocal(MICHCN.SINOSH_DI)DEFPSIST(YES)

alterqmgrsslkeyr('/var/mqm/qmgrs/QUMICHCNSINOSH/ssl/keySINOSH')

alterqmgrCCSID(437)

defineqlocal(SINOSH.MICHCN.T)usage(xmitq)

alterqlocal(SINOSH.MICHCN.T)DEFPSIST(YES)

defineqremote(SINOSH.MICHCN_DC)rname(SINOSH.MICHCN_DC)rqmname(QPSGTPI1)xmitq(SINOSH.MICHCN.T)

defineqremote(SINOSH.MICHCN_SC)rname(SINOSH.MICHCN_SC)rqmname(QPSGTPI1)xmitq(SINOSH.MICHCN.T)

defineqremote(SINOSH.MICHCN_AC)rname(SINOSH.MICHCN_AC)rqmname(QPSGTPI1)xmitq(SINOSH.MICHCN.T)

203.125.189.70

192.168.1.18

testing202.95.77.185

definechannel(SINOSH.TO.MICHCN)chltype(sdr)conname('202.95.77.185(1414)')trptype(tcp)xmitq(SINOSH.MICHCN.T)sslciph(TRIPLE_DES_SHA_US)

definechannel(CLIENT.TO.SERVER)chltype(svrconn)trptype(tcp)

definechannel(SYSTEM.ADMIN.SVRCONN)chltype(svrconn)trptype(tcp)MCAUSER(mqm)

runmqchl-cSINOSH.TO.MICHCN-mQUMICHCNSINOSH&

endmqchl-cSINOSH.TO.MICHCN-mQUMICHCNSINOSH&

clearqlocal(SINOSH.MICHCN.T)

amqmdainautoQUMICHCNSINOSH

./amqsputSINOSH.MICHCN_DC

exportJAVA_HOME=/opt/mqm/ssl/jre

exportJAVA_HOME=/usr/local/jrockit

---------------------

ps-ef|grepjava

servicetomcatdstart

servicetomcatdstop

servicetomcatdrestop

exportJAVA_HOME=/opt/mqm/ssl/jre

TRIPLE_DES_SHA_US

gsk7cmd-cert-receive-file/var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.sth-db/var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.kdb-pwmichelincn-formatascii

gsk7cmd-cert-add-file/var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.sth-db/var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.kdb-pwmichelincn-labelSINOSH-formatbinary

gsk7cmd-cert-receive-file/var/mqm/qmgrs/QUSGTPI1/ssl/KEYSINOSH.sth-db/var/mqm/qmgrs/QUSGTPI1/ssl/KEYSINOSH.kdb-pwmichelincn-labelSINOSH-formatbinary

gsk7cmd-keydb-stashpw-db/var/mqm/qmgrs/QUMICHCNSINOSH/ssl/KEYSINOSH.kdb-pwmichelincn

gsk7cmd-cert-list-db/var/mqm/qmgrs/QUMICHCNSINOSH/ssl/KEYSINOSH.kdb-pwmichelincn

gsk7cmd-cert-import-db/var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.sth-pwmichelincn-labelSINOSH-typeJKS-target/var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.kdb-target_pwpdsrv-target_typecms

chownmqm:mqm-R/var/mqm/qmgrs/QUMICHCNSINOSH/ssl

查看队列管理器密钥资源库位置在runmqsc(MQExplorer对应的命令行)中运行:

DISQMGRSSLKEYR

更改队列管理器密钥资源库位置在runmqsc(MQExplorer对应的命令行)中运行:

ALTERQMGRSSLKEYR(mynewfile)

向队列管理器密钥资源库添加公共证书在命令行提示符处运行:

KEYSINOSH.sthSSLQMGR

amqmcert-a-mQUSGTPI1-sjmsclient.key

amqmcert-a-mQUSGTPI1-s/var/mqm/qmgrs/QUSGTPI1/ssl/KEYSINOSH.sth

amqmcert是一个MQ实用程序,它使得从命令行进行证书管理更容易。

定义服务器连接通道在runmqsc(MQExplorer对应的命令行)中运行:

DEFCHL(SSL.SVRCONN)SSLCIPH(RC4_MD5_US)

相关推荐