美文网首页
清除rocketMQ消息

清除rocketMQ消息

作者: 爱烫头的程序员 | 来源:发表于2021-03-12 18:09 被阅读0次
    1. 关闭服务
    cd /usr/local/rocketmq/
    
    sh bin/mqshutdown broker
    

    The mqbroker(36695) is running...
    Send shutdown request to mqbroker(36695) OK

    sh bin/mqshutdown namesrv
    

    The mqnamesrv(36664) is running...
    Send shutdown request to mqnamesrv(36664) OK

    rm -rf /root/store/ /root/logs/
    
    • 重新启动 Name Server
    nohup sh bin/mqnamesrv &
    
    • 重新启动 Broker
    nohup sh bin/mqbroker -n localhost:9876 &
    
    • 或者使用指定配置运行 -c
    nohup sh bin/mqbroker -n localhost:9876 -c ./conf/broker.conf &
    
    tail -f ~/logs/rocketmqlogs/broker.log 
    

    The broker[%s, 172.30.30.233:10911] boot success...

    相关文章

      网友评论

          本文标题:清除rocketMQ消息

          本文链接:https://www.haomeiwen.com/subject/xsizqltx.html