查找IBM MQ队列管理器的端口号
问题描述:
我使用以下命令创建了一个队列管理器 这些命令在linux机器上
I have created a queue manager using these commands in a linux machine
crtmqm MQ1
strmqm MQ1
runmqsc MQ1
队列管理器创建成功,
我想知道队列管理器MQ1在哪个端口上运行,我尝试了所有可能的方式netstat -au
以及ps -ef
命令.看起来它正在其他端口上运行.我找不到运行该端口的正确端口号,有人可以帮忙吗?
i wanted to know on which port is the queue manager MQ1 running, i tried all possible ways netstat -au
and also ps -ef
command. It looks like it is running on a different port. I am unable to find the correct port number where it is running, could anyone help?
答
通过-p选项将netstat用作根用户
Use netstat as root with -p option
sudo netstat -nltp
[sudo] password for root:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1362/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1580/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1480/cupsd
最后一列提供PID和程序名称".如果您与用户一起运行队列管理器,则无需sudo.
The last column gives the PID and 'Program name'. If you are running the queue manager with your user, you don't need to sudo.