activemq启动异常

来源:互联网 发布:百度新闻的评论 知乎 编辑:程序博客网 时间:2024/05/22 04:32

activemq启动异常

执行activemq启动命令start,输出正常提示信息,activemq.log日志也正常,但进程没有起来,没有其他任何异常信息:

[root@jms2 bin]# ./activemq start

INFO: Using default configuration

(you can configure options in one of these file: /etc/default/activemq /root/.activemqrc)


INFO: Invoke the following command to create a configuration file

./activemq setup [ /etc/default/activemq | /root/.activemqrc ]


INFO: Using java '/usr/bin/java'

INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details

INFO: pidfile created : '/usr/local/activemq-5.6.0-slave/data/activemq-jms2.pid' (pid '35301')



查询到console启动命令,启动后发现有错误日志输出:

[root@jms2 bin]# ./activemq console

INFO: Using default configuration

(you can configure options in one of these file: /etc/default/activemq /root/.activemqrc)


INFO: Invoke the following command to create a configuration file

./activemq setup [ /etc/default/activemq | /root/.activemqrc ]


INFO: Using java '/usr/bin/java'

INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)

错误: 必须限制口令文件读取访问权限: /usr/local/activemq-5.6.0-master/conf/jmx.password



修改jmx.password的权限:

-rwxrwxrwx. 1 hanxl games   968 8月  16 2013 jmx.password


chmod -R 600 jmx.password

-rw-------. 1 hanxl games   968 8月  16 2013 jmx.password



第二次报错如下,必须使用console命令启动才能看到错误:

错误: 代理抛出异常错误: java.net.MalformedURLException: Local host name unknown: java.net.UnknownHostException: jms2: jms2: 未知的名称或服务



console启动命令属于非后台运行,当关闭shell窗口时会退出进程,找到错误修改后,还需要使用start启动。


原创粉丝点击