activemMQ启动失败 无法访问管理界面

本文介绍了ActiveMQ在启动过程中可能遇到的问题及解决方法,包括访问管理界面失败、防火墙设置、端口冲突、主机名配置错误等常见问题,并提供了解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

activemMQ启动失败 无法访问管理界面

activemMQ安装启动步骤:
    http://activemq.apache.org/getting-started.html

检查防火墙状态和端口是否被占用
     查看防火墙状态      service iptables status
     关闭防火墙          service iptables stop
     根据进程pid查端口   netstat -nap | grep pid      
     根据端口port查进程  netstat -nap | grep port  


./apache-activemq-5.12.0/bin/activemq console   查看异常信息

异常:
    java.net.UnknownHostException: CentOS: CentOS   
解决办法:
    vim /etc/hosts  添加   127.0.0.1 CentOSMQ

异常:
    UnsupportedClassVersionError: org/apache/activemq/console/Main : Unsupported major.minor version 52.0  
解决办法:
    换高版本的JDK 或 换低版本的activemq
    
异常:
    Exception thrown from LifecycleProcessor on context close
    java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: 
    org.apache.activemq.xbean.XBeanBrokerFactory$1@146f765: startup date [Tue Sep 11 23:58:43 CST 2018]; root of context hierarchy
解决办法:
    1.确认计算机主机名名称没有“_”,".";(如果有请去掉,linux,windows都可能出现这个问题)
      修改主机名参考: https://www.cnblogs.com/fiberhome/p/6830728.html
    2.如果是win7,停止ICS服务,cmd里输入services.msc找到Internet Connection Sharing (ICS)服务,停止该服务,并改成手动启动或禁用

欢迎指正和补充

参考链接:
https://blog.youkuaiyun.com/xiaobao5214/article/details/52222655

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值