使用curl快速测试ActiveMQ是否正常

确保使用的ActiveMQ的搬运时5.8以上,包括5.8


原理:使用ActiveMQ的REST接口http://localhost:8162/api/message


curl -u admin:admin -d HelloWorld http://localhost:8162/api/message/TEST?type=queue


-d 代表data,即要发送的内容


TEST时队列或者Topic的名称


type=queue代表,是要发送给队列

猜你喜欢

转载自blog.51cto.com/yweaner/2478054