2012-11-03 5 views
6

ich eine Anleitung befolgt haben ActiveMQ http://servicebus.blogspot.com/2011/02/installing-apache-active-mq-on-ubuntu.htmlEinrichten ActiveMQ

ich diesen Teil des

Now, you must create the data/jmx.password and data/jmx.access files 

Tutorial nicht verstehen, ganz installieren Wie soll ich dies funktioniert?

Ich habe versucht, den Dienst von

laufen
sudo /etc/init.d/activemq start 

und ich bekomme diese Antwort

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') 

aber ich bin noch nicht

http://localhost:8161 

Vielen Dank im Voraus zu verbinden.

Ich habe auch versucht sudo apt-get install activemq dann

activemq 

die mich

gab
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-<INSTANCENAME>. 
    This changes the configuration location to /etc/default/activemq-instance-<INSTANCENAME> and 
    $HOME/.activemqrc-instance-<INSTANCENAME>. Configuration files in /etc have higher precedence. 
+0

mit dem gleichen Problem – RollRoll

Antwort

1

den Server im interaktiven Modus zu starten, gehen Sie zu/bin und führen ./activemq console

1

activemq

starten

sollte funktionieren, um es zu starten.

activemq Status

sollte sagen, ob der Dienst läuft oder nicht.

Es kann möglich sein, dass Sie einmal ausführen müssen, um die PID-Datei zu erstellen, und dann erneut ausführen, damit es funktioniert, als Beschreiber in dieser Antwort: Activemq will not start on my Ubuntu VM

Falls es läuft und man kann nur ‚t auf die Webkonsole, lesen Sie in diesem anderen Q/A verbinden: ActiveMQ console not available

1

überprüfen/etc/default/activemq für diese Linie, und beachten Sie den Benutzernamen und das Passwort:

ACTIVEMQ_SUNJMX_CONTROL="--jmxurl service:jmx:rmi:///jndi/rmi://127.0.0.1:1099/j 
mxrmi --jmxuser USERNAME --jmxpassword PASSWORD" 

Ihre jmx.password Datei sollte enthält den Benutzernamen/das Passwort pair

USERNAME PASSWORD 

Ihre jmx.access Datei mit dem Benutzernamen von Lese-Schreib-

gefolgt enthalten sollte
USERNAME readwrite 
0

sudo notwendig ist.

bin$ sudo ./activemq start 
bin$ sudo ./activemq status 
INFO: Loading '/opt/runtime/apache-activemq-5.11.1/bin/env' 
INFO: Using java '/usr/bin/java' 
ActiveMQ is running (pid '29887') 
0

offene Datei vim/etc/default/activemq und Kommentarzeile # ACTIVEMQ_USER = "activemq"

jetzt in Apache-activemq zu Binärordner gehen und starten Sie es durch Befehl ./activemq

starten