Caused by: java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContex
我刚开始用./activemq start 启动mq 用./activemq status 出现正在运行 再次输入./activemq status
发现mq is not running 经过很长时间我才发现 主机名可能有误 修改主机名 重启 使用root权限 启动mq 成功了