dspmq dspmqver command not found(dspmq命令找不到,dspmqver主安裝目錄設置不正確)

 

dspmq dspmqver command not found(dspmq命令找不到,dspmqver主安裝目錄設置不正確)

[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$

 

 

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…

     

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