错误:WebSphere MQ原因码2538? [英] Getting error : WebSphere MQ reason code 2538?

查看:2735
本文介绍了错误:WebSphere MQ原因码2538?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Linux上安装了WebSphere MQ和WebSphere Message Broker,执行mqsicreateexecutiongroup时出现错误消息:

I have WebSphere MQ and WebSphere Message Broker installed on Linux and when I execute mqsicreateexecutiongroup I get an error saying:

BIP1046E:无法连接队列管理器(无法连接到队列管理器"NSPZPAI1"(MQ原因代码2538)).

BIP1046E: Unable to connect with the queue manager (Could not connect to queue manager 'NSPZPAI1' (MQ reason code 2538)).

当我搜索此原因代码时,我了解到这是一个主机不可用错误.
有人可以告诉我如何解决此错误吗?

When I search for this reason code I understand that it is a host not available error.
Can somebody please tell me how to resolve this error?

当我运行runmqlsr命令时,我总是处于挂起状态.有人可以告诉我如何启动监听器吗?

When I run a runmqlsr command I always end up in a hang. Can somebody tell me how to start a listener?

推荐答案

请勿手动或脚本启动侦听器.如果您有现代的队列管理器,请定义一个侦听器对象,如下所示:

Don't start the listener by hand or script. If you have a modern queue manager, define a listener object like so:

DEF LISTENER(LISTENER.1414)  TRPTYPE(TCP) +
    CONTROL(QMGR)            PORT(1414) +
    REPLACE

START LISTENER(LISTENER.1414)

属性CONTROL(QMGR)告诉QMgr在启动QMgr时自动启动侦听器,并在QMgr关闭时杀死侦听器.这样可以确保在启动QMgr时始终启动侦听器,即使QMgr是手动启动而不是从通常的启动脚本启动.由于侦听器是QMgr的子进程,因此它会一直与QMgr一起出现,因此您不必担心孤立的侦听器会在QMgr重新启动后阻止连接.

The attribute CONTROL(QMGR) tells the QMgr to start the listener automatically when the QMgr is started and to kill the listener when the QMgr is shut down. This ensures that the listener will always be started when the QMgr comes up, even if the QMgr is started manually instead of from the usual boot script. Because the listener is a child process of the QMgr it will always come down with the QMgr so you don't need to worry about orphaned listeners preventing connections after a QMgr restart.

一旦定义了侦听器,您还可以使用START LISTENERSTOP LISTENER MQSC命令来独立于QMgr手动启动和停止它.在上面的示例中,我手动启动了侦听器,而不是重新启动QMgr.两种方法都可以,但是START命令的侵入性较小.

Once the listener is defined, you can also use START LISTENER or STOP LISTENER MQSC commands to manually start and stop it independently of the QMgr. In the example above, I've manually started the listener rather than reboot the QMgr. Either would work but the START command is less intrusive.

这篇关于错误:WebSphere MQ原因码2538?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