title: Setting Up ActiveMQ
body: <p>I have followed a tutorial to install ActiveMQ <a href="http://servicebus.blogspot.com/2011/02/installing-apache-active-mq-on-ubuntu.html">http://servicebus.blogspot.com/2011/02/installing-apache-active-mq-on-ubuntu.html</a></p>
  
  <p>I dont quite understand this part of the tutorial</p>
  
  <pre><code>Now, you must create the data/jmx.password and data/jmx.access files
  </code></pre>
  
  <p>How should I work this out?</p>
  
  <p>I tried running the service by</p>
  
  <pre><code>sudo /etc/init.d/activemq start
  </code></pre>
  
  <p>and I get this response</p>
  
  <pre><code>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=/
  INFO: pidfile created : '/opt/activemq/data/activemq-iandjx-GA-MA785GMT-USB3.pid' (pid 
  '6092')
  </code></pre>
  
  <p>but I'm still unable to connect to </p>
  
  <pre><code>http://localhost:8161
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>I also tried <code>sudo apt-get install activemq</code> then</p>
  
  <pre><code>activemq
  </code></pre>
  
  <p>which gave me </p>
  
  <pre><code>INFO: Loading '/usr/share/activemq/activemq-options'
  INFO: Using java '/usr/lib/jvm/java-6-openjdk//bin/java'
  mkdir: missing operand
  Try `mkdir --help' for more information.
  /usr/bin/activemq: 399: /usr/bin/activemq: /usr/lib/jvm/java-6-openjdk//bin/java -Xms512M -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true                -Dactivemq.classpath="/var/lib/activemq/conf;"               -Dactivemq.home="/usr/share/activemq"               -Dactivemq.base="/var/lib/activemq/"               -Dactivemq.conf="/var/lib/activemq/conf"               -Dactivemq.data="/var/lib/activemq/data"                              -jar "/usr/share/activemq/bin/run.jar" : not found
  Tasks provided by the sysv init script:
      restart         - stop running instance (if there is one), start new instance
      console         - start broker in foreground, useful for debugging purposes
      status          - check if activemq process is running
      setup           - create the specified configuration file for this init script
                        (see next usage section)
  
  Configuration of this script:
      The configuration of this script can be placed on /etc/default/activemq or /home/iandjx/.activemqrc.
      To use additional configurations for running multiple instances on the same operating system
      rename or symlink script to a name matching to activemq-instance-&lt;INSTANCENAME&gt;.
      This changes the configuration location to /etc/default/activemq-instance-&lt;INSTANCENAME&gt; and
      $HOME/.activemqrc-instance-&lt;INSTANCENAME&gt;. Configuration files in /etc have higher precedence.
  </code></pre>