How to clear rocketmq messages
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!