部署
以centos为例,下载jar包,tar -zxvf xxx
解压后,进入activemq解压文件夹,执行./bin/activemq console
即可在shell前端启动,想后台运行的话执行./bin/activemq start
即可。
官方文档在这里,很简单:http://activemq.apache.org/getting-started
遇到的问题
1、activemq启动失败,报错
报错信息如下:
Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090)
at org