# I can not start HiveMQ using /etc/init.d/hivemq start or systemctl start hivemq

**URL:** <https://community.hivemq.com/t/i-can-not-start-hivemq-using-etc-init-d-hivemq-start-or-systemctl-start-hivemq/253>\
**Category:** HiveMQ Community Edition\
**Created:** [July 6, 2020, 9:12am UTC](https://community.hivemq.com/t/i-can-not-start-hivemq-using-etc-init-d-hivemq-start-or-systemctl-start-hivemq/253 "2020-07-06T09:12:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chengxiangwang](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@chengxiangwang](https://community.hivemq.com/u/chengxiangwang)\
**Post date:** [July 6, 2020, 9:12am UTC](https://community.hivemq.com/t/i-can-not-start-hivemq-using-etc-init-d-hivemq-start-or-systemctl-start-hivemq/253/1 "2020-07-06T09:12:41Z")

</div>

Greetings,  
I installed HiveMQ following the instruction:  
[https://github.com/hivemq/hivemq-community-edition/wiki/Installing-HiveMQ#installation-on-unix-based-systems-linux-bsd-macos-x-unix](https://github.com/hivemq/hivemq-community-edition/wiki/Installing-HiveMQ#installation-on-unix-based-systems-linux-bsd-macos-x-unix)

But I can not start HiveMQ using `/etc/init.d/hivemq start` or `systemctl start hivemq`.  
`systemctl start hivemq` gives me errors like below:

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/hivemq1/original/1X/f7b90280950ef742d8259b51cbdbe4986dd55887.png)

and `/etc/init.d/hivemq start` gives me:  
`Starting hivemq (via systemctl): [OK]`  
but it didn’t start when i check it.

I didn’t modify any configuration there.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![chengxiangwang](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@chengxiangwang](https://community.hivemq.com/u/chengxiangwang)\
**Post date:** [July 6, 2020, 9:14am UTC](https://community.hivemq.com/t/i-can-not-start-hivemq-using-etc-init-d-hivemq-start-or-systemctl-start-hivemq/253/2 "2020-07-06T09:14:28Z")

</div>

./bin/run.sh is OK.  
And i don’t know where to find log info when using `/etc/init.d/hivemq start` or `systemctl start hivemq`

---

<div class="post-metadata">

**Author:** ![zingiber](https://avatars.discourse-cdn.com/v4/letter/z/ce73a5/32.png) [@zingiber](https://community.hivemq.com/u/zingiber)\
**Post date:** [July 9, 2020, 9:11am UTC](https://community.hivemq.com/t/i-can-not-start-hivemq-using-etc-init-d-hivemq-start-or-systemctl-start-hivemq/253/3 "2020-07-09T09:11:04Z")

</div>

Hello chengxiangwang,

nice to see you experimenting with HiveMQ! It seems the service is trying to launch HiveMQ with a user that does not exist. Please make sure the user specified in the service is valid on the system. Most likely you will need to create a user named `hivemq`.

Kind regards,  
Finn from the HiveMQ team

---

<div class="post-metadata">

**Author:** ![chengxiangwang](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@chengxiangwang](https://community.hivemq.com/u/chengxiangwang)\
**Post date:** [July 13, 2020, 7:14am UTC](https://community.hivemq.com/t/i-can-not-start-hivemq-using-etc-init-d-hivemq-start-or-systemctl-start-hivemq/253/4 "2020-07-13T07:14:41Z")

</div>

Thank you for your reply.

It was caused by the `hivemq` user, indeed. But after I created `hivemq` user, I still cannot start the hivemq service.

The shell run.sh gives `HiveMQ 4 requires at least Java version 11`. But I surely installed java11.  
And when I execute the command  
`java_version=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}' | sed 's/\..*//')`  
alone， it returns 11 whichi is correct.  
I really don’t know what happened.

---

<div class="post-metadata">

**Author:** ![sanjmeh](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/sanjmeh/32/305_2.png) [@sanjmeh](https://community.hivemq.com/u/sanjmeh)\
**Post date:** [April 23, 2022, 10:31am UTC](https://community.hivemq.com/t/i-can-not-start-hivemq-using-etc-init-d-hivemq-start-or-systemctl-start-hivemq/253/5 "2022-04-23T10:31:19Z")

</div>

Was this sorted out @chengxiangwang ? It will be nice if you give the final solution before closing this thread.
