将压缩包上传至指定目录,比如:/home/hqh/MQ7下面。
[root@localhost hqh]# cd MQ7
[root@localhost MQ7]# ls
CZ50AML.tar.gz
[root@localhost MQ7]# chmod 755 CZ*
[root@localhost MQ7]# tar zxvf CZ50AML.tar.gz
copyright
gsk7bas-7.0-4.23.i386.rpm
lap/
lap/jre/
lap/jre/jre/
。。。。省略
READMEs/zh_TW.BIG5/
READMEs/zh_TW.BIG5/readme
[root@localhost MQ7]#
[root@localhost MQ7]# ./mqlicense.sh -text_only
Licensed Materials - Property of IBM
5724-H72
(C) Copyright IBM Corporation 1994, 2009 All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
License has already been accepted: Proceed with install.
如果不是上面的提示,可用如下方法解决:
在/tmp/ mq_license/ license/下面新建空文件status.dat
root@localhost MQ]# cd /tmp
[root@localhost tmp]# ls
gconfd-root orbit-root scim-panel-socket:0-root
hsperfdata_root scim-bridge-0.3.0.lockfile-0@localhost :0.0 scim-socket-frontend-root
keyring-pDTCX5 scim-bridge-0.3.0.socket-0@localhost :0.0 ssh-YrKzyL3494
mapping-root scim-helper-manager-socket-root virtual-root.m0Nmsa
[root@localhost tmp]# mkdir mq_license
[root@localhost tmp]# cd mq*
[root@localhost mq_license]# mkdir license
[root@localhost mq_license]# cd license
[root@localhost license]# ls
[root@localhost license]# vi status.dat
[root@localhost license]# ls
status.dat
[root@localhost MQ7]# chmod 755 *.rpm
再ls一下,变成绿色的了吧
[root@localhost MQ7]# rpm -ivh MQSeriesRuntime-7.0.0-0.i386.rpm
Preparing... ########################################### [100%]
Creating group mqm
Creating user mqm
1:MQSeriesRuntime ########################################### [100%]
[root@localhost MQ7]# rpm -ivh MQSeriesSDK-7.0.0-0.i386.rpm
Preparing... ########################################### [100%]
1:MQSeriesSDK ########################################### [100%]
[root@localhost MQ7]# rpm -ivh MQSeriesServer-7.0.0-0.i386.rpm
Preparing... ########################################### [100%]
1:MQSeriesServer ########################################### [100%]
[root@localhost MQ7]# rpm -ivh MQSeriesJava-7.0.0-0.i386.rpm
Preparing... ########################################### [100%]
1:MQSeriesJava ########################################### [100%]
[root@localhost MQ7]# rpm -ivh MQSeriesSamples-7.0.0-0.i386.rpm
Preparing... ########################################### [100%]
1:MQSeriesSamples ########################################### [100%]
[root@localhost MQ7]# rpm -ivh MQSeriesClient-7.0.0-0.i386.rpm
Preparing... ########################################### [100%]
1:MQSeriesClient ########################################### [100%]
[root@localhost MQ7]# rpm -ivh MQSeriesMsg_Zh_CN-7.0.0-0.i386.rpm
Preparing... ########################################### [100%]
1:MQSeriesMsg_Zh_CN ########################################### [100%]
[root@localhost MQ7]# rpm -ivh MQSeriesMan-7.0.0-0.i386.rpm
Preparing... ########################################### [100%]
1:MQSeriesMan ########################################### [100%]
[root@localhost MQ7]# rpm -ivh MQSeriesTXClient-7.0.0-0.i386.rpm
Preparing... ########################################### [100%]
1:MQSeriesTXClient ########################################### [100%]
[root@localhost MQ7]#
安装完毕。看看/opt和/var目录下面都多了个mqm目录。
[root@localhost MQ7]# cd /opt
[root@localhost opt]# ls
mqm
[root@localhost opt]# cd /var
[root@localhost var]# ls
account crash empty gdm local log mqm opt racoon spool yp
cache db games lib lock mail nis preserve run tmp
[root@localhost var]# cd mqm
[root@localhost mqm]# ls
config conv errors exits exits64 log mqclient.ini mqs.ini qmgrs service.env sockets tivoli trace