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/ssl/KEYSINOSH.kdb -pw michelincn
gsk7cmd -cert -list -db /var/mqm/qmgrs/QUMICHCNSINOSH/ssl/KEYSINOSH.kdb -pw michelincn


gsk7cmd -cert -import -db /var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.sth -pw michelincn -label SINOSH -type JKS -target  /var/mqm/qmgrs/QUSGTPI1/ssl/keySINOSH.kdb -target_pw pdsrv -target_type cms

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


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

更改队列管理器密钥资源库位置 在 runmqsc(MQExplorer 对应的命令行)中运行:
ALTER QMGR SSLKEYR(mynewfile) 
向队列管理器密钥资源库添加公共证书 在命令行提示符处运行:
KEYSINOSH.sth SSLQMGR
amqmcert -a -m QUSGTPI1 -s jmsclient.key
amqmcert -a -m QUSGTPI1 -s /var/mqm/qmgrs/QUSGTPI1/ssl/KEYSINOSH.sth

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

定义服务器连接通道 在 runmqsc(MQExplorer 对应的命令行)中运行:
DEF CHL(SSL.SVRCONN) SSLCIPH(RC4_MD5_US) 

你可能感兴趣的:(java,MQ)