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