If you are not sure what a channel is, check out our Getting Started tutorial. These examples are based on Linux.
This assumes you've already created a channel, which you can verify by displaying the channel. Switch to the mqm user.
su - mqm
Start the MQSC utility for the queue manager that you want to define the listener on the server connection channel on. In this example, MANAGER01 is the name of the queue manager. This assumes that the "mqm" users .bash_profile has been updated to have PATH=$PATH:<root installation directory>/bin.
Define a listener for the channel.
echo "define listener(LISTENER01) trptype(TCP) control(QMGR) port(1414)" | runmqsc MANAGER01
Start the listener.
echo "start listener(LISTENER01)" | runmqsc MANAGER01
You almost always also want to assign one or more users that have access to the channel so that you don't get error 2035 MQRC_NOT_AUTHORIZED when attempting to connect to MQ.