精华内容
下载资源
问答
  • 安装JDK并配置环境变量(略)JAVA_HOME=/home/huangkejie/java/jdk1.8.0_171在home/huangkejie下创建activeMQ目录$ mkdir activeMQ$ cd activeMQ下载Linux版的ActiveMQ(当前最新版apache-activemq-5.11.1-bin.tar.gz)$...

    安装JDK并配置环境变量(略)

    JAVA_HOME=/home/huangkejie/java/jdk1.8.0_171

    在home/huangkejie下创建activeMQ目录

    $ mkdir activeMQ

    $ cd activeMQ

    下载Linux版的ActiveMQ(当前最新版apache-activemq-5.11.1-bin.tar.gz)

    $ wget http://apache.fayea.com/activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz

    解压安装

    $ tar -zxvf apache-activemq-5.11.1-bin.tar.gz

    $ mv apache-activemq-5.11.1 activemq

    如果启动脚本activemq没有可执行权限,此时则需要授权(此步可选)

    $ cd /home/huangkejie/activemq/bin/

    $ chmod 777 ./activemq

    防火墙中打开对应的端口

    ActiveMQ需要用到两个端口

    一个是消息通讯的端口(默认为61616)

    一个是管理控制台端口(默认为8161)可在conf/jetty.xml中修改,如下:

    # vi /etc/sysconfig/iptables

    添加:

    -A INPUT -m state --state NEW -m tcp -p tcp --dport 61616 -j ACCEPT

    -A INPUT -m state --state NEW -m tcp -p tcp --dport 8161 -j ACCEPT

    重启防火墙:

    # service iptables restart

    启动

    $ cd /home/huangkejie/activemq/bin

    $ ./activemq start

    5197cee880c88f8986f9219f0b2c9b04.png

    点击Manage ActiveMQ broker超链接输入默认用户名和密码为:admin/admin

    登录后进入

    1d63b8bebfdfa40aec5f7ce4a3c59398.png

    安全配置(消息安全)

    ActiveMQ如果不加入安全机制的话,任何人只要知道消息服务的具体地址(包括ip,端口,消息地址[队列或者主题地址],),都可以肆无忌惮的发送、接收消息。关于ActiveMQ安装配置http://activemq.apache.org/security.html

    ActiveMQ的消息安全配置策略有多种,我们以简单授权配置为例:

    在conf/activemq.xml文件中在broker结束标签前加入以下内容即可:

    $vi /home/huangkejie/activemq/conf/activemq.xml

    定义了一个huangkejie用户,密码为huangkejie,角色为users,admins

    设置admin的用户名和密码:

    $ vi /home/wusc/activemq-01/conf/jetty.xml

    确保authenticate的值为true(默认)

    控制台的登录用户名密码保存在conf/jetty-realm.properties文件中,内容如下:

    $ vi /home/wusc/activemq-01/conf/jetty-realm.properties

    # Defines users that can access the web (console, demo, etc.)

    # username: password [,rolename ...]

    bb58147227dbaa2150df6bb509e8d954.png

    注意:用户名和密码的格式是

    用户名 : 密码 ,角色名

    以上的截图可以看出我修改了admin的密码为huangkejie,新增了huangkejie的用户,密码为huangkejie,角色为admin

    重启:

    $ /home/huangkejie/activemq/bin/activemq restart

    设置开机启动:

    # vi /etc/rc.local

    加入以下内容

    ## ActiveMQ

    su - huangkejie -c '/home/huangkejie/activemq/bin/activemq start'

    展开全文
  • linux 重启tomcat和activemq 使用ssh命令连接服务器 linux下 tomcat的启动1、使用cd命令进入到bin文件夹 cd home/apache-tomcat-8.5.15/bin 2、输入 ./startup.sh 启动tomcat 3、输入 ./...

    linux 重启tomcat和activemq

    使用ssh命令连接服务器

    linux下 tomcat的启动
    1、使用cd命令进入到bin文件夹
    cd home/apache-tomcat-8.5.15/bin
    2、输入 ./startup.sh 启动tomcat
    3、输入 ./shutdown.sh 关闭tomcat
    linux下启动acitvemq
    1、使用cd命令进入到acitvemq的bin文件夹
    cd /home/apache-activemq-5.13.3
    2、输入 ./activemq start 启动activemq
    3、输入 ./activemq stop 关闭activemq
     
    在shell输入 ps -ef|grep java 可以查看当前的java进程 用来验证tomcat和mq是否启动成功
    也可以使用kill -9 pid直接结束该进程
    这些步骤同样也可以用来重启jboss
    posted @ 2018-08-31 09:52 scd 阅读( ...) 评论( ...) 编辑 收藏

    转载于:https://www.cnblogs.com/lichenx/p/9564087.html

    展开全文
  • linux安装activemq

    2018-11-30 11:28:23
    这篇文章主要讲如何在linux服务器上安装activemq 一、整体架构说明 本次安装的activemq版本为5.9.0,为单节点服务。 二、准备工作 ...

    这篇文章主要讲如何在linux服务器上安装activemq
    一、整体架构说明
    本次安装的activemq版本为5.9.0,为单节点服务。

    二、准备工作
    http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.tar.gz 下载activemq5.9.0安装包
    https://mvnrepository.com/artifact/mysql/mysql-connector-java 下载连接mysql的驱动jar包mysql-connector-java-5.1.32.jar

    三、安装jdk1.8
    比较简单,这里只写一下jdk的环境变量:

    echo "export JAVA_HOME=/usr/java/jdk1.8.0_91
    export JAVA_BIN=$JAVA_HOME/bin
    export PATH=$JAVA_HOME/bin:$PATH
    export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
    export JAVA_HOME JAVA_BIN PATH CLASSPATH" >> /etc/profile
    source /etc/profile
    

    四、安装mysql
    mysql的安装比较简单,安装步骤略(如有需要,可留言)
    并在mysql中创建库activemq

    mysql>create database activemq;
    

    五、安装activemq

    mv apache-activemq-5.9.0-bin.tar.gz /usr/local/
    cd /usr/local/
    tar -zxvf apache-activemq-5.9.0-bin.tar.gz
    

    把连接mysql的驱动jar包放到相应的目录下

    mv mysql-connector-java-5.1.32.jar /usr/local/apache-activemq-5.9.0/lib/optional/
    

    六、修改主配置文件

    cd /usr/local/apache-activemq-5.9.0/conf/
    

    备份主配置文件

    mv activemq.xml activemq.xml_bak
    

    修改主配置文件activemq.xml:

    1. 实现数据的持久化
      1.1在beans标签中添加数据库连接信息

      <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">    
      	    <property name="driverClassName" value="com.mysql.jdbc.Driver"/>    
      	    <property name="url" value="jdbc:mysql://192.168.0.11:3306/activemq?relaxAutoCommit=true"/>    
      	    <property name="username" value="root"/>    
      	    <property name="password" value="123456"/>    
      	    <property name="maxActive" value="200"/>    
      	    <property name="poolPreparedStatements" value="true"/>    
      </bean>
      

      1.2注释掉默认的kahadb,使用jdbc持久化

      <persistenceAdapter>
      	    <!--kahaDB directory="${activemq.data}/kahadb" /-->
      	    <jdbcPersistenceAdapter dataDirectory="${activemq.base}/data"  dataSource="#mysql-ds" useDatabaseLock="false" transactionIsolation="4" />
      </persistenceAdapter>
      

      1.3将所有的消息策略修改为“持久化的”,在broker标签的最后,加上如下配置:

      <plugins>
      	<!-- 将所有消息的传输模式,修改为"PERSISTENT" -->
      	<forcePersistencyModeBrokerPlugin persistenceFlag="true"/>
      </plugins>
      
    2. 修改内存中存储的消息的数量(超过这个数量后,老的消息将会被剔除或保存在temp store中)

      <pendingMessageLimitStrategy>
      	<!--constantPendingMessageLimitStrategy limit="1000"/-->
      	<constantPendingMessageLimitStrategy limit="10000"/>
      </pendingMessageLimitStrategy>
      
    3. 添加安全机制,创建消息通讯用户(即为你代码中配置的用户名和密码)
      activemq如果不加入安全机制的话,任何人只要知道消息服务的具体地址(包括 ip,端口,消息地址 [队列或者主题地址]),都可以肆无忌惮的发送、接收消息。

      <plugins>
      	<simpleAuthenticationPlugin>
      		<users>
      			<authenticationUser username="product" password="123456" groups="user"/>
      		</users>
      	</simpleAuthenticationPlugin>
      </plugins>
      

      此处定义了一个product用户,密码为123456,角色为user。
      修改完后的activemq.xml文件完整内容如下:

    <!-- Allows us to use system properties as variables in this configuration file -->
    <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <value>file:${activemq.conf}/credentials.properties</value>
        </property>
    </bean>
    
    <bean id="mysql-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">    
        <property name="driverClassName" value="com.mysql.jdbc.Driver"/>    
        <property name="url" value="jdbc:mysql://192.168.0.11:3306/active_mq?relaxAutoCommit=true"/>    
        <property name="username" value="root"/>    
        <property name="password" value="123456"/>    
        <property name="maxActive" value="200"/>    
        <property name="poolPreparedStatements" value="true"/>    
    </bean>  
    
    <!-- Allows log searching in hawtio console -->
    <bean id="logQuery" class="org.fusesource.insight.log.log4j.Log4jLogQuery"
          lazy-init="false" scope="singleton"
          init-method="start" destroy-method="stop">
    </bean>
    
    <!--
        The <broker> element is used to configure the ActiveMQ broker.
    -->
    <broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}">
    
        <destinationPolicy>
            <policyMap>
              <policyEntries>
                <policyEntry topic=">" >
                    <!-- The constantPendingMessageLimitStrategy is used to prevent
                         slow topic consumers to block producers and affect other consumers
                         by limiting the number of messages that are retained
                         For more information, see:
    
                         http://activemq.apache.org/slow-consumer-handling.html
    
                    -->
                  <pendingMessageLimitStrategy>
                    <!--constantPendingMessageLimitStrategy limit="1000"/-->
    				<constantPendingMessageLimitStrategy limit="10000"/>
                  </pendingMessageLimitStrategy>
                </policyEntry>
              </policyEntries>
            </policyMap>
        </destinationPolicy>
    
    
        <!--
            The managementContext is used to configure how ActiveMQ is exposed in
            JMX. By default, ActiveMQ uses the MBean server that is started by
            the JVM. For more information, see:
    
            http://activemq.apache.org/jmx.html
        -->
        <managementContext>
            <managementContext createConnector="false"/>
        </managementContext>
    
        <!--
            Configure message persistence for the broker. The default persistence
            mechanism is the KahaDB store (identified by the kahaDB tag).
            For more information, see:
    
            http://activemq.apache.org/persistence.html
        -->
        <persistenceAdapter>
            <!--kahaDB directory="${activemq.data}/kahadb" /-->
            <jdbcPersistenceAdapter dataDirectory="${activemq.base}/data"  dataSource="#mysql-ds" useDatabaseLock="false" transactionIsolation="4" />
        </persistenceAdapter>
    
    
          <!--
            The systemUsage controls the maximum amount of space the broker will
            use before disabling caching and/or slowing down producers. For more information, see:
            http://activemq.apache.org/producer-flow-control.html
          -->
          <systemUsage>
            <systemUsage>
                <memoryUsage>
                    <memoryUsage percentOfJvmHeap="70" />
                </memoryUsage>
                <storeUsage>
                    <storeUsage limit="100 gb"/>
                </storeUsage>
                <tempUsage>
                    <tempUsage limit="50 gb"/>
                </tempUsage>
            </systemUsage>
        </systemUsage>
    
        <!--
            The transport connectors expose ActiveMQ over a given protocol to
            clients and other brokers. For more information, see:
    
            http://activemq.apache.org/configuring-transports.html
        -->
        <transportConnectors>
            <!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
            <transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&amp;wireFormat.maxFrameSize=104857600"/>
        </transportConnectors>
    
        <!-- destroy the spring context on shutdown to stop jetty -->
        <shutdownHooks>
            <bean xmlns="http://www.springframework.org/schema/beans" class="org.apache.activemq.hooks.SpringContextHook" />
        </shutdownHooks>
        
        <plugins>
            <simpleAuthenticationPlugin>
                <users>
                    <authenticationUser username="product" password="123456" groups="user"/>
                </users>
            </simpleAuthenticationPlugin>
        </plugins>
    
        <plugins>
            <!-- 将所有消息的传输模式,修改为"PERSISTENT" -->
            <forcePersistencyModeBrokerPlugin persistenceFlag="true"/>
        </plugins>	
    
    </broker>
    
    <!--
        Enable web consoles, REST and Ajax APIs and demos
        The web consoles requires by default login, you can disable this in the jetty.xml file
    
        Take a look at ${ACTIVEMQ_HOME}/conf/jetty.xml for more details
    -->
    <import resource="jetty.xml"/>
    

    七、启动activemq

    cd /usr/local/apache-activemq-5.9.0/bin/
    ./activemq start
    

    这时,activemq管理页面http://192.168.0.11:8161/的默认用户名密码为admin/admin,可以进入新、老管理界面
    在这里插入图片描述

    八、修改管理页面的用户名和密码
    修改admin的密码下需要修改两个文件,分别为jetty-realm.properties和users.properties

    修改jetty-realm.properties

    admin: a1b2c3, admin
    user: user, user
    

    修改users.properties

    admin=a1b2c3
    

    重启服务,这时候可以用admin/a1b2c3登录管理页面(http://192.168.0.11:8161

    九、对消息持久化的验证
    当所有配置完成,我们重启服务之后,对activemq中生产6条消息,并且暂时不消费,这时候会发现,在管理页面可以看到6条消息
    在这里插入图片描述
    并且在对应的mysql中的activemq这个库中会自动生成3张表,分别为
    activemq_acks:ActiveMQ的签收信息
    activemq_lock:ActiveMQ的锁信息
    activemq_msgs:ActiveMQ的消息
    并且在activemq_msgs表中,会存在6条数据,如图所示
    在这里插入图片描述

    即使是重启activemq之后,打开管理页面,也是显示6条数据,activemq_msgs表中也是6条数据,证明消息的确是持久化的。
    待开启消费者消费这6条数据之后,activemq_msgs表中的数据也将不存在。

    十、修改activemq的内存配置
    这边把最大内存由1G改为4G(根据实际情况调整)
    修改bin/activemq

    #Set jvm memory configuration
    if [ -z "$ACTIVEMQ_OPTS_MEMORY" ] ; then
        ACTIVEMQ_OPTS_MEMORY="-Xms1G -Xmx4G"
    fi
    
    展开全文
  •  linux环境中, activemq因为磁盘空间不足异常退出, 重启就出现下面的问题.  因为看到org.apache.activemq.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero)这个...

     linux环境中, activemq因为磁盘空间不足异常退出, 重启就出现下面的问题. 

    因为看到org.apache.activemq.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero)这个信息猜测可能是activemq异常退出, 导致有不完整的通道或者信息. mq下的data文件夹删除后重启成功

    2018-11-09 14:35:42,044 | INFO  | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@6b0b693e: startup date [Fri Nov 09 14:35:42 CST 2018]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain
    2018-11-09 14:35:43,198 | INFO  | PListStore:[/usr/local/apache-activemq-5.9.0/bin/linux-x86-64/../../data/localhost/tmp_storage] started | org.apache.activemq.store.kahadb.plist.PListStoreImpl | WrapperSimpleAppMain
    2018-11-09 14:35:43,229 | INFO  | Using Persistence Adapter: KahaDBPersistenceAdapter[/usr/local/apache-activemq-5.9.0/bin/linux-x86-64/../../data/kahadb] | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
    2018-11-09 14:35:43,419 | INFO  | Corrupt journal records found in '../../data/kahadb/db-1.log' between offsets: 9310090..9316753 | org.apache.activemq.store.kahadb.disk.journal.Journal | WrapperSimpleAppMain
    2018-11-09 14:35:43,427 | INFO  | Corrupt journal records found in '../../data/kahadb/db-1.log' between offsets: 9691444..9710929 | org.apache.activemq.store.kahadb.disk.journal.Journal | WrapperSimpleAppMain
    2018-11-09 14:35:43,761 | INFO  | KahaDB is version 5 | org.apache.activemq.store.kahadb.MessageDatabase | WrapperSimpleAppMain
    2018-11-09 14:35:43,812 | INFO  | Recovering from the journal ... | org.apache.activemq.store.kahadb.MessageDatabase | WrapperSimpleAppMain
    2018-11-09 14:35:43,825 | ERROR | Failed to start Apache ActiveMQ ([localhost, null], org.apache.activemq.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).) | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
    2018-11-09 14:35:43,828 | INFO  | Apache ActiveMQ 5.9.0 (localhost, null) is shutting down | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
    2018-11-09 14:35:43,830 | INFO  | Connector openwire stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
    2018-11-09 14:35:43,831 | INFO  | Connector amqp stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
    2018-11-09 14:35:43,832 | INFO  | Connector stomp stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
    2018-11-09 14:35:43,834 | INFO  | Connector mqtt stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
    2018-11-09 14:35:43,835 | INFO  | Connector ws stopped | org.apache.activemq.broker.TransportConnector | WrapperSimpleAppMain
    2018-11-09 14:35:43,840 | INFO  | PListStore:[/usr/local/apache-activemq-5.9.0/bin/linux-x86-64/../../data/localhost/tmp_storage] stopped | org.apache.activemq.store.kahadb.plist.PListStoreImpl | WrapperSimpleAppMain
    2018-11-09 14:35:43,841 | INFO  | Stopping async queue tasks | org.apache.activemq.store.kahadb.KahaDBStore | WrapperSimpleAppMain
    2018-11-09 14:35:43,842 | INFO  | Stopping async topic tasks | org.apache.activemq.store.kahadb.KahaDBStore | WrapperSimpleAppMain
    2018-11-09 14:35:43,844 | INFO  | Stopped KahaDB | org.apache.activemq.store.kahadb.KahaDBStore | WrapperSimpleAppMain
    2018-11-09 14:35:44,290 | INFO  | Apache ActiveMQ 5.9.0 (localhost, null) uptime 1.083 seconds | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
    2018-11-09 14:35:44,291 | INFO  | Apache ActiveMQ 5.9.0 (localhost, null) is shutdown | org.apache.activemq.broker.BrokerService | WrapperSimpleAppMain
    2018-11-09 14:35:44,293 | INFO  | Closing org.apache.activemq.xbean.XBeanBrokerFactory$1@6b0b693e: startup date [Fri Nov 09 14:35:42 CST 2018]; root of context hierarchy | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain
    2018-11-09 14:35:44,297 | WARN  | Exception thrown from LifecycleProcessor on context close | org.apache.activemq.xbean.XBeanBrokerFactory$1 | WrapperSimpleAppMain
    java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.apache.activemq.xbean.XBeanBrokerFactory$1@6b0b693e: startup date [Fri Nov 09 14:35:42 CST 2018]; root of context hierarchy
    	at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)
    	at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1057)
    	at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
    	at org.apache.activemq.hooks.SpringContextHook.run(SpringContextHook.java:30)
    	at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:782)
    	at org.apache.activemq.xbean.XBeanBrokerService.stop(XBeanBrokerService.java:122)
    	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:574)
    	at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1608)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1549)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1479)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
    	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)
    	at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)
    	at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)
    	at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)
    	at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)
    	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)
    	at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)
    	at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)
    	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
    	at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:150)
    	at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57)
    	at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.apache.activemq.console.Main.runTaskClass(Main.java:262)
    	at org.apache.activemq.console.Main.main(Main.java:115)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:498)
    	at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)
    	at java.lang.Thread.run(Thread.java:748)

     

    转载于:https://my.oschina.net/MrBamboo/blog/2874190

    展开全文
  • linux安装activeMQ

    千次阅读 2018-04-07 14:41:57
    1.下载ActiveMQwget http://archive.apache.org/dist/activemq/apache-activemq/5.9.0/apache-activemq-5.9.0-bin.tar.gz2.安装ActiveMQ目前在桌面路径下,将下载的activeMQ移动到/usr/activemq[root@localhost ...
  • linux 安装activeMQ

    2018-03-28 21:37:29
    1.新建文件夹activeMQ mkdir activeMQ 2.官网下载activeMQ安装包,拷贝到/activeMQ目录下 3.解压 cd activemq tar -zxvf apache-activemq-5.15.2-bin.tar.gz 4.修改权限 cd apache-activemq-5.15.2/bin chmod...
  • linux搭建activeMQ服务器

    2019-09-18 15:58:28
    安装JDK并配置环境变量(略) JAVA_HOME=/home/huangkejie/java/jdk1.8.0_171 在home/huangkejie下创建activeMQ目录 $ mkdir activeMQ $ cd activeMQ 下载Linux版的ActiveMQ(当前...
  • LinuxactiveMQ的启动和停止命令

    千次阅读 2021-02-23 13:03:34
    LinuxactiveMQ的启动和停止命令 关闭mq命令 如果mq服务是启动的,那么需要先关闭。 进入bin目录,输入命令: cd /opt/Founder/install/mq/apache-activemq-5.7/bin 关闭命令: ./activemq stop 启动mq命令 进入bin...
  • linux搭建activeMQ集群

    2021-04-01 14:32:24
    这里是在linux虚拟机上搭建的zookeeper集群+基于levelDB的activeMQ集群,实际只有一台机 2.安装步骤 2.1 搭建zookeeper集群 2.1.1 准备zookeeper集群主机与端口 主机 客户端端口 集群通信端口 集群选举...
  • 第一步:安装activemq需要准备的环境 1、activemq需要jdk的支持,所以在安装activemq前要先安装好jdk。 2、在linux系统下进行安装。 第二步:下载activemq到本地 官网下载:点我 第三步:将本地tar包上传至linux系统...
  • LinuxActiveMQ安装笔记

    2019-10-24 22:01:15
    ActiveMQ 5需要jdk1.8的支持,首先需要安装jkd1.8,安装过程省略。。。然后解压apache-activemq-5.15.10-bin.tar.gz cd /opt/apache-activemq-5.15.10/bin #进入到解压后的目录 ./activemq start #执行启动脚本 #...
  • Linux_ActiveMQ 安装笔记

    2017-05-25 16:17:33
    环境:Vmware Workstation 10,CentOS-7-x86_64-DVD-1511.iso,Xshell 4.0,ip:192.168.216.... [root@localhost ~]# wget https://archive.apache.org/dist/activemq/5.13.0/apache-activemq-5.13.0-bin.tar.gz [r
  • linux系统activemq启动失败

    千次阅读 2018-03-15 09:07:19
    本人在linux系统上安装了activemq,后来又想测试rabbitmq,于是安装了rabbitmq。之后activemq的后台网页连不上,重启也没用。 在网上查找错误,通过./activemq console命令可以查看到activemq启动的错误信息,另外...
  • ActiveMQ的安装和启动如何安装ActiveMQActiveMQ的启动ActiveMQ的关闭ActiveMQlinux下的安装安装JAVA配置JAVA环境下载ActiveMQ解压压缩包tar zxvf activemq-x.x.x-bin.tar.gz至此,linuxActiveMQ的安装工作就...
  • 1.新建一个文件夹activemq  mkdir /datared/q***o/activemq   [2.授权 chmod 777 /datared/q***o/activemq] -- 可忽略   3.下载activeMQ安装包,拷贝到/activeMQ目录下 apache-activemq-5.10.0-bin.tar.gz,...
  • 安装: 1、解压 tar -zxvf apache-activemq-5.15.8-bin...mv apache-activemq-5.15.8 activemq515 3、开启端口 firewall-cmd --zone=public --add-port=8161/tcp --permanent firewall-cmd --zone=public --add-por...
  • 下载 1、点击进入ActiveMQ下载...3、选择Linux版本进行下载 安装 1、将下载的文件拷贝到/usr/local目录 2、解压ActiveMQ压缩文件 tar -zxvf apache-activemq-5.15.9-bin.tar.gz 3、进入到解压文件夹的bin目...
  • (一)--Linux安装ActiveMQ

    2019-12-27 11:19:45
    下载ActiveMQ 将下载好的tar.gz包存放在 /opt目录下,并解压安装包 tar -zxvf apache-activemq-5.15.11-bin.tar.gz 进入解压后的bin目录下,执行activemq 一、启动 1. 普通启动mq ./activemq start activemq的...
  • 首先启动MQ,查看8161端口 ...修改apache-activemq-5.16.0/conf/jetty.xml文件中的内容 <bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start"> <!-- the d
  • linuxActiveMQ的安装配置一

    千次阅读 2017-07-26 18:08:20
    ActiveMQ是由Apache出品的,一款最流行的,能力强劲的开源消息总线。ActiveMQ是一个完全支持JMS1.1和J2EE 1.4规范的 JMS Provider实现,它非常快速,支持多种语言的客户端和协议,而且可以非常容易的嵌入到企业的...
  • Linux安装activeMQ的流程中的坑 1. # ./activemq start 远不止这一下 2. 修改配置文件: 将打码处修改为虚拟机的ip 3.关闭防火墙: 注意我是centos6.5 命令是 关闭命令: service iptables stop 永久...
  • 1.关闭防火墙:service iptables stop后重启服务 2.防火墙关闭后还是解决不了问题的话 那么原因是机器名和ip地址没有对上。 这时候可以vim /etc/hosts,这时候会发现下面这些映射关系 127.0.0.1 localhost ...
  •  2、解压完毕后,进入到apache-activemq-5.14.1/bin/linux-x86-64/目录,这是64位的启动目录。  cd apache-activemq-5.14.1/bin/linux-x86-64/  3、执行命令启动mq服务即可。 ./activemq start  ...
  • 准备三台机子(140 141 149) 1、分别下载安装 activeMQ # cd /usr/local/src # wgethttp://mirrors.cnnic.cn/apache//activemq/5.14.2/apache-activemq-5.14.2-bin.tar.g...
  • IP:192.168.126.131  环境:CentOS 6.6、JDK8 1、 安装 JDK 并配置环境变量(略) ...2、 下载 Linux 版的 ActiveMQ(当前最新版 apache-activemq-5.11.1-bin.tar.gz)  $ wget http://apache.fayea.c...
  • Linux服务器重启后,发现原本能正常启动的Jboss实例和ActiveMQ实例都无法正常启动了, Jboss报错如下: java.net.MalformedURLException: Local host name unknown: java.net.UnknowstException: hy-192.168.1....
  • Linux——搭建ActiveMq

    2020-04-17 22:04:36
    下载安装包 下载地址——下载链接 ...(2)上传mq压缩包到Linux (3)解压到usr/local/ActiveMQ mkdir /usr/local/activemq tar -zxvf apache-activemq-5.15.10-bin.tar.gz -C /usr/local/ActiveMQ/ (4)配置...
  • Linux下安装ActiveMQ

    2018-02-11 14:44:19
    下面笔者带大家在Linux下快速安装ActiveMQ。需要环境:jdk1.将ActiveMQ压缩包apache-activemq-5.12.0-bin.tar.gz上传到Linux服务器上(采用远程工具上传,如SSH)。笔者这里给大家提供apache-activemq-5.12.0-bin.tar....

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 3,561
精华内容 1,424
关键字:

linux重启activemq

linux 订阅