# "sudo systemctl enable nodered.service" in ubuntu fail?

**URL:** <https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-in-ubuntu-fail/16556>\
**Category:** General\
**Created:** [10 October 2019 14:09 UTC](https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-in-ubuntu-fail/16556 "2019-10-10T14:09:34Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![gaofei207](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gaofei207/32/13047_2.png) [@gaofei207](https://discourse.nodered.org/u/gaofei207)\
**Post date:** [11 October 2019 00:48 UTC](https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-in-ubuntu-fail/16556/7 "2019-10-11T00:48:23Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/4cbd30206e749759aaefbc18065e75661366e8a8.png)

If close the window ,the service do not keep running in the background.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/caef112bb83a11b52fff2e83e7fd82f165cb9c38.png)

I find a similar topic in [Unhandled rejection Error: EACCES: permission denied,](https://discourse.nodered.org/t/unhandled-rejection-error-eacces-permission-denied/9559/11).

```auto
sudo apt-get purge nodejs

```

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

```

also no effect.

Thanks.

---

_[View the full topic](https://discourse.nodered.org/t/sudo-systemctl-enable-nodered-service-in-ubuntu-fail/16556)._
