再LINUX上启动ActiveMQ : ./bin/activemq start
查看日志:/data/activemq.log 查看错误
发现:java.net.UnknowHostException:VM_30_203_centos错误.
经常一番研究..原因是 :
linux的 hostname:是VM_30_203_centos,而启动时不知道host异常,可能是/etc/hosts 没有VM_30_203_centos.
修改/etc/hosts文件.加上
127.0.0.1 VM_30_203_centos VM_30_203_centos
再重新启动 没问题了.
!!!!