If you are not sure what an MQ Server Connection Channel is, check out our Getting Started tutorial.
Linux command line
Determine if port 1414 is available. If 1414 is being used, determine if port 1415 is available, then 1416, until you local an available port.
~]# netstat -an | grep 1414
Switch to the mqm user.
~]# su - mqm
Start the MQSC utility for the queue manager that you want to set up the server connection channel on. In this example, MANAGER01 is the name of the queue manager.
~]# /opt/mqm/bin/runmqsc MANAGER01
Create a server connection channel. In this example, a server connection channel named CHANNEL01 is created.
define channel(CHANNEL01) chltype(SVRCONN) trptype(TCP)
Display the channel.
Define a new listener for the channel.
define listener(LISTENER01) trptype(TCP) control(QMGR) port(1414)
Start the listener.
Exit the MQSC utility.
Return to your user account.
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.