日期:2014-05-16  浏览次数:20777 次

MQ在LINUX下安装配置
tar zxvf mq7.tar.gz

rpm -ivh compat-libstdc++-33-3.2.3-47.3.i386.rpm

rpm -ivh gsk7bas-7.0-4.14.i386.rpm

rpm -ivh ibm-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
export JAVA_HOME
export PATH
export CLASSPATH


rpm -ivh MQSeriesClient-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 MQSeriesJava-7.0.0-0.i386.rpm MQSeriesJRE-7.0.0-0.i386.rpm MQSeriesKeyMan-7.0.0-0.i386.rpm MQSeriesMan-7.0.0-0.i386.rpm MQSeriesMsg_Zh_CN-7.0.0-0.i386.rpm MQSeriesRuntime-7.0.0-0.i386.rpm MQSeriesSamples-7.0.0-0.i386.rpm MQSeriesSDK-7.0.0-0.i386.rpm MQSeriesServer-7.0.0-0.i386.rpm MQSeriesTXClient-7.0.0-0.i386.rpm

rpm -ivh MQSeriesRuntime-7.0.0-0.i386.rpm MQSeriesServer-7.0.0-0.i386.rpm

------------------
rpm -ivh MQSeriesEclipseSDK33-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 -I INPUT -p tcp --dport 1416 -j ACCEPT

q1
---------------
crtmqm -q QUMICHCNSINOSH
strmqm QUMICHCNSINOSH
runmqsc QUMICHCNSINOSH
define qlocal(MICHCN.SINOSH_DI)
define listener(listener.QUMICHCNSINOSH) trptype(tcp) control(qmgr) port(1415)
delete listener(SYSTEM.DEFAULT.LISTENER.TCP)
start listener(LISTENER.QUMICHCNSINOSH)
define channel(MICHCN.TO.SINOSH) chltype(rcvr) trptype(tcp) sslciph(TRIPLE_DES_SHA_US)


display chstatus(MICHCN.TO.SINOSH)
display chstatus(SINOSH.TO.MICHCN)

alter qlocal(MICHCN.SINOSH_DI) DEFPSIST(YES)


alter qmgr sslkeyr('/var/mqm/qmgrs/QUMICHCNSINOSH/ssl/keySINOSH')
alter qmgr CCSID(437)
define qlocal(SINOSH.MICHCN.T) usage(xmitq)

alter qlocal(SINOSH.MICHCN.T) DEFPSIST(YES)

define qremote(SINOSH.MICHCN_DC) rname(SINOSH.MICHCN_DC) rqmname(QPSGTPI1) xmitq(SINOSH.MICHCN.T)
define qremote(SINOSH.MICHCN_SC) rname(SINOSH.MICHCN_SC) rqmname(QPSGTPI1) xmitq(SINOSH.MICHCN.T)
define qremote(SINOSH.MICHCN_AC) rname(SINOSH.MICHCN_AC) rqmname(QPSGTPI1) xmitq(SINOSH.MICHCN.T)
203.125.189.70
192.168.1.18
testing 202.95.77.185
define channel(SINOSH.TO.MICHCN) chltype(sdr) conname('202.95.77.185(1414)') trptype(tcp) xmitq(SINOSH.MICHCN.T) sslciph(TRIPLE_DES_SHA_US)


define channel(CLIENT.TO.SERVER) chltype(svrconn) trptype(tcp)



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

runmqchl -c SINOSH.TO.MICHCN -m QUMICHCNSINOSH &
endmqchl -c SINOSH.TO.MICHCN -m QUMICHCNSINOSH &

clear qlocal(SINOSH.MICHCN.T)
amqmdain auto QUMICHCNSINOSH

./amqsput SINOSH.MICHCN_DC

export JAVA_HOME=/opt/mqm/ssl/jre
export JAVA_HOME=/usr/local/jrockit
---------------------

ps -ef|grep java

service tomcatd start
service tomcatd stop
service tomcatd restop

export JAVA_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 -pw michelincn -format ascii

gsk7cmd -cert -add -file /var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.sth -db /var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.kdb -pw michelincn -label SINOSH -format binary
gsk7cmd -cert -receive -file /var/mqm/qmgrs/QUSGTPI1/ssl/KEYSINOSH.sth -db /var/mqm/qmgrs/QUSGTPI1/ssl/KEYSINOSH.kdb -pw michelincn -label SINOSH -format binary


gsk7cmd -keydb -stashpw -db /var/mqm/qmgrs/QUMICHCNSINOSH/