天天看點

linux檢視websphereMQ版本,Linux上安裝WebSphere MQ 7.1

Linux上安裝WebSphere MQ

7.1

1. 解壓縮

1. tar -zxvf

WMQ_7.1.0.3_TRIAL_LNX_X86_64_ML.tar.gz

2. license accept

1. [[email protected] mqsoft]# ./mqlicense.sh

-accept

2. Licensed Materials -

Property of IBM

3.

5724-H72

4.  (C)

Copyright IBM Corporation 1994, 2011 All rights

reserved.

5. US Government Users

Restricted Rights - Use, duplication or disclosure

6. restricted by GSA ADP

Schedule Contract with IBM Corp.

7. Agreement accepted:

Proceed with install.

3. 安裝

MQSeriesRuntime

1. [[email protected] mqsoft]# rpm -ivh

MQSeriesRuntime-7.1.0-3.x86_64.rpm

2. Preparing...

###########################################

[100%]

3. Creating group

mqm

4. Creating user

mqm

5.  1:MQSeriesRuntime  ###########################################

[100%]

4. 安裝SDK 、Server

1. [[email protected] mqsoft]#  rpm

-ivh

MQSeriesSDK-7.1.0-3.x86_64.rpm

2. Preparing...

###########################################

[100%]

3.  1:MQSeriesSDK  ###########################################

[100%]

4. [[email protected] mqsoft]#

rpm -ivh

MQSeriesServer-7.1.0-3.x86_64.rpm

5. Preparing...

###########################################

[100%]

6.  1:MQSeriesServer  ########################################### [100%]

7. After the installation has

completed, run the '/opt/mqm/bin/mqconfig'

8. command, using the 'mqm'

user ID.

9. For example, execute the

following statement when running as the 'root' user:

10.  su mqm -c "/opt/mqm/bin/mqconfig"

11. The 'mqconfig' command

validates that the system configuration satisfies the

12. requirements for

WebSphere MQ, and ensures that the settings for the

'mqm'

13. user ID are suitably

configured.  Other WebSphere MQ administrators in

the

14. 'mqm' group can run this

command to ensure their user limits are also

15. properly configured to

use WebSphere MQ.

16. If 'mqconfig' indicates

that any of the requirements have not been met,

17. consult the installation

section within the WebSphere MQ Information Center

18. for details about how to

configure the system and user limits.

5.

安裝client、samples等

1. [[email protected] mqsoft]#  rpm

-ivh

MQSeriesClient-7.1.0-3.x86_64.rpm

2. Preparing...

###########################################

[100%]

3.  1:MQSeriesClient  ########################################### [100%]

4. [[email protected] mqsoft]# rpm

-ivh

MQSeriesSamples-7.1.0-3.x86_64.rpm

5. Preparing...

###########################################

[100%]

6.  1:MQSeriesSamples  ###########################################

[100%]

7. [[email protected] mqsoft]# rpm

-ivh MQSeriesJava-7.1.0-3.x86_64.rpm

8. Preparing...

###########################################

[100%]

9.  1:MQSeriesJava  ###########################################

[100%]

10. [[email protected] mqsoft]#

rpm -ivh

MQSeriesMsg_Zh_CN-7.1.0-3.x86_64.rpm

11. Preparing...

###########################################

[100%]

12.  1:MQSeriesMsg_Zh_CN  ###########################################

[100%]

13. [[email protected] mqsoft]# rpm

-ivh MQSeriesMan-7.1.0-3.x86_64.rpm

14. Preparing...

###########################################

[100%]

15.  1:MQSeriesMan  ###########################################

[100%]

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

6. 配置系統參數

vi

/etc/sysctl.conf

1. ...

2. kernel.sem = 500 256000

250 1024

3. kernel.shmall =

2097152

4. kernel.shmmax =

2147483648

5. kernel.shmmni =

4096

6. fs.file-max =

6815744

7.

net.ipv4.tcp_keepalive_time = 300

8. ...

vi

/etc/security/limits.conf

1. ...

2. mqm  hard  nofile  10240

3. mqm  soft  nofile  10240

4. mqm  hard  nproc  4096

5. mqm  soft  nproc  4096

6.

...

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

修改完sysctl.conf後使用 sysctl

-p立即生效。

然後執行su mqm -c

"/opt/mqm/bin/mqconfig"檢視配置,應該都為PASS了。

1. [[email protected] mqsoft]# su mqm -c

"/opt/mqm/bin/mqconfig"

2. mqconfig: Analyzing CentOS

