dspmq dspmqver command not found(dspmq命令找不到,dspmqver命令找不到)

現在新版的MQ7.5 和MQ8版本,在運行dspmq dspmqver command 時,都提示command not found(dspmq命令找不到,dspmqver命令找不到),下面為解決辦法,mq7.5 和mq8都通用。

[root@rhv6-64b ~]# su – mqm

-bash-4.1$ dspmq

-bash: dspmq: command not found(dspmq命令找不到

-bash-4.1$ dspmqver(dspmqver命令找不到

AMQ8594: WebSphere MQ commands are no longer available in /usr/bin.

In order to run MQ commands you must manage your path configuration asdescribed in the WebSphere MQ product documentation.

In particular review thetopic on “Choosing a primary installation”.

-bash-4.1$

InfoCenter,Choosing a primary installation:On UNIX and Linux platforms, the first installation onto a system must be manually configured to be the primary installation. Set the primary installation using the setmqinst command.(可以通過setmqinst命令設置主安裝目錄)

-bash-4.1$ /opt/mqm/bin/dspmqinst

InstName: Installation1

InstDesc:Identifier: 1

InstPath: /opt/mqm

Version: 7.5.0.0

Primary: No

State: Available

[root@rhv6-64b ~]# /opt/mqm/bin/setmqinst -n Installation1 -i

114 of 114 tasks have been completed successfuly.’Installation1′ (/opt/mqm) set as the Primary Installation.(設置/opt/mqm為主安裝目錄)

PATH=$PATH:/opt/mqm/bin

export PATH(將/opt/mqm/bin加入到環境變量PATH中,解決mq命令在命令行報命令找不到的錯誤,但是並不建議用這種方式添加,因為當退出終端時,改配置就失效,下次進入仍然報錯,建議到/etc/profile添加)

[root@rhv6-64b ~]# su – mqm

-bash-4.1$ dspmqver

Name: WebSphere MQ

Version: 7.5.0.0

Level: p000-L120604

BuildType: IKAP – (Production)

Platform: WebSphere MQ for Linux (x86-64 platform)

Mode: 64-bitO/S: Linux 2.6.32-131.0.15.el6.x86_64Inst

Name: Installation1Inst

Desc:InstPath: /opt/mqm

DataPath: /var/mqm

Primary: Yes

MaxCmdLevel: 750

 

 

以下文章點擊率最高

Loading…

     

如果這文章對你有幫助,請掃左上角微信支付-支付寶,給於打賞,以助博客運營