赞
踩
今天首次下载运行ActiveMQ
,输入启动命令后,查看运行状态显示未启动。
查看控制台信息后,发现如下错误:
[root@localhost bin]# ./activemq start
INFO: Loading ‘/usr/local/src/apache-activemq-6.0.1//bin/setenv’
INFO: Using java ‘/usr/bin/java’
INFO: Starting - inspect logfiles specified in logging.properties and log4j2.properties to get details
INFO: pidfile created : ‘/usr/local/src/apache-activemq-6.0.1//data/activemq.pid’ (pid ‘9931’)
[root@localhost bin]# ./activemq status
INFO: Loading ‘/usr/local/src/apache-activemq-6.0.1//bin/setenv’
INFO: Using java ‘/usr/bin/java’
ActiveMQ not running
[root@localhost bin]# ./activemq console
INFO: Loading ‘/usr/local/src/apache-activemq-6.0.1//bin/setenv’
INFO: Using java ‘/usr/bin/java’
INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
INFO: Creating pidfile /usr/local/src/apache-activemq-6.0.1//data/activemq.pid
错误: 加载主类 org.apache.activemq.console.Main 时出现 LinkageError
java.lang.UnsupportedClassVersionError: org/apache/activemq/console/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
下载低版本的ActiveMQ
,例如:apache-activemq-5.15.9
解压后,运行,已成功启动。
[root@localhost apache-activemq-5.15.9]# cd bin
[root@localhost bin]# ./activemq start
INFO: Loading ‘/usr/local/src/apache-activemq-5.15.9//bin/env’
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/src/apache-activemq-5.15.9//data/activemq.pid’ (pid ‘10372’)
[root@localhost bin]# ./activemq status
INFO: Loading ‘/usr/local/src/apache-activemq-5.15.9//bin/env’
INFO: Using java ‘/usr/bin/java’
ActiveMQ is running (pid ‘10372’)
[root@localhost bin]#
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。