release 6.3 (Final) settings for WebSphere MQ V7.1

3. System V

Semaphores

4.  semmsl

(sem:1)  500

semaphores  IBM>=500  PASS

5.  semmns

(sem:2)  1

of 256000 semaphores  (0%)

IBM>=256000

PASS

6.  semopm

(sem:3)  250

operations  IBM>=250  PASS

7.  semmni

(sem:4)  1

of 1024 sets  (0%)  IBM>=1024  PASS

8. System V Shared

Memory

9.  shmmax

2147483648 bytes  IBM>=268435456

PASS

10.  shmmni

1 of 4096 sets  (0%)  IBM>=4096  PASS

11.  shmall

387 of 2097152 pages  (0%)  IBM>=2097152  PASS

12. System

Settings

13.  file-max  4800 of

6815744 files  (0%)  IBM>=524288  PASS

14.  tcp_keepalive_time  300 seconds  IBM<=300  PASS

15. Current User Limits

(mqm)

16.  nofile

(-Hn)

10240 files  IBM>=10240  PASS

17.  nofile

(-Sn)

10240 files  IBM>=10240  PASS

18.  nproc

(-Hu)  9 of 4096 processes

(0%)  IBM>=4096  PASS

19.  nproc

(-Su)  9 of 4096 processes

(0%)  IBM>=4096  PASS

7. 使用passwd

mqm解鎖使用者mqm,并以mqm用進行操作

vi

/var/mqm/.bash_profile 将MQ指令目錄添加到環境變量PATH

1.

PATH=$PATH:/opt/mqm/samp/bin:/opt/mqm/bin

2. export PATH

建立mq管理器

1. -bash-4.1$ crtmqm -q QM1

2. There are 90 days left in

the trial period for this copy of WebSphere MQ.

3. WebSphere MQ queue manager

created.

4. Directory

'/var/mqm/qmgrs/QM1' created.

5. The queue manager is

associated with installation 'Installation1'.

6. Creating or replacing

default objects for queue manager 'QM1'.

7. Default objects statistics

: 71 created. 0 replaced. 0 failed.

8. Completing

setup.

9. Setup

completed.

8.啟動、停止mq服務指令

0.

# su - mqm

1. -bash-4.1$ endmqm QM1

&& endmqlsr

2. -bash-4.1$ strmqm QM1

&& runmqlsr -m QM1 -t TCP &

9. 配置遠端管理

1. runmqsc QM1

2. DEFINE CHANNEL

(SYSTEM.ADMIN.SVRCONN) CHLTYPE(SVRCONN) TRPTYPE(TCP) MCAUSER('mqm')

REPLACE

3. SET

CHLAUTH(SYSTEM.ADMIN.SVRCONN) TYPE(BLOCKUSER)

USERLIST('nobody')

4. SET

CHLAUTH(SYSTEM.ADMIN.SVRCONN) TYPE(ADDRESSMAP) ADDRESS(*)

ACTION(REMOVE)

5. SET CHLAUTH(SYSTEM.*)

TYPE(ADDRESSMAP) ADDRESS(*) ACTION(REMOVE)

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

WMQ2035相關

1. useradd -g mqm

Administrator

2. runmqsc

3. DISPLAY

CHANNEL(CEA.ESB.GW.TSKY)

4. ALTER CHANNEL

(CEA.ESB.GW.TSKY) CHLTYPE(SVRCONN)

MCAUSER('MUSR_MQADMIN')

5. ALTER CHANNEL

(CEA.ESB.GW.TSKY) CHLTYPE(SVRCONN)

MCAUSER('Administrator')

6. ALTER CHANNEL

(CEA.ESB.GW.TSKY) CHLTYPE(SVRCONN) MCAUSER('mqm')

7. ALTER CHANNEL

(CEA.ESB.GW.TSKY) CHLTYPE(SVRCONN) MCAUSER('')

8. DISPLAY QMGR

CHLAUTH

9. alter qmgr

chlauth(disabled)

10. alter qmgr

chlauth(enabled)

11. ALTER QMGR

CHLAUTH(DISABLED)

12. ALTER QMGR

CHLAUTH(ENABLED)

13. DISPLAY CHLAUTH(*)

TYPE(USERMAP)

14. SET CHLAUTH(*)

TYPE(USERMAP) CLNTUSER('mqm') USERSRC(CHANNEL)

ACTION(ADD)

15. SET CHLAUTH(*)

TYPE(USERMAP) CLNTUSER('admin') USERSRC(CHANNEL)

ACTION(ADD)