有一个./artemis命令应显示队列的统计信息:(./artemis queue stat
最后一个):
The most commonly used artemis commands are:
address Address tools group (create|delete|update|show) (example ./artemis address create)
browser It will browse messages on an instance
consumer It will consume messages from an instance
create creates a new broker instance
data data tools group (print) (example ./artemis data print)
help Display help information
mask mask a password and print it out
migrate1x Migrates the configuration of a 1.x Artemis Broker
producer It will send messages to an instance
queue Queue tools group (create|delete|update|stat|purge) (example ./artemis queue create)
但是,当我尝试使用它时./artemis queue stat --user=master --password=master --url=tcp://0.0.0.0:1616
,我得到
Exception in thread "main" ActiveMQConnectionTimedOutException[errorType=CONNECTION_TIMEDOUT message=AMQ219014: Timed out after waiting 30,000 ms for response when sending packet -12]
ActiveMQ Artemis代理在端口1616上的远程计算机上运行。
通过这些命令创建队列的尝试成功,但是我也无法通过这种方式清除队列。
有什么想法出什么问题吗?
如果代理不同的机器比一个上运行,你正在运行的queue stat
命令,则该URLtcp://0.0.0.0:1616
将不会工作。该地址0.0.0.0
是一个特殊的元地址,仅对正在接收网络连接的进程(即充当服务器)真正有用。此地址允许服务器接收所有网络接口上的连接。它在客户端上将无法正常运行。您可以在此处了解更多信息0.0.0.0
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句