WebSphereMQ + Centos 7

时间:2015-01-08 22:47:36

标签: ibm-mq

我尝试在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 --------------------------------------------------------

我很感谢你能给予我的所有帮助,谢谢。

2 个答案:

答案 0 :(得分:1)

很容易解决您被CHLAUTH规则阻止的原因。有一篇博文,I'm being blocked by CHLAUTH - how can I work out why?

但是,我可以从这里告诉你完全哪个规则阻止了你,它是禁止远程特权访问的默认规则,即来自客户端连接的mqm访问。如果您希望在没有特权的情况下进行访问,请阅读A non-privileged MQ administrator,或者如果您确实希望允许特权用户进行高风险的远程访问,请阅读CHLAUTH - Allow some privileged admins

答案 1 :(得分:-1)

值得注意的是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
Ubuntu 12.04

那就是说,错误' AMQ9776:频道被用户ID'您粘贴在上面表明您的客户端未通过通道身份验证检查。

您可以通过以下MQSC命令禁用通道身份验证来检查此问题:
' ALTER QMGR CHLAUTH(已禁用)'

有关developerworks的好文章解释了如何解决为什么您的连接尝试被阻止,您可以在此处查看:

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