Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to clear rocketmq messages

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to clear rocketmq messages". The explanation content in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and go deep into it slowly to study and learn "how to clear rocketmq messages" together.

1. Stop rocketmq: kill -9 just kill it all

2. Delete logs/rocketmqlogs : a large number of logs under/root

3. Delete/root/store : topic and other information in MQ that seems to be accumulated

4. [optional] Clear topics displayed in MQ

sh mqadmin topicList -n 192.168.1.4:9876

sh mqadmin deleteTopic -c HOSTNAME -n 192.168.1.4:9876 -t orderTopic

*. Then restart rocketmq and try step four to see if it's clean

p.s.

1. It is critical to stop rocketmq and clear the order first; if it is not clear, rocketmq does not know where to reload all accumulated, resulting in failure to start rocketmq.

2. deleteTopic is not required, but when deleting it, you generally need to specify-c, you can try using hostname

Thank you for reading, the above is the content of "how to clear rocketmq message," after the study of this article, I believe everyone has a deeper understanding of how to clear rocketmq message, the specific use situation still needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report