# “sudo systemctl enable nodered.service” no debian11 não funciona

**URL:** <https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-no-debian11-nao-funciona/74904>\
**Category:** General\
**Created:** [8 February 2023 17:54 UTC](https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-no-debian11-nao-funciona/74904 "2023-02-08T17:54:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyga](https://avatars.discourse-cdn.com/v4/letter/t/eb8c5e/32.png) [@tyga](https://discourse.nodered.org/u/tyga)\
**Post date:** [8 February 2023 17:54 UTC](https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-no-debian11-nao-funciona/74904/1 "2023-02-08T17:54:58Z")

</div>

Olá a todos,  
Estou tentando fazer com que o node-red inicie automaticamente após reiniciar o sistema.

Estou executando o comando "sudo systemctl enable nodered.service" e obtenho como resposta:

"Created symlink /etc/systemd/system/multi-user.target.wants/nodered.service -\> /etc/systemd/system/nodered.service."

Porém ao dar o reboot o node-red não inicia automaticamente, somente dando o comando "node-red" no console. Gostaria de saber o que posso fazer para com que consiga fazer que o node-red inicie automaticamente no debian 11

Obrigado

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [8 February 2023 19:53 UTC](https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-no-debian11-nao-funciona/74904/2 "2023-02-08T19:53:01Z")

</div>

There is a good chance that there is an error in your Node-RED configuration. View the log output from journalctl.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [8 February 2023 21:58 UTC](https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-no-debian11-nao-funciona/74904/3 "2023-02-08T21:58:01Z")

</div>

Oi Tyga.

Did you install Node-red with this script? It should work for Debian.

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

```

Does Node-red start successfully if you run **node-red** at the command line?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 April 2023 21:58 UTC](https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-no-debian11-nao-funciona/74904/4 "2023-04-09T21:58:42Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
