These examples are based on Linux. Switch to the mqm user.
su - mqm
The endmqlsr command can be used to stop every listener in a queue manager. In this example, every listener in the MANAGER01 queue manager will be stopped.
If you have two or more installations of MQ, you will first want to use the dspmq command to ensure you use the endmqlsr command associated with the installation that contains the queue manager.
Before stopping a listener, you may want to use the display lsstatus command to display the status of the listener, such as "running" or "stopped".
endmqlsr -m MANAGER01