Activemq not starting on my Ubuntu virtual machine

I am trying to run activemq on my ubuntu virtual machine, but constantly run into problems running it. I tried to download the binary and the source with no luck. Currently, I downloaded the source, ran "mvn clean install -Dmaven.test.skip = true", and mvn reported a successful installation. Then I hunted in my .m2 folder, found by apache-activemq-5.5.1-bin.tar.gz, and extracted it to my home / USERNAME drive and tried to run "bash bin / activemq start" only to get the following error.

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 bin/activemq: line 370: /usr/bin/java -Xms256M -Xmx256M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Dactivemq.classpath="/home/jacob/activeMq1/apache-activemq-5.5.1/conf;" -Dactivemq.home="/home/jacob/activeMq1/apache-activemq-5.5.1" -Dactivemq.base="/home/jacob/activeMq1/apache-activemq-5.5.1" -jar "/home/jacob/activeMq1/apache-activemq-5.5.1/bin/run.jar" start >/dev/null 2>&1 & RET="$?"; APID="$!"; echo $APID > /home/jacob/activeMq1/apache-activemq-5.5.1/data/activemq.pid; echo "INFO: pidfile created : '/home/jacob/activeMq1/apache-activemq-5.5.1/data/activemq.pid' (pid '$APID')"; exit $RET: No such file or directory 

Has anyone run into this type of error before?

+7
source share
4 answers

It seems like I'm answering one of my questions again, but maybe this will help someone in the future.

Steps.

  • I ended up working with activemq by creating a configuration file by running the command "./bin/activemq setup newConfig" (exclude quotation marks)
  • Then I replaced the current configuration file "activemq", which was located at etc / default /. (I made a backup of the activemq source file before overwriting it with newConfig).
  • Run "./bin/activemq start" which will create the PID file.
  • After creating the file, re-run "./bin/activemq start" to finally start the broker.

Then you can test the installation by clicking on the link "http: // localhost: 8161 / admin /" or by executing "netstat -an | grep 61616" if you saved the default ports, etc.

+16
source

I install activeemq 5.13 on Debian, download and unzip to / opt, then go to / opt / apache -activemq-5.13.1 / run "./bin/activemq start" and then this error appears:

 xx@debian :/opt/apache-activemq-5.13.1$ ./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 ./bin/activemq: 330: ./bin/activemq: "/usr/bin/java" -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/opt/apache-activemq-5.13.1//conf/login.config -Djava.awt.headless=true -Djava.io.tmpdir="/opt/apache-activemq-5.13.1//tmp" -Dactivemq.classpath="/opt/apache-activemq-5.13.1//conf:/opt/apache-activemq-5.13.1//../lib/:" -Dactivemq.home="/opt/apache-activemq-5.13.1/" -Dactivemq.base="/opt/apache-activemq-5.13.1/" -Dactivemq.conf="/opt/apache-activemq-5.13.1//conf" -Dactivemq.data="/opt/apache-activemq-5.13.1//data" -jar "/opt/apache-activemq-5.13.1//bin/activemq.jar" start >/dev/null 2>&1 & RET="$?"; APID="$!"; echo $APID > /opt/apache-activemq-5.13.1//data/activemq.pid; echo "INFO: pidfile created : '/opt/apache-activemq-5.13.1//data/activemq.pid' (pid '$APID')";exit $RET: not found 

What I did was check the version of Debian with the command "uname -a":

 Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux 

I found that my debian is a 64-bit system. so i run

 ./bin/linux-x86-64/activemq start 

He shows:

 Starting ActiveMQ Broker... 

Then I can access the site: http: // localhost: 8161 / admin / with the username "admin" and the password "admin"

+7
source

with Ubuntu 14.04, I had to create a link in / etc / activemq / instance -enabled

 sudo ln -s ../instances-available/main/ 

similar to installing apache2

then started the server with /etc/init.d/activemq start

+6
source

sudo is needed.

bin $ sudo. / activemq start

bin $ sudo. / activemq status INFO: Download '/opt/runtime/apache-activemq-5.11.1/bin/env' INFO: Using java '/ usr / bin / java' ActiveMQ starts (pid '29887')

+1
source

All Articles