1.安装目录为/export/servers/apache-activemq-5.14.3
2.启动 ./export/servers/apache-activemq-5.14.3/bin/activemq start 终端打印下列信息
INFO: Loading '/etc/default/activemq'
INFO: Using Java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: changing to user 'activemq' to invoke java
No directory, logging in with HOME=/
-su: 3: cannot create /export/servers/apache-activemq-5.14.3//data/activemq.pid: Permission denied
INFO: pidfile created : '/export/servers/apache-activemq-5.14.3//data/activemq.pid' (pid '3489')
3.解决办法:
chown -R activemq:users /export/servers/apache-activemq-5.14.3