首先需要启动activeMq
注意点:1,进出防火墙

代理发送消息,以EMAIL为例

controller(‘common/send’)->activeMqSend(‘{ “tomail”:”xx@qq.com”, “subject”:”主题来自JERRY”, “content”:”邮件内容主题来自JERRY”,”extra”:”附加参数default”,”type”:”email” }’,[‘url’=>‘tcp://xxx.xxx.xxx:61613’]);

接收

##开启进程php think msg