在linux中使用MQ,當啟動代理時,有可能報AMQ7077的錯誤,解決辦法如下:
一、環境說明:
系統:redhat Linux5.5 企業版
系統用戶:root
MQ安裝用戶:myuser
二、錯誤詳情
1、使用命令啟動代理時,提示如下錯誤:
[myuser@localhost /]$ mqsistart MB7BROKER
AMQ7077:你未被授權來進行請求的操作
BIP8048E:It was not possible to start WebSphere MQ queue manager 'MB7QMGR'
BIP8875W:The component verification for 'MB7BROKER' has finished,but one or more checks failed.
One or more of the component verification checks failed.
Check the error log for preceding error messages.
如圖:
2、從界面啟動隊列管理器報錯如下:
AMQ7077:你未被授權來進行請求的操作。
退出值=119
如圖:
三、解決辦法
1、確定當前myuser用戶在mqm,mqbrkrs用戶組內
2、使用mqm用戶啟動隊列管理器
以root登錄,再切換到mqm用戶下,啟動隊列管理器
[root@localhost /]$ su mqm
bash-3.2$ strmqm MB7QMGR
exit
[root@localhost /]$ su myuser
[myuser@localhost /]$ mqsistart MB7BROKER
即可正常啟動。也可以在[myuser@localhost /]$ strmqcfg 打開MQ圖形化界面,進行啟動。
備注:原創文章,如轉載請說明出處。