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$

 

 

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

 

 

參考鏈接:https://blog.csdn.net/crazyitlhs/article/details/49122277


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM