Message Queue 使用代理来路由和传送消息。(要扩展 Message Queue 服务,可以群集多个代理。)使用 imqbrokerd 命令可启动代理。
在命令行上,转到 MessageQueue-base /bin 目录。
启动 Message Queue 代理:
./imqbrokerd |
检验代理进程是否在运行。例如:
Solaris OS 和 HP-UX:/usr/bin/ps -ef | grep imqbrokerd
Linux: /bin/ps -ef | grep imqbrokerd
当您停止正在运行的代理时,将提示您输入管理员用户名和密码。
Solaris OS:/usr/bin/imqcmd shutdown bkr [ -b hostname:port ]
Linux 和 HP-UX:/opt/sun/mq/bin/imqcmd shutdown bkr [ -b hostname:port ]