I have created a queue manager using these commands in a linux machine
crtmqm MQ1 strmqm MQ1 runmqsc MQ1
the queue manager is created successfully,
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?
Advertisement
Answer
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
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.