activemq重启

172.16.10.72

activemq

/home/local/apache-activemq-5.10.0/bin/activemq-admin stop

/home/local/apache-activemq-5.10.0/bin/activemq-admin start

Usage: Main [--extdir <dir>] [task] [task-options] [task data]

Tasks:
    browse                   - Display selected messages in a specified destination.
    bstat                    - Performs a predefined query that displays useful statistics regarding the specified broker
    create                   - Creates a runnable broker instance in the specified path.
    decrypt                  - Decrypts given text
    dstat                    - Performs a predefined query that displays useful tabular statistics regarding the specified destination type
    encrypt                  - Encrypts given text
    export                   - Exports a stopped brokers data files to an archive file
    list                     - Lists all available brokers in the specified JMX context
    purge                    - Delete selected destination‘s messages that matches the message selector
    query                    - Display selected broker component‘s attributes and statistics.
    start                    - Creates and starts a broker using a configuration file, or a broker URI.
    stop                     - Stops a running broker specified by the broker name.

Task Options (Options specific to each task):
    --extdir <dir>  - Add the jar files in the directory to the classpath.
    --version       - Display the version information.
    -h,-?,--help    - Display this help information. To display task specific help, use Main [task] -h,-?,--help

Task Data:
    - Information needed by each specific task.

JMX system property options:
    -Dactivemq.jmx.url=<jmx service uri> (default is: ‘service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi‘)
    -Dactivemq.jmx.user=<user name>
    -Dactivemq.jmx.password=<password>
时间: 2024-08-04 21:51:36

activemq重启的相关文章

activeMQ学习(2)---------点对点、发布订阅的消息代码实现

以下是个人在学习activemq时从网上找到的资料, 总结留给自己以后复习 点对点的实现 2 @Test public void sendMessage(){ 3 try { 4 // 创建一个连接工厂 5 String url = "tcp://localhost:61616"; 6 ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url); 7 // 设置用户名和密码,这个用户名

Centos7 ActiveMQ 安装并配置为开机启动

第一步, 环境准备 更新CentOS7 ,安装epel-release,安装JDK,关闭防火墙 # yum clean all && yum update# yum install -y epel-release && yum install -y java-1.8.0-openjdk# systemctl disable firwalld# systemctl stop firewalld 第二步,获取安装包 下载ActiveMQ安装包,并解压 # wget https:

ActiveMQ挂了,重启一直无法将所有实例启起来的问题

背景 2017年3月29日  下午2-3点时分,工单模块无法访问.跟踪日志发现,ActiveMQ连接不上导致整个工单模块瘫痪: 首先判断可能是系统需要然后尝试重启工单模块,重新启动工单模块,结果:重启失败. 发现,消息服务器mq1,mq2都挂了,接着尝试重启mq1,mq2,一直失败.无比的郁闷. 重大事故:生产环境MQ挂了,启动失败,需要跟踪定位:当前解决办法:1.先将所有activemq实例关闭:2.然后一个一个启动,并且在保证一个已经完全启动好后,再启动下一个,就没有问题了.

activemq的安装与使用

一.activemq的安装 环境:CentOS 6.JDK8 1. 确保系统已安装了可用的jdk版本2. 从网上下载 Linux 版的 ActiveMQ( apache-activemq-5.11.1-bin.tar.gz),然后使用xftp上传到linux虚拟机已经建好的文件夹下 3. 解压安装# tar -zxvf apache-activemq-5.11.1-bin.tar.gz# mv apache-activemq-5.11.1 activemq如果启动脚本 activemq 没有可执

Activemq判断队列存活脚本

Activemq是每一位运维工作人员必须掌握的一款软件,他是公司运行的命脉之一,既然如此重要,那么它的看门狗也是比较含金量的.Activemq的看门狗不是像那种# ps -ef|grep mq看进程或者#netstat -ntpl|grep 61613这样直白,因为Activemq还有一种假死情况,那就是"进程和端口都在,但是队列已经死掉了",遇到这种情况就必须重启当前的activemq. 那么要写出这样的一个脚本,需要满足以下条件: 1)因为mq是集群,有主备之分,首先我们先在主mq

ActiveMQ讯息传送机制以及ACK机制

http://blog.csdn.net/lulongzhou_llz/article/details/42270113 ActiveMQ消息传送机制以及ACK机制详解 AcitveMQ是作为一种消息存储和分发组件,涉及到client与broker端数据交互的方方面面,它不仅要担保消息的存储安全性,还要提供额外的手段来确保消息的分发是可靠的. 一. ActiveMQ消息传送机制 Producer客户端使用来发送消息的, Consumer客户端用来消费消息:它们的协同中心就是ActiveMQ br

JMS and ActiveMQ first lesson(转)

JMS and ActiveMQ first lesson -- jms基础概念和应用场景 2011-6-18 PM 9:30 主讲:kimmking <[email protected]> 整理:林木森 ppt下载地址: http://code.google.com/p/activemq-store-mongodb/downloads/list 下面开始: kimmking:介绍下jms和ActiveMQ.在讲JMS之前,我们聊聊相关的背景.谁知道JMS是什么意思? kimmking:对,是

ActiveMQ(10):ActiveMQ的静态网络链接

一.简介 1.1 ActiveMQ的networkConnector是什么 在某些场景下,需要多个ActiveMQ的Broker做集群,那么就涉及到Broker到Broker的通信,这个被称为ActiveMQ的networkConnector. 1.2 单向与双向链接 ActiveMQ的networkConnector默认是单向的,一个Broker在一端发送消息,另一Broker在另一端接收消息.这就是所谓的"桥接". ActiveMQ也支持双向链接,创建一个双向的通道对于两个Brok

ActiveMQ(11):集群下的消息回流功能

一.简介 1.1 "丢失"的消息 有这样的场景,broker1和broker2通过networkConnector连接,一些consumers连接到broker1,消费broker2上的消息.消息先被broker1从broker2上消费掉, 然后转发给这些consumers.不幸的是转发部分消息的时候broker1重启了,这些consumers发现broker1连接失败,通过failover连接到broker2上去了,但是 有一部分他们还没有消费的消息被broker2已经分发到了bro