介质:https://www.ibm.com/support/pages/node/314905
安装:
[root@pg01 ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[root@pg01 root]# cd /root
[root@pg01 ~]# ll
-rw-r--r--. 1 root root 520755200 Oct 14 2019 WS_MQ_LINUX_ON_X86_64_7.5.0.2_IMG.tar
[root@pg01 ~]# tar -xvf WS_MQ_LINUX_ON_X86_64_7.5.0.2_IMG.tar
copyright
crtmqpkg
......
[root@pg01 ~]# ./mqlicense.sh
Licensed Materials - Property of IBM
5724-H72
(C) Copyright IBM Corporation 1994, 2013 All rights reserved.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.
IMPORTANT: READ CAREFULLY
Two license agreements are presented below.
1. IBM International License Agreement for Evaluation of
Programs
2. IBM International Program License Agreement
If Licensee is obtaining the Program for purposes of
productive use (other than evaluation, testing, trial "try
or buy," or demonstration): By clicking on the "Accept"
button below, Licensee accepts the IBM International
Program License Agreement, without modification.
If Licensee is obtaining the Program for the purpose of
Press Enter to continue viewing the license agreement, or
enter "1" to accept the agreement, "2" to decline it, "3"
to print it, "4" to read non-IBM terms, or "99" to go back
to the previous screen.
1
Agreement accepted: Proceed with install.
[root@pg01 ~]# rpm -ivh MQSeriesRuntime-7.5.0-2.x86_64.rpm
Preparing... ################################# [100%]
Creating group mqm
Creating user mqm
Updating / installing...
1:MQSeriesRuntime-7.5.0-2 ################################# [100%]
[root@pg01 ~]# rpm -ivh MQSeriesSamples-7.5.0-2.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesSamples-7.5.0-2 ################################# [100%]
[root@pg01 ~]# rpm -ivh MQSeriesServer-7.5.0-2.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesServer-7.5.0-2 ################################# [100%]
After the installation has completed, run the '/opt/mqm/bin/mqconfig'
command, using the 'mqm' user ID.
For example, execute the following statement when running as the 'root' user:
su mqm -c "/opt/mqm/bin/mqconfig"
The 'mqconfig' command validates that the system configuration satisfies the
requirements for WebSphere MQ, and ensures that the settings for the 'mqm'
user ID are suitably configured. Other WebSphere MQ administrators in the
'mqm' group can run this command to ensure their user limits are also
properly configured to use WebSphere MQ.
If 'mqconfig' indicates that any of the requirements have not been met,
consult the installation section within the WebSphere MQ Information Center
for details about how to configure the system and user limits.
[root@pg01 ~]# id mqm
uid=998(mqm) gid=1002(mqm) groups=1002(mqm)
[root@pg01 ~]# su mqm -c "/opt/mqm/bin/mqconfig"
mqconfig: Analyzing CentOS Linux release 7.7.1908 (Core) settings for
WebSphere MQ V7.5
mqconfig: The bc program was not found on this system. Please install bc
and try running mqconfig again.
[root@pg01 ~]# yum install -y bc
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.bupt.edu.cn
--> Running transaction check
---> Package bc.x86_64 0:1.06.95-13.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================
Installing:
bc x86_64 1.06.95-13.el7 base 115 k
Transaction Summary
===================================================================================================================================================
Install 1 Package
Total download size: 115 k
Installed size: 215 k
Downloading packages:
bc-1.06.95-13.el7.x86_64.rpm | 115 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : bc-1.06.95-13.el7.x86_64 1/1
Verifying : bc-1.06.95-13.el7.x86_64 1/1
Installed:
bc.x86_64 0:1.06.95-13.el7
Complete!
[root@pg01 ~]# su mqm -c "/opt/mqm/bin/mqconfig"
mqconfig: Analyzing CentOS Linux release 7.7.1908 (Core) settings for
WebSphere MQ V7.5
System V Semaphores
semmsl (sem:1) 250 semaphores IBM>=500 FAIL
semmns (sem:2) 2 of 32000 semaphores (0%) IBM>=256000 FAIL
semopm (sem:3) 32 operations IBM>=250 FAIL
semmni (sem:4) 2 of 128 sets (1%) IBM>=1024 FAIL
System V Shared Memory
shmmax 18446744073692774399 bytes IBM>=268435456 PASS
shmmni 2 of 4096 sets (0%) IBM>=4096 PASS
shmall 4 of 18446744073692774399 pages (0%) IBM>=2097152 PASS
System Settings
file-max 1472 of 180938 files (0%) IBM>=524288 FAIL
tcp_keepalive_time 7200 seconds IBM<=300 FAIL
Current User Limits (mqm)
nofile (-Hn) 4096 files IBM>=10240 FAIL
nofile (-Sn) 1024 files IBM>=10240 FAIL
nproc (-Hu) 9 of 7183 processes (0%) IBM>=4096 PASS
nproc (-Su) 9 of 4096 processes (0%) IBM>=4096 PASS
[root@pg01 ~]# sysctl -a|grep fs.file
fs.file-max = 180938
fs.file-nr = 1440 0 180938
fs.xfs.filestream_centisecs = 3000
sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.ens33.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
[root@pg01 ~]# sysctl -a|grep kernel.sem
kernel.sem = 250 32000 32 128
kernel.sem_next_id = -1
sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
sysctl: reading key "net.ipv6.conf.ens33.stable_secret"
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
[root@pg01 ~]# sysctl -a|grep net.ipv4.tcp_keep
sysctl: reading key "net.ipv6.conf.all.stable_secret"
sysctl: reading key "net.ipv6.conf.default.stable_secret"
net.ipv4.tcp_keepalive_intvl = 75
sysctl: net.ipv4.tcp_keepalive_probes = 9
reading key "net.ipv6.conf.ens33.stable_secret"
net.ipv4.tcp_keepalive_time = 7200
sysctl: reading key "net.ipv6.conf.lo.stable_secret"
[root@pg01 ~]# vi /etc/sysctl.conf
kernel.sem = 500 256000 250 1024
net.ipv4.tcp_keepalive_time = 300
fs.file-max = 524288
"/etc/sysctl.conf" 13L, 537C written
[root@pg01 ~]# sysctl -p
kernel.sem = 500 256000 250 1024
net.ipv4.tcp_keepalive_time = 300
fs.file-max = 524288
[root@pg01 ~]# vi /etc/security/limits.conf
mqm hard nofile 10240
mqm soft nofile 10240
"/etc/security/limits.conf" 67L, 2596C written
[root@pg01 ~]# su - mqm
Last login: Thu Sep 2 12:10:11 CST 2021 on pts/0
-bash-4.2$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 7183
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 10240
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 4096
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
-bash-4.2$ pwd
/var/mqm
-bash-4.2$ ll /opt/mqm/
total 48
dr-xr-xr-x. 2 mqm mqm 4096 Sep 2 12:08 bin
dr-xr-xr-x. 16 mqm mqm 188 Sep 2 12:08 doc
dr-xr-xr-x. 2 mqm mqm 24 Sep 2 12:08 inc
-r--r--r--. 1 mqm mqm 13587 Jul 4 2013 instinfo.tsk
dr-xr-xr-x. 6 mqm mqm 53 Sep 2 12:08 java
dr-xr-xr-x. 5 mqm mqm 4096 Sep 2 12:08 lib
dr-xr-xr-x. 4 mqm mqm 4096 Sep 2 12:08 lib64
dr-xr-xr-x. 2 mqm mqm 4096 Sep 2 12:08 licenses
dr-xr-xr-x. 3 mqm mqm 19 Sep 2 12:08 msg
dr-xr-xr-x. 3 mqm mqm 21 Jul 4 2013 properties
dr-xr-xr-x. 3 mqm mqm 19 Sep 2 12:08 READMES
dr-xr-xr-x. 11 mqm mqm 4096 Sep 2 12:08 samp
-bash-4.2$ exit
logout
[root@pg01 ~]# vi /etc/profile
PATH=/opt/mqm/bin:/opt/mqm/samp/bin/:$PATH
"/etc/profile" 77L, 1862C written
[root@pg01 ~]# source /etc/profile
[root@pg01 ~]#
[root@pg01 ~]# su - mqm
Last login: Thu Sep 2 12:12:21 CST 2021 on pts/0
-bash-4.2$ crtmqm -q oe
WebSphere MQ queue manager created.
Directory '/var/mqm/qmgrs/oe' created.
The queue manager is associated with installation 'Installation1'.
Creating or replacing default objects for queue manager 'oe'.
Default objects statistics : 74 created. 0 replaced. 0 failed.
Completing setup.
Setup completed.
-bash-4.2$ dspmq
QMNAME(oe) STATUS(Ended immediately)
-bash-4.2$ strmqm oe
WebSphere MQ queue manager 'oe' starting.
The queue manager is associated with installation 'Installation1'.
5 log records accessed on queue manager 'oe' during the log replay phase.
Log replay for queue manager 'oe' complete.
Transaction manager state recovered for queue manager 'oe'.
WebSphere MQ queue manager 'oe' started using V7.5.0.2.
-bash-4.2$ runmqsc oe
5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED.
Starting MQSC for queue manager oe.
:
define qlocal(test)
1 : define qlocal(test)
AMQ8006: WebSphere MQ queue created.
end
2 : end
One MQSC command read.
No commands have a syntax error.
All valid MQSC commands were processed.
-bash-4.2$ amqsput Test oe
Sample AMQSPUT0 start
target queue is Test
MQOPEN ended with reason code 2085
unable to open queue for output
Sample AMQSPUT0 end
-bash-4.2$ amqsput TEST oe
Sample AMQSPUT0 start
target queue is TEST
hello world!
Sample AMQSPUT0 end
-bash-4.2$ amqsget TEST oe
Sample AMQSGET0 start
message <hello world!>
exit
quit
^C
-bash-4.2$ netstat -tunlp|grep LISTEN
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp6 0 0 ::1:25 :::* LISTEN -
tcp6 0 0 :::4236 :::* LISTEN -
tcp6 0 0 :::5236 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
-bash-4.2$ exit
logout
[root@pg01 ~]# netstat -tunlp|grep LISTEN
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 1016/postmaster
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1250/master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 992/sshd
tcp6 0 0 ::1:25 :::* LISTEN 1250/master
tcp6 0 0 :::4236 :::* LISTEN 4565/dmap
tcp6 0 0 :::5236 :::* LISTEN 4746/dmserver
tcp6 0 0 :::22 :::* LISTEN 992/sshd
[root@pg01 ~]# su - mqm
Last login: Thu Sep 2 12:13:19 CST 2021 on pts/0
-bash-4.2$ runmqlsr -t tcp -p 2424 -m oe &
[1] 6560
-bash-4.2$ 5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED.
-bash-4.2$ netstat -tpln|grep 2424
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 0 0 :::2424 :::* LISTEN 6560/runmqlsr
-bash-4.2$ exit
logout
[root@pg01 ~]# netstat -tunlp|grep LISTEN
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 1016/postmaster
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 1250/master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 992/sshd
tcp6 0 0 :::2424 :::* LISTEN 6560/runmqlsr
tcp6 0 0 ::1:25 :::* LISTEN 1250/master
tcp6 0 0 :::4236 :::* LISTEN 4565/dmap
tcp6 0 0 :::5236 :::* LISTEN 4746/dmserver
tcp6 0 0 :::22 :::* LISTEN 992/sshd
[root@pg01 bin]# su mqm
bash-4.2$ dspmqver
Name: WebSphere MQ
Version: 7.5.0.2
Level: p750-002-130704
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 3.10.0-1062.el7.x86_64
InstName: Installation1
InstDesc:
Primary: No
InstPath: /opt/mqm
DataPath: /var/mqm
MaxCmdLevel: 750
打补丁
bash-4.2$ pwd
/opt/mqm/bin
bash-4.2$ exit
exit
[root@pg01 bin]# pwd
/opt/mqm/bin
[root@pg01 bin]# cd /root/mqpatch/
[root@pg01 mqpatch]# ll
total 786256
-rw-r--r--. 1 root root 404101120 Oct 14 2019 7.5.0-WS-MQ-LinuxX64-FP0005.tar
-rwxr-xr-x. 1 root 12201 5563 Apr 24 2015 crtmqfp
-rw-r--r--. 1 root 12201 39750 Apr 24 2015 MQSeriesAMS-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 4478742 Apr 24 2015 MQSeriesClient-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 154057914 Apr 24 2015 MQSeriesExplorer-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 2656595 Apr 24 2015 MQSeriesFTAgent-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 28927126 Apr 24 2015 MQSeriesFTBase-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 13407922 Apr 24 2015 MQSeriesFTLogger-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 15345528 Apr 24 2015 MQSeriesFTService-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 48898 Apr 24 2015 MQSeriesFTTools-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 22251874 Apr 24 2015 MQSeriesGSKit-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 28413900 Apr 24 2015 MQSeriesJava-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 73133582 Apr 24 2015 MQSeriesJRE-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 329464 Apr 24 2015 MQSeriesMan-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 184280 Apr 24 2015 MQSeriesMsg_cs-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 190500 Apr 24 2015 MQSeriesMsg_de-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 182636 Apr 24 2015 MQSeriesMsg_es-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 182943 Apr 24 2015 MQSeriesMsg_fr-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 185998 Apr 24 2015 MQSeriesMsg_hu-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 184357 Apr 24 2015 MQSeriesMsg_it-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 173895 Apr 24 2015 MQSeriesMsg_ja-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 167153 Apr 24 2015 MQSeriesMsg_ko-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 185001 Apr 24 2015 MQSeriesMsg_pl-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 184186 Apr 24 2015 MQSeriesMsg_pt-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 177450 Apr 24 2015 MQSeriesMsg_ru-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 172239 Apr 24 2015 MQSeriesMsg_Zh_CN-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 173986 Apr 24 2015 MQSeriesMsg_Zh_TW-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 17614851 Apr 24 2015 MQSeriesRuntime-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 901102 Apr 24 2015 MQSeriesSamples-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 234359 Apr 24 2015 MQSeriesSDK-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 28102938 Apr 24 2015 MQSeriesServer-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 7272819 Apr 24 2015 MQSeriesXRClients-U200533-7.5.0-5.x86_64.rpm
-rw-r--r--. 1 root 12201 1384460 Apr 24 2015 MQSeriesXRService-U200533-7.5.0-5.x86_64.rpm
-r--r--r--. 1 root 12201 3669 Apr 28 2015 readme
drwxr-xr-x. 2 root 12201 4096 Apr 24 2015 repackage
[root@pg01 mqpatch]# rpm -Uvh MQSeriesRuntime-U200533-7.5.0-5.x86_64.rpm
Preparing... ################################# [100%]
ERROR: Shared resources for installation at /opt/mqm are in use.
Please ensure no WebSphere MQ processes are running for this installation
before installing this maintenance package
error: %pre(MQSeriesRuntime-U200533-7.5.0-5.x86_64) scriptlet failed, exit status 1
error: MQSeriesRuntime-U200533-7.5.0-5.x86_64: install failed
[root@pg01 mqpatch]# su - mqm
Last login: Thu Sep 2 12:30:57 CST 2021 on pts/0
-bash-4.2$ dspmq
QMNAME(oe) STATUS(Running)
-bash-4.2$ endmqm -i oe
WebSphere MQ queue manager 'oe' ending.
WebSphere MQ queue manager 'oe' ended.
-bash-4.2$ dspmq
QMNAME(oe) STATUS(Ended immediately)
-bash-4.2$ netstat -tunlp|grep LISTEN|grep 2424
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp6 0 0 :::2424 :::* LISTEN 6560/runmqlsr
-bash-4.2$ dspmq
QMNAME(oe) STATUS(Ended immediately)
-bash-4.2$ ps -ef|grep mq
mqm 6330 1 0 12:13 ? 00:00:00 /opt/mqm/bin/amqzmgr0 -m oe
mqm 6560 1 0 12:16 pts/0 00:00:00 runmqlsr -t tcp -p 2424 -m oe
root 7609 1545 0 12:34 pts/0 00:00:00 su - mqm
mqm 7610 7609 0 12:34 pts/0 00:00:00 -bash
mqm 7856 7610 0 12:38 pts/0 00:00:00 ps -ef
mqm 7857 7610 0 12:38 pts/0 00:00:00 grep --color=auto mq
-bash-4.2$ kill -9 6330 6560
-bash-4.2$ ps -ef|grep mq
root 7609 1545 0 12:34 pts/0 00:00:00 su - mqm
mqm 7610 7609 0 12:34 pts/0 00:00:00 -bash
mqm 7870 7610 0 12:38 pts/0 00:00:00 ps -ef
mqm 7871 7610 0 12:38 pts/0 00:00:00 grep --color=auto mq
-bash-4.2$ netstat -tunlp|grep LISTEN|grep 2424
(No info could be read for "-p": geteuid()=998 but you should be root.)
-bash-4.2$ exit
logout
[root@pg01 mqpatch]# rpm -Uvh MQSeriesRuntime-U200533-7.5.0-5.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesRuntime-U200533-7.5.0-5 ################################# [100%]
[root@pg01 mqpatch]# rpm -Uvh MQSeriesServer-U200533-7.5.0-5.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesServer-U200533-7.5.0-5 ################################# [100%]
After the installation of this fix pack has completed, run the
'/opt/mqm/bin/mqconfig' command, using the 'mqm' user ID.
For example, execute the following statement when running as the 'root' user:
su mqm -c "/opt/mqm/bin/mqconfig"
The 'mqconfig' command validates that the system configuration satisfies the
requirements for WebSphere MQ, and ensures that the settings for the 'mqm'
user ID are suitably configured. Other WebSphere MQ administrators in the
'mqm' group can run this command to ensure their user limits are also
properly configured to use WebSphere MQ.
If 'mqconfig' indicates that any of the requirements have not been met,
consult the installation section within the WebSphere MQ Information Center
for details about how to configure the system and user limits.
[root@pg01 mqpatch]# rpm -Uvh MQSeriesSamples-U200533-7.5.0-5.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesSamples-U200533-7.5.0-5 ################################# [100%]
[root@pg01 mqpatch]# su mqm -c "/opt/mqm/bin/mqconfig"
mqconfig: Analyzing CentOS Linux release 7.7.1908 (Core) settings for
WebSphere MQ V7.5
System V Semaphores
semmsl (sem:1) 500 semaphores IBM>=500 PASS
semmns (sem:2) 11 of 256000 semaphores (0%) IBM>=256000 PASS
semopm (sem:3) 250 operations IBM>=250 PASS
semmni (sem:4) 4 of 1024 sets (0%) IBM>=1024 PASS
System V Shared Memory
shmmax 18446744073692774399 bytes IBM>=268435456 PASS
shmmni 2 of 4096 sets (0%) IBM>=4096 PASS
shmall 4 of 18446744073692774399 pages (0%) IBM>=2097152 PASS
System Settings
file-max 1472 of 524288 files (0%) IBM>=524288 PASS
tcp_keepalive_time 300 seconds IBM<=300 PASS
Current User Limits (mqm)
nofile (-Hn) 10240 files IBM>=10240 PASS
nofile (-Sn) 10240 files IBM>=10240 PASS
nproc (-Hu) 9 of 7183 processes (0%) IBM>=4096 PASS
nproc (-Su) 9 of 4096 processes (0%) IBM>=4096 PASS
[root@pg01 mqpatch]# su - mqm
Last login: Thu Sep 2 12:39:49 CST 2021 on pts/0
-bash-4.2$ dspmqver
Name: WebSphere MQ
Version: 7.5.0.5
Level: p750-005-150424
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 3.10.0-1062.el7.x86_64
InstName: Installation1
InstDesc:
Primary: No
InstPath: /opt/mqm
DataPath: /var/mqm
MaxCmdLevel: 750
LicenseType: Production
-bash-4.2$
测试再打最新补丁
[root@pg01 mqpatch]# ll
total 388480
-rw-r--r--. 1 root root 397803481 Sep 2 13:08 7.5.0-WS-MQ-LinuxX64-FP0009.tar.gz
[root@pg01 mqpatch]# tar -zxvf 7.5.0-WS-MQ-LinuxX64-FP0009.tar.gz
./
./MQSeriesAMS-U201338-7.5.0-9.x86_64.rpm
./MQSeriesClient-U201338-7.5.0-9.x86_64.rpm
./MQSeriesExplorer-U201338-7.5.0-9.x86_64.rpm
./MQSeriesFTAgent-U201338-7.5.0-9.x86_64.rpm
./MQSeriesFTBase-U201338-7.5.0-9.x86_64.rpm
./MQSeriesFTLogger-U201338-7.5.0-9.x86_64.rpm
./MQSeriesFTService-U201338-7.5.0-9.x86_64.rpm
./MQSeriesFTTools-U201338-7.5.0-9.x86_64.rpm
./MQSeriesGSKit-U201338-7.5.0-9.x86_64.rpm
./MQSeriesJRE-U201338-7.5.0-9.x86_64.rpm
./MQSeriesJava-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMan-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_Zh_CN-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_Zh_TW-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_cs-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_de-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_es-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_fr-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_hu-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_it-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_ja-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_ko-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_pl-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_pt-U201338-7.5.0-9.x86_64.rpm
./MQSeriesMsg_ru-U201338-7.5.0-9.x86_64.rpm
./MQSeriesRuntime-U201338-7.5.0-9.x86_64.rpm
./MQSeriesSDK-U201338-7.5.0-9.x86_64.rpm
./MQSeriesSamples-U201338-7.5.0-9.x86_64.rpm
./MQSeriesServer-U201338-7.5.0-9.x86_64.rpm
./MQSeriesXRClients-U201338-7.5.0-9.x86_64.rpm
./MQSeriesXRService-U201338-7.5.0-9.x86_64.rpm
./crtmqfp
./readme
./repackage/
./repackage/MQSeriesAMS.spec
./repackage/MQSeriesClient.spec
./repackage/MQSeriesExplorer.spec
./repackage/MQSeriesFTAgent.spec
./repackage/MQSeriesFTBase.spec
./repackage/MQSeriesFTLogger.spec
./repackage/MQSeriesFTService.spec
./repackage/MQSeriesFTTools.spec
./repackage/MQSeriesGSKit.spec
./repackage/MQSeriesJRE.spec
./repackage/MQSeriesJava.spec
./repackage/MQSeriesMan.spec
./repackage/MQSeriesMsg_Zh_CN.spec
./repackage/MQSeriesMsg_Zh_TW.spec
./repackage/MQSeriesMsg_cs.spec
./repackage/MQSeriesMsg_de.spec
./repackage/MQSeriesMsg_es.spec
./repackage/MQSeriesMsg_fr.spec
./repackage/MQSeriesMsg_hu.spec
./repackage/MQSeriesMsg_it.spec
./repackage/MQSeriesMsg_ja.spec
./repackage/MQSeriesMsg_ko.spec
./repackage/MQSeriesMsg_pl.spec
./repackage/MQSeriesMsg_pt.spec
./repackage/MQSeriesMsg_ru.spec
./repackage/MQSeriesRuntime.spec
./repackage/MQSeriesSDK.spec
./repackage/MQSeriesSamples.spec
./repackage/MQSeriesServer.spec
./repackage/MQSeriesXRClients.spec
./repackage/MQSeriesXRService.spec
[root@pg01 mqpatch]# ll
total 778640
-rw-r--r--. 1 root root 397803481 Sep 2 13:08 7.5.0-WS-MQ-LinuxX64-FP0009.tar.gz
-rwxr-xr-x. 1 root 12201 5563 Aug 30 2018 crtmqfp
-rw-r--r--. 1 root 12201 44873 Aug 30 2018 MQSeriesAMS-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 4511970 Aug 30 2018 MQSeriesClient-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 154234558 Aug 30 2018 MQSeriesExplorer-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 2725620 Aug 30 2018 MQSeriesFTAgent-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 21423783 Aug 30 2018 MQSeriesFTBase-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 13428316 Aug 30 2018 MQSeriesFTLogger-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 15369130 Aug 30 2018 MQSeriesFTService-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 54058 Aug 30 2018 MQSeriesFTTools-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 28218650 Aug 30 2018 MQSeriesGSKit-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 28684457 Aug 30 2018 MQSeriesJava-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 77939268 Aug 30 2018 MQSeriesJRE-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 334531 Aug 30 2018 MQSeriesMan-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 191157 Aug 30 2018 MQSeriesMsg_cs-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 198288 Aug 30 2018 MQSeriesMsg_de-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 189126 Aug 30 2018 MQSeriesMsg_es-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 189488 Aug 30 2018 MQSeriesMsg_fr-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 192985 Aug 30 2018 MQSeriesMsg_hu-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 191019 Aug 30 2018 MQSeriesMsg_it-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 180307 Aug 30 2018 MQSeriesMsg_ja-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 173496 Aug 30 2018 MQSeriesMsg_ko-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 191593 Aug 30 2018 MQSeriesMsg_pl-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 190768 Aug 30 2018 MQSeriesMsg_pt-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 183940 Aug 30 2018 MQSeriesMsg_ru-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 178507 Aug 30 2018 MQSeriesMsg_Zh_CN-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 180133 Aug 30 2018 MQSeriesMsg_Zh_TW-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 17680601 Aug 30 2018 MQSeriesRuntime-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 906534 Aug 30 2018 MQSeriesSamples-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 239618 Aug 30 2018 MQSeriesSDK-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 22580997 Aug 30 2018 MQSeriesServer-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 7240314 Aug 30 2018 MQSeriesXRClients-U201338-7.5.0-9.x86_64.rpm
-rw-r--r--. 1 root 12201 1392797 Aug 30 2018 MQSeriesXRService-U201338-7.5.0-9.x86_64.rpm
-rw-rw-r--. 1 root 12201 3669 Aug 30 2018 readme
drwxr-xr-x. 2 root 12201 4096 Aug 30 2018 repackage
[root@pg01 mqpatch]# history|grep Uvh
288 rpm -Uvh MQSeriesRuntime-U200533-7.5.0-5.x86_64.rpm
290 rpm -Uvh MQSeriesRuntime-U200533-7.5.0-5.x86_64.rpm
291 rpm -Uvh MQSeriesServer-U200533-7.5.0-5.x86_64.rpm
292 rpm -Uvh MQSeriesSamples-U200533-7.5.0-5.x86_64.rpm
306 history|grep Uvh
[root@pg01 mqpatch]# rpm -Uvh MQSeriesRuntime-U201338-7.5.0-9.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesRuntime-U201338-7.5.0-9 ################################# [100%]
[root@pg01 mqpatch]# rpm -Uvh MQSeriesSamples-U201338-7.5.0-9.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesSamples-U201338-7.5.0-9 ################################# [100%]
[root@pg01 mqpatch]# rpm -Uvh MQSeriesServer-U201338-7.5.0-9.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:MQSeriesServer-U201338-7.5.0-9 ################################# [100%]
After the installation of this fix pack has completed, run the
'/opt/mqm/bin/mqconfig' command, using the 'mqm' user ID.
For example, execute the following statement when running as the 'root' user:
su mqm -c "/opt/mqm/bin/mqconfig"
The 'mqconfig' command validates that the system configuration satisfies the
requirements for WebSphere MQ, and ensures that the settings for the 'mqm'
user ID are suitably configured. Other WebSphere MQ administrators in the
'mqm' group can run this command to ensure their user limits are also
properly configured to use WebSphere MQ.
If 'mqconfig' indicates that any of the requirements have not been met,
consult the installation section within the WebSphere MQ Information Center
for details about how to configure the system and user limits.
[root@pg01 mqpatch]# su mqm -c "/opt/mqm/bin/mqconfig"
mqconfig: Analyzing CentOS Linux release 7.7.1908 (Core) settings for
WebSphere MQ V7.5
System V Semaphores
semmsl (sem:1) 500 semaphores IBM>=500 PASS
semmns (sem:2) 11 of 256000 semaphores (0%) IBM>=256000 PASS
semopm (sem:3) 250 operations IBM>=250 PASS
semmni (sem:4) 4 of 1024 sets (0%) IBM>=1024 PASS
System V Shared Memory
shmmax 18446744073692774399 bytes IBM>=268435456 PASS
shmmni 2 of 4096 sets (0%) IBM>=4096 PASS
shmall 4 of 18446744073692774399 pages (0%) IBM>=2097152 PASS
System Settings
file-max 1440 of 524288 files (0%) IBM>=524288 PASS
tcp_keepalive_time 300 seconds IBM<=300 PASS
Current User Limits (mqm)
nofile (-Hn) 10240 files IBM>=10240 PASS
nofile (-Sn) 10240 files IBM>=10240 PASS
nproc (-Hu) 9 of 7183 processes (0%) IBM>=4096 PASS
nproc (-Su) 9 of 4096 processes (0%) IBM>=4096 PASS
[root@pg01 mqpatch]# su - mqm
Last login: Thu Sep 2 13:14:39 CST 2021 on pts/0
-bash-4.2$ dspmqver
Name: WebSphere MQ
Version: 7.5.0.9
Level: p750-009-180830
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Linux (x86-64 platform)
Mode: 64-bit
O/S: Linux 3.10.0-1062.el7.x86_64
InstName: Installation1
InstDesc:
Primary: No
InstPath: /opt/mqm
DataPath: /var/mqm
MaxCmdLevel: 750
LicenseType: Production
-bash-4.2$
相关参考:
https://www.ibm.com/docs/en/ibm-mq/7.5?topic=server-installing-websphere-mq-linux
IBM MQ 7.5开发版安装配置
https://blog.51cto.com/niubdada/2057674
IBM MQ常用命令:
查看版本
$dspmqver
队列管理器
显示队列管理器
$dspmq
(显示所有)$dspmq -m MQCHNMSCS01
(显示指定)
修改队列管理器权限
ALTER QMGR CHLAUTH(DISABLED)
关闭通道权限
创建队列管理器
$crtmqm MQCHNMSCS01
$crtmqm -q MQCHNMSCS01
(-q 创建 缺省的 队列管理器)
删除队列管理器
$dltmqm MQCHNMSCS02
启动队列管理器
$strmqm MQCHNMSCS11
停止队列管理器
$endmqm MQCHNMSCS02
(受控停止)$endmqm -i MQCHNMSCS11
(立即停止)$endmqm -p MQCHNMSCS11
(强制停止)
<wsa:MessageID>
进入mq环境 运行指令
$runmqsc MQCHNMSCS01
mq环境 常见指令
查询队列管理器属性
dis qmgr
dis qmgr ccsid
查看队列定义及状态
dis q(*) (所有队列)
dis qlocal(QName) (本地队列)
dis qs(QName) (主要属性)
查看通道定义 和 状态
dis chl(*)
dis chl(SYSTEM.DEF.SVRCONN)
dis chl(TO.MQCHNMSCS01)
dis chl(TO.MQCHNMSCS11)
dis chs(SYSTEM.DEF.SVRCONN)
dis chs(TO.MQCHNMSCS01)
dis chs(TO.MQCHNMSCS11)
启动/停止/重置通道
$runmqchl -c CHNMSCS.SHBGSPGW -m MQCHNMSCS01
start chl(ChannelName)
stop chl(ChannelName)
reset channel(ChannelName)
查看通道监听状态与启停监听
dis listener(*)
dis listener(TO.MQCHNMSCS01)
display lsstatus(MQCHNMSCSLSR)
start lstr(listnerName)
stop lstr(listnerName)
删除队列监听器
DELETE LISTENER(MQCHNMSCS11LSR)
修改队列管理器的发送通道conname并生效
runmqsc MQCHNMSCS01
stop channel(CHNMSCS.EGSPGW)
alter channel(CHNMSCS.EGSPGW) CHLTYPE(SDR) ``CONNAME('182.217.17.57(20011)')
start channel(CHNMSCS.EGSPGW)
DIS CHS(CHNMSCS.EGSPGW)
end
修改队列管理器的 监听端口
stop listener(Name)
alter listener(Name) trptype(tcp)conname(Port)
start listener(Name)
end```
#### 删除 命令
```DELETE QLOCAL(MQGSPGW)
DELETE CHANNEL(CHNMSCS.GSPGW)
DELETE CHANNEL(GSPGW.CHNMSCS)
DELETE QREMOTE(REMOTEQ.GSP01.RSP)```
#### 修改队列管理器的CCSID
```dis QMGR
alter QMGR CCSID(1208)``
#### mq关权限
```ALTER QMGR CHLAUTH(DISABLED)
alter chl(SYSTEM.DEF.SVRCONN) chltype(svrconn) mcauser('mqm')
start chl(SYSTEM.DEF.SVRCONN)```