在Linux中启动activemq服务会收到消息:“已加载:已加载(/etc/init.d/activemq; bad;供应商预设:已启用)”


0

我的activemq突然下降(不知道为什么)。当我尝试启动服务时

sudo service activemq starts 

看起来很好。但是,当我使用时检查状态

sudo service activemq status

我收到以下消息。

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.

请注意,如果我使用ps aux,我可以找到activemq pid。我目前正在使用AWS免费套餐。我的Linux服务器系统是

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:        16.04
Codename:       xenial

有任何想法吗?家伙。请帮忙。

Answers:


0

看起来你可能遇到了一个bug Ubuntu activemq bug

代替 sudo service activemq starts

尝试systemctl start activemq.service 哪些也可能失败

最后试着/etc/init.d/activemq console main密切关注这个bug。

祝好运

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.