精华内容
下载资源
问答
  • 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因为磁盘空间不足异常退出, 重启就出现下面的问题.  因为看到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-03-15 09:07:19
    本人在linux系统上安装了activemq,后来又想测试rabbitmq,于是安装了rabbitmq。之后activemq的后台网页连不上,重启也没用。 在网上查找错误,通过./activemq console命令可以查看到activemq启动的错误信息,另外...

        本人在linux系统上安装了activemq,后来又想测试rabbitmq,于是安装了rabbitmq。之后activemq的后台网页连不上,重启也没用。

        在网上查找错误,通过./activemq console命令可以查看到activemq启动的错误信息,另外在data/activemq.log文件中可以查看到错误日志。

    java.io.IOException: Transport Connector could not be registered in JMX: java.io.IOException: Failed to bind to server socket: amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 due to: java.net.BindException: 地址已在使用

    这个是activemq 和 安装rabbitmq之后端口冲突。有人说是erlang把端口占用了。


    高兴的是activemq可以更改这个端口号,在文件conf/activemq.xml中

       <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:5673?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>


    我把5672端口改为5673,重新启动./activemq start 。问题解决 

    展开全文
  • Linux安装activeMQ的流程中的坑 1. # ./activemq start 远不止这一下 2. 修改配置文件: 将打码处修改为虚拟机的ip 3.关闭防火墙: 注意我是centos6.5 命令是 关闭命令: service iptables stop 永久...

    Linux安装activeMQ的流程中的坑

    1.

    # ./activemq start


    远不止这一下

    2.

    修改配置文件:

    将打码处修改为虚拟机的ip

      3.关闭防火墙:
    注意我是centos6.5

    命令是

    关闭命令:  service iptables stop 
            永久关闭防火墙:chkconfig iptables off

    两个命令同时运行,运行完成后查看防火墙关闭状态 
            service iptables status

    4.重启虚拟机

    reboot

    5.打开宿主机浏览器

    展开全文
  • 1.关闭防火墙:service iptables stop后重启服务 2.防火墙关闭后还是解决不了问题的话 那么原因是机器名和ip地址没有对上。 这时候可以vim /etc/hosts,这时候会发现下面这些映射关系 127.0.0.1 localhost ...
  • Linux服务器重启后,发现原本能正常启动的Jboss实例和ActiveMQ实例都无法正常启动了, Jboss报错如下: java.net.MalformedURLException: Local host name unknown: java.net.UnknowstException: hy-192.168.1....
  • 解决问题: 1.修改/etc/sysconfig/network  修改 hostname=xxx, 不能有下划线 2.修改/etc/hosts  添加刚刚 修改hostname的名字.  3.reboot 重启 4.重新启动active
  • linux上安装ActiveMQ无法访问问题

    千次阅读 2018-06-22 15:04:30
    我们在linux安装ActiveMQ,启动MQ,如下图,启动成功但访问管控台,会出现HTTP ERROR:503错误,这里我是能ping通的,通过网上查询,发现是我改啦主机名(查看主机名命令行为hostname),但却没在hosts中配置,所以应该改hosts...
  • 1.建立软连接 # ln -s /usr/local/activemq/bin/activemq /etc/init.d/ ... # vi /etc/init.d/activemq ...# reboot 重启 4.可以以系统服务的方式启动、查看状态和停止服务 # service active...
  • ActiveMQ

    2020-09-29 09:25:03
    LinuxActiveMQ安装完成后不能访问8181端口 1. 启动ActiveMQ ,查看8161端口 2.发现8161端口前面存在 127.0.0.1 修改apache-activemq-5.16.0/conf/jetty.xml文件中的内容 3.0重启运行
  • 打开activemq下面的bin目录: 使用下面命令 停止服务 ./activemq stop 启动服务 ./activemq start 重启服务 ./activemq restart
  • Linux打开防火墙,开放相应的端口访问vi /etc/sysconfig/iptables-A INPUT -m state --state NEW -m tcp -p tcp --dport 8161 -j ACCEPT-A INPUT -m state --state NEW -m tcp -p tcp --dport 61616 -j ACCEPT重启...
  • 博主用的activemq是 5.13.0版本...linux是 centos6.3 64位 启动报错 根据提示应该是解析不了host名字 打开文件 vi /etc/sysconfig/network HOSTNAME=localhost 保存 重启服务器 启动activemq成功
  • ActiveMQ 安装1....重启 ActiveMQ9.关闭 ActiveMQ10.配置文件 activemq.xml11.ActiveMQ 目录介绍 1.下载资源 ActiveMQ 官网 简单的英文相信大家是没有问题的,我就不放下载的详细步骤了哟 1.1 版本说明 Ac
  • activeMQ启动失败

    2020-06-05 23:17:25
    执行./activemq start启动后过1秒自动停止 查看控制台报错信息./activemq console 关键显示java.net.URISyntaxException: Illegal character in hostname at index 13主机名中索引13...修改完成后要进行重启linux ...
  • Linux下 Apache Httpd(负载均衡) + Jboss集群高可用部署(附带ActiveMQ+TOMCAT部署)背景安装环境软件清单第一部分 Linux常用命令0.0 重启系统0.1、日志监控0.1.1 tail -f filename0.1.2 tail -n 20 filename0.1.3...
  • ActiveMQ入门笔记

    2020-06-23 21:51:17
    笔记下载安装使用XShell上传到Linux服务器解压即可使用版本查看可以通过release notes配置重要配置文件activemq.xmljetty.xmlusers.properties启动浏览器访问开放8161端口可通过浏览器访问启动成功重启停止简介核心...
  • 下载地址 选择对应的版本进行下载,这里选用linux下 上传压缩包至/usr/local下 解压缩对应的压缩包 tar -zxvf apache-activemq-5.16.0 ..../activemq restart # 重启 ./activemq status # 状态 activem.
  • 启动,停止和重启常用服务器的Bash脚本,对于每个服务器,需要根据实际的安装路径做相应的修改   #! /bin/bash Servers=(Apache2, Nginx, Resin, Tomcat, Couchbase, SVN, ActiveMQ, Mongo); Ops=(Start, ...
  • 修改配置文件下-Xmx参数然后重启mq即可: /fs01/apache-activemq-5.15.0/bin/env ACTIVEMQ_OPTS_MEMORY="-Xms64M -Xmx2G" JVM:查看java内存情况命令  jmap (linux下特有,也是很常用的一个命令)  ...
  • 下载 1、官网:http://activemq.apache.org/ ...启动/重启/关闭:./activemq start/restart/stop 查看是否启动activeMQ【进程是6826】 2、windows下安装 先安装jdk,并配置好环境变量 解压缩下载好的a...
  • ActiveMQ是最新5.15的版本,结合zookeeper搭的集群,搭建好第一次用时很正常,然后关机第二天重启以后发现启动失败了,控制台也打不开,大家能帮忙看看问题在哪么? ``` 2019-10-30 19:28:09,199 | INFO | No ...
  • 查验了网上各种方法,都没搞定,最后楼主决定按照linux的解决套路来,把windows计算机名称改为纯英文字母,原计算机名:lee_pc,修改后为leepc,然后重启电脑,再重新运行activemq.bat,神奇的自然就好了。...
  • linux安装avtiveMq

    2020-11-06 16:01:11
    linux安装avtiveMq 1.下载 安装包 上传到 /usr/local 目录下 http://activemq.apache.org/activemq-5156-release.html 2.解压 tar -zxvf apache-activemq-5.15.6-bin.tar.gz //解压文件 3.防火墙设置 //添加8161和...
  • rabbitMQ学习笔记

    2020-08-26 22:24:34
    不同MQ的特点 1.ActiveMQ activemq是能力强劲的开源消息总线,它是...命令行的方式操作linux上的rabiitmq systemctl start abbitmq-server #启动命令 systemctl restartrabbitmq-server #重启命令 systemctl s...

空空如也

空空如也

1 2 3
收藏数 44
精华内容 17
关键字:

linux重启activemq

linux 订阅