问题描述
我使用以下命令创建了一个队列管理器 crtmqm <Queue_manager_name>
然后使用 strmqm <Queue_manager_name>
我想查找此队列管理器在哪个端口上侦听?有一些命令可以看到吗? ps -ef|grep runmqlsr
和 DISPLAY LSSTATUS(*)
什么都不给.可能是队列管理器没有监听任何端口吗?
I have created a queue manager using crtmqm <Queue_manager_name>
and then started it using strmqm <Queue_manager_name>
I want to find on which port does this Queue manager listen? Is there some command to see this? ps -ef|grep runmqlsr
and DISPLAY LSSTATUS(*)
give nothing.Can it be that the queue manager is not listening to any port?
推荐答案
启动队列管理器后,您将需要创建一个侦听器. crtmqm
命令为所有受支持的传输类型创建默认侦听器.建议您创建自己的侦听器.在MQSC Shell中执行以下操作
You will need to create a listener after starting the queue manager. The crtmqm
command creates default listener for all the supported transport types. It is recommended you create your own listener. Do the following in a MQSC shell
DEF LISTENER(MYMQLISTENER) TRPTYPE(TCP) +
CONTROL(QMGR) PORT(1414) +
REPLACE
START LISTENER(MYMQLISTENER)
上面的命令创建一个名称为MYMQLISTENER
传输的侦听器,并在端口1414上侦听.CONTROL(QMGR)
指示队列管理器在队列管理器启动时启动该侦听器,并在队列管理器关闭时停止该侦听器. START LISTENER
命令启动侦听器.您还具有STOP LISTENER
MQSC命令来停止侦听器.
The above command creates a listener with a name MYMQLISTENER
transport and the listens on port 1414. The CONTROL(QMGR)
directs the queue manager to start the listener when queue manager starts and stop it when queue manager goes down. The START LISTENER
command starts the listener. You also have STOP LISTENER
MQSC command to stop the listener.
创建并启动侦听器后,您可以发出DISPLAY LSSTATUS命令以显示侦听器状态.
Once you create and start the listener, you can then issue DISPLAY LSSTATUS command to display the listener status.
这篇关于如何在AIX上找到MQ侦听器端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!