![Iniciar o serviço activemq no Linux recebe a mensagem: “Loaded: carregado (/etc/init.d/activemq; ruim; predefinição do fornecedor: ativado)”](https://rvso.com/image/1557232/Iniciar%20o%20servi%C3%A7o%20activemq%20no%20Linux%20recebe%20a%20mensagem%3A%20%E2%80%9CLoaded%3A%20carregado%20(%2Fetc%2Finit.d%2Factivemq%3B%20ruim%3B%20predefini%C3%A7%C3%A3o%20do%20fornecedor%3A%20ativado)%E2%80%9D.png)
Meu activemq caiu repentinamente (não sei por que). Quando tento iniciar o serviço por
sudo service activemq starts
Parece bom. No entanto, quando verifico o status usando
sudo service activemq status
Recebi a seguinte mensagem.
activemq.service - LSB: Starts ActiveMQ
Loaded: loaded (/etc/init.d/activemq; bad; vendor preset: enabled)
Active: active (exited) since Fri 2018-03-30 19:51:54 UTC; 44min ago
Docs: man:systemd-sysv-generator(8)
Process: 1253 ExecStart=/etc/init.d/activemq start (code=exited, status=0/SUCCESS)
Tasks: 0
Memory: 0B
CPU: 0
Mar 30 19:51:54 ip-172-31-43-187 systemd[1]: Starting LSB: Starts ActiveMQ...
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: Loading '/etc/default/activemq'
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: Using java '/usr/bin/java'
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: changing to user 'activemq' to invoke java
Mar 30 19:51:54 ip-172-31-43-187 su[1352]: Successful su for activemq by root
Mar 30 19:51:54 ip-172-31-43-187 su[1352]: + ??? root:activemq
Mar 30 19:51:54 ip-172-31-43-187 su[1352]: pam_unix(su:session): session opened for user activemq by (uid=0)
Mar 30 19:51:54 ip-172-31-43-187 activemq[1253]: INFO: pidfile created : '/etc//data/activemq.pid' (pid '1370')
Mar 30 19:51:54 ip-172-31-43-187 systemd[1]: Started LSB: Starts ActiveMQ.
Observe que se eu usar ps aux
, posso encontrar o pid do activemq. Atualmente estou usando o nível gratuito da AWS. E meu sistema de servidor Linux é
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Alguma ideia? pessoal. Por favor ajude.
Responder1
Parece que você está encontrando um bug Bug do activemq do Ubuntu
em vez desudo service activemq starts
tente systemctl start activemq.service
o que também pode falhar
finalmente tente /etc/init.d/activemq console main
ficar de olho no bug.
boa sorte