activemq (linux)启动失败
问题描述:
activemq 启动失败
查看启动状态(在activemq安装目录的bin目录下:./activemq status)显示 成功,
但是访问页面http://你的ip:8161/ 失败
解决方案:
查看日志文件 发现错误信息如下
Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]:Invocation of init method failed; nested exception is java.net.URISyntaxException: Illegal character in hostname at index 12:ws://tracker_ip:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600 |
查看activemq.xml文件
61614对应的端口 ip地址有问题
将其改为:127.0.0.1:61614 启动成功
提示信息:
hosts 文件中的 tracker_ip 有下划线, 没有会报错
问题解决!!!