2012-11-03 6 views
6

Ho seguito un tutorial per installare ActiveMQ http://servicebus.blogspot.com/2011/02/installing-apache-active-mq-on-ubuntu.htmlImpostazione ActiveMQ

io non capisco questa parte del tutorial

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

Come dovrei lavorare questo fuori?

ho provato a fare funzionare il servizio da

sudo /etc/init.d/activemq start 

e ottengo questa risposta

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

ma sono ancora in grado di connettersi a

http://localhost:8161 

Grazie in anticipo.

Ho anche provato sudo apt-get install activemq poi

activemq 

che mi ha dato

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

con lo stesso problema – RollRoll

risposta

1

per avviare il server in modalità interattiva, andare a/bin ed eseguire ./activemq console

1

activemq iniziano

dovrebbe funzionare per avviarlo.

stato activemq

dovrebbe dire se il servizio è in esecuzione o meno.

E 'possibile che si deve eseguire una volta per creare il file PID, e poi ri-run per farlo funzionare, come descritti nella questa risposta: Activemq will not start on my Ubuntu VM

Nel caso in cui è in esecuzione e si può solo 't connettersi alla console web, controllare quest'altra D/a: ActiveMQ console not available

1

Controllare/etc/default/ActiveMQ per questa linea e prendere nota del nome utente e password:

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

il file dovrebbe jmx.password contenere il nome utente/password coppia

USERNAME PASSWORD 

Il file jmx.access deve contenere il nome utente seguito da readwrite

USERNAME readwrite 
0

sudo è necessario.

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

aperta vim file/etc/default/ActiveMQ e riga di commento # ACTIVEMQ_USER = "activemq"

ora Vai alla cartella bin in Apache ActiveMQ-ed eseguirlo utilizzando il comando ./activemq iniziare