1.创建用户组
groupadd mqbrkrs
groupadd mqm
2.创建用户
useradd -g mqm -G mqm,mqbrkrs -d /home/mqm -m mqm
useradd -g mqbrkrs -G mqm -d /home/wbiadmin -m wbiadmin
passwd 用户名 ---------设置用户密码
3.解压安装介质
tar -zxvf IIB_IBTK_WS_MQ_LNX_X86-64.tar.gz
4.安装MQ
./mqlicense.sh
5安装rpm软件包:
rpm -ivh MQSeriesAMS-7.5.0-1.x86_64.rpm MQSeriesClient-7.5.0-1.x86_64.rpm MQSeriesExplorer-7.5.0-1.x86_64.rpm MQSeriesFTAgent-7.5.0-1.x86_64.rpm MQSeriesFTBase-7.5.0-1.x86_64.rpm MQSeriesFTLogger-7.5.0-1.x86_64.rpm MQSeriesFTService-7.5.0-1.x86_64.rpm MQSeriesFTTools-7.5.0-1.x86_64.rpm MQSeriesGSKit-7.5.0-1.x86_64.rpm MQSeriesJava-7.5.0-1.x86_64.rpm MQSeriesJRE-7.5.0-1.x86_64.rpm MQSeriesMan-7.5.0-1.x86_64.rpm MQSeriesMsg_cs-7.5.0-1.x86_64.rpm MQSeriesMsg_de-7.5.0-1.x86_64.rpm MQSeriesMsg_es-7.5.0-1.x86_64.rpm MQSeriesMsg_fr-7.5.0-1.x86_64.rpm MQSeriesMsg_hu-7.5.0-1.x86_64.rpm MQSeriesMsg_it-7.5.0-1.x86_64.rpm MQSeriesMsg_ja-7.5.0-1.x86_64.rpm MQSeriesMsg_ko-7.5.0-1.x86_64.rpm MQSeriesMsg_pl-7.5.0-1.x86_64.rpm MQSeriesMsg_pt-7.5.0-1.x86_64.rpm MQSeriesMsg_ru-7.5.0-1.x86_64.rpm MQSeriesMsg_Zh_CN-7.5.0-1.x86_64.rpm MQSeriesMsg_Zh_TW-7.5.0-1.x86_64.rpm MQSeriesRuntime-7.5.0-1.x86_64.rpm MQSeriesSamples-7.5.0-1.x86_64.rpm MQSeriesSDK-7.5.0-1.x86_64.rpm MQSeriesServer-7.5.0-1.x86_64.rpm MQSeriesXRClients-7.5.0-1.x86_64.rpm MQSeriesXRService-7.5.0-1.x86_64.rpm
6.检查安装包:
rpm -qa|grep MQ
7.测试MQ安装
用mqm用户登录
su - mqm
8.安装MB
./setuplinuxx64
9.安装Linux所需rpm包
rpm -ivh kernel-headers-2.6.32-358.el6.x86_64.rpm glibc-headers-2.12-1.107.el6.x86_64.rpm glibc-devel-2.12-1.107.el6.i686.rpm glibc-devel-2.12-1.107.el6.x86_64.rpm cpp-4.4.7-3.el6.x86_64.rpm libgomp-4.4.7-3.el6.x86_64.rpm libgomp-4.4.7-3.el6.i686.rpm libstdc++-devel-4.4.7-3.el6.x86_64.rpm libstdc++-devel-4.4.7-3.el6.i686.rpm gcc-4.4.7-3.el6.x86_64.rpm libgcc-4.4.7-3.el6.x86_64.rpm libgcc-4.4.7-3.el6.i686.rpm gcc-c++-4.4.7-3.el6.x86_64.rpm glibc-2.12-1.107.el6.i686.rpm glibc-2.12-1.107.el6.x86_64.rpm libstdc++-4.4.7-3.el6.x86_64.rpm libstdc++-4.4.7-3.el6.i686.rpm mpfr-2.4.1-6.el6.x86_64.rpm cloog-ppl-0.15.7-1.2.el6.i686.rpm cloog-ppl-0.15.7-1.2.el6.x86_64.rpm gmp-4.3.1-7.el6_2.2.i686.rpm gmp-4.3.1-7.el6_2.2.x86_64.rpm ppl-0.10.2-11.el6.x86_64.rpm ppl-0.10.2-11.el6.i686.rpm nss-softokn-freebl-3.12.9-11.el6.i686.rpm nss-softokn-freebl-3.12.9-11.el6.x86_64.rpm --force
10.安装MBTOOLKIT
先进入到IM_Linux目录下,执行
./
11.安装完成后,修改运行MB的用户的.profile,以便其能执行MB命令。
cd /home/mqm
su – mqm
vi .bash_profile
在.profile文件中增加一行(输入i进入编辑模式,x是撤销一个字符,d是撤销一行字符,esc退出编辑,:wq!保存退出):
. /opt/ibm/mqsi/7.0/bin/mqsiprofile
(上行中前两个字符中间有一个空格)
12.配置执行组的http访问端口
mqsichangeproperties TESTESBBRK01 -e appserver01 -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties TESTESBBRK01 -e appserver01 -o HTTPConnector -n explicitlySetPortNumber -v 8080
mqsichangeproperties TESTESBBRK01 -e main -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties TESTESBBRK01 -e main -o HTTPConnector -n explicitlySetPortNumber -v 8081
mqsichangeproperties TESTESBBRK01 -e test_crm01 -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties TESTESBBRK01 -e test_crm01 -o HTTPConnector -n explicitlySetPortNumber -v 8082
mqsichangeproperties TESTESBBRK01 -e testmain -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties TESTESBBRK01 -e testmain -o HTTPConnector -n explicitlySetPortNumber -v 8083
mqsichangeproperties XDFESBBRK01 -e HttpServiceServer01 -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties XDFESBBRK01 -e HttpServiceServer01 -o HTTPConnector -n explicitlySetPortNumber -v 9080
mqsichangeproperties XDFESBBRK01 -e HttpServiceServer02 -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties XDFESBBRK01 -e HttpServiceServer02 -o HTTPConnector -n explicitlySetPortNumber -v 9081
mqsichangeproperties XDFESBBRK01 -e HttpServiceServer03 -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties XDFESBBRK01 -e HttpServiceServer03 -o HTTPConnector -n explicitlySetPortNumber -v 9082
mqsichangeproperties XDFESBBRK01 -e HttpServiceServer04 -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties XDFESBBRK01 -e HttpServiceServer04 -o HTTPConnector -n explicitlySetPortNumber -v 9083
mqsichangeproperties XDFESBBRK01 -e AppServer -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties XDFESBBRK01 -e AppServer -o HTTPConnector -n explicitlySetPortNumber -v 9084
mqsichangeproperties XDFESBBRK02 -e HttpServiceServer05 -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties XDFESBBRK02 -e HttpServiceServer05 -o HTTPConnector -n explicitlySetPortNumber -v 9080
mqsichangeproperties XDFESBBRK02 -e HttpServiceServer06 -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties XDFESBBRK02 -e HttpServiceServer06 -o HTTPConnector -n explicitlySetPortNumber -v 9081
mqsichangeproperties XDFESBBRK02 -e AppServer -o ExecutionGroup -n httpNodesUseEmbeddedListener -v true
mqsichangeproperties XDFESBBRK02 -e AppServer -o HTTPConnector -n explicitlySetPortNumber -v 9082
注:MB7BROKER为代理名称,test1,test2为执行组名称 8088,8089为端口号