Permissions problem running Apache ActiveMQ

Posted by Edd on Ask Ubuntu See other posts from Ask Ubuntu or by Edd
Published on 2012-08-29T09:18:25Z Indexed on 2012/08/29 9:49 UTC
Read the original article Hit count: 1446

Filed under:
|
|

I'm wanting to use Apache ActiveMQ on Ubuntu 12.04 LTS, but am running into what looks like a permissions problem when I try to run it as follows:

edd:~$ sudo activemq --version
INFO: Loading '/usr/share/activemq/activemq-options'
INFO: Using java '/usr/lib/jvm/java-6-openjdk//bin/java'
INFO: changing to user 'activemq' to invoke java
Java Runtime: Sun Microsystems Inc. 1.6.0_24 /usr/lib/jvm/java-6-openjdk-amd64/jre
  Heap sizes: current=502464k  free=499842k  max=502464k
    JVM args: -Xms512M -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Dactivemq.classpath=/var/lib/activemq//conf;; -Dactivemq.home=/usr/share/activemq -Dactivemq.base=/var/lib/activemq/
ACTIVEMQ_HOME: /usr/share/activemq
ACTIVEMQ_BASE: /var/lib/activemq

ActiveMQ 5.5.0
For help or more information please see: http://activemq.apache.org

edd:~$ sudo activemq start
INFO: Loading '/usr/share/activemq/activemq-options'
INFO: Using java '/usr/lib/jvm/java-6-openjdk//bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: changing to user 'activemq' to invoke java
-su: line 2: /var/run/activemq.pid: Permission denied
INFO: pidfile created : '/var/run/activemq.pid' (pid '7811')

edd:~$ sudo activemq status
INFO: Loading '/usr/share/activemq/activemq-options'
INFO: Using java '/usr/lib/jvm/java-6-openjdk//bin/java'
ActiveMQ not running

edd:~$ ps ax | grep 'activemq'
 8040 pts/0    S+     0:00 grep --color=auto activemq

I installed ActiveMQ using sudo apt-get install activemq.

Apologies if there's any additional information missing - I'm fairly new to Linux as you may well have guessed!

© Ask Ubuntu or respective owner

Related posts about apt

Related posts about permissions