WebSphereMQ + Centos 7

WebSphereMQ + Centos 7

我尝试在 Centos 7 上安装 WebSphere MQ v8...我在安装服务器和测试时没有遇到任何问题。当我尝试配置客户端时,一切正常,直到我尝试使用以下命令将消息放入队列:./amqsputc 队列管理器。这里是日志文件的一部分。

------------------------------------------------------------------------------- 
08/01/15 13:16:17 - Process(37991.4) User(mqm) Program(amqrmppa)
                    Host(localhost.localdomain) Installation(Installation1)
                    VRMF(8.0.0.0) QMgr(my.manager)
                    AMQ9776: Channel was blocked by userid

EXPLANATION: The inbound channel 'CANAL1' was blocked from address
'127.0.0.1' because the active values of the channel were mapped to a
userid which should be blocked. The active values of the channel were
'MCAUSER(mqm) CLNTUSER(mqm) ADDRESS(localhost)'. ACTION: Contact the
systems administrator, who should examine the channel authentication
records to ensure that the correct settings have been configured. The
ALTER QMGR CHLAUTH switch is used to control whether channel
authentication records are used. The command DISPLAY CHLAUTH can be
used to query the channel authentication records.
----- cmqxrmsa.c : 1257 ------------------------------------------------------- 
08/01/15 13:16:17 - Process(37991.4) User(mqm) Program(amqrmppa)
                    Host(localhost.localdomain) Installation(Installation1)
                    VRMF(8.0.0.0) QMgr(my.manager)
                    AMQ9999: Channel 'CANAL1' to host '127.0.0.1' ended abnormally.

EXPLANATION: The channel program running under process ID 37991 for
channel 'CANAL1' ended abnormally. The host name is '127.0.0.1'; in
some cases the host name cannot be determined and so is shown as
'????'. ACTION: Look at previous error messages for the channel
program in the error logs to determine the cause of the failure. Note
that this message can be excluded completely or suppressed by tuning
the "ExcludeMessage" or "SuppressMessage" attributes under the
"QMErrorLog" stanza in qm.ini. Further information can be found in the
System Administration Guide.
----- amqrmrsa.c : 925 --------------------------------------------------------

非常感谢您能给我的所有帮助,在此先致谢。

值得注意的是,MQ v8 根本不支持 CentOS,也没有声明支持 RHEL 7。

http://www-969.ibm.com/software/reports/compatibility/clarity-reports/report/html/softwareReqsForProduct?deliverableId=1350550241693&osPlatform=Linux

在撰写本文时,MQ v8 支持以下 Linux 发行版:

Asianux 3.0
RHEL 6
SLES 11
Ubuntu12.04

也就是说,您在上面粘贴的错误 'AMQ9776: Channel was blocked by userid' 表明您的客户端未通过频道身份验证检查。

您可以通过以下 MQSC 命令禁用通道身份验证来检查这一点:
'ALTER QMGR CHLAUTH(DISABLED)'

developerworks 上有一篇很好的文章解释了如何解决为什么您的连接尝试被阻止您可以在这里查看:

https://www.ibm.com/developerworks/community/blogs/aimsupport/entry/blocked_by_chlauth_why?lang=en

很容易排除您被 CHLAUTH 规则阻止的原因。上面有博客post,I'm being blocked by CHLAUTH - how can I work out why?

但是,我可以从这里确切地告诉您哪个规则阻止了您,这是禁止远程特权访问的默认规则,即来自客户端连接的 mqm 访问。如果您想在没有特权的情况下访问,请阅读 A non-privileged MQ administrator, and alternatively if you do want to allow the risky remote access from privileged users, read CHLAUTH - Allow some privileged admins