Use the IBM MQ listener
To run the listener supplied with IBM MQ, which starts new channels as threads, use the runmqlsr command.
For example:runmqlsr -t tcp [-m QMNAME] [-p 1822]
The square brackets indicate optional parameters; QMNAME is not required for the default queue manager, and the port number is not required if we are using the default (1414). The port number must not exceed 65535.
For the best performance, run the IBM MQ listener as a trusted application as described in Running channels and listeners as trusted applications. See Restrictions for trusted applications for information about trusted applications.
We can stop all IBM MQ listeners running on a queue manager that is inactive, using the command:endmqlsr [-m QMNAME]
If we do not specify a queue manager name, the default queue manager is assumed.
Parent topic: Defining a TCP connection on UNIX and Linux