# How to disable the Node-RED Web server service?

**URL:** https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351
**Category:** General
**Created:** [25 February 2019 07:01 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351 "2019-02-25T07:01:46Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![pangda](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@pangda](https://discourse.nodered.org/u/pangda)
#### Post date: [25 February 2019 07:01 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351/1 "2019-02-25T07:01:46Z")

</div>

How to disable the Node-RED web server service?

Only remain the Node-RED flows running.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [25 February 2019 07:54 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351/2 "2019-02-25T07:54:12Z")

</div>

See the settings.js file lines 92 and 156

---

<div class="post-metadata">

### Author: ![pangda](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@pangda](https://discourse.nodered.org/u/pangda)
#### Post date: [25 February 2019 09:20 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351/3 "2019-02-25T09:20:59Z")

</div>

I have change the setting.js file  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/ccf86fd8747de68cd6b12496d771866b21547747.png)

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

then test the Node-RED running successul, info show  
"25 Feb 17:04:26 - [info] Running in headless mode"

But the running memory is same with before change(not disable the web server).

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [25 February 2019 09:33 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351/4 "2019-02-25T09:33:11Z")

</div>

> [@pangda](#):
>
> not disable the web server

Can you still connect to the server?

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [25 February 2019 09:43 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351/5 "2019-02-25T09:43:45Z")

</div>

Apologies - I didn't realise this was related to your other question about memory usage. As per the other thread currently there is no way to stop the application loading all the modules (even those it doesn't use). There is work under way to help split the runtime from the editor - but a) that isn't complete and b) even that runtime would still include modules like express.js by default as the expectation is that someone will still want to administer the device and we use the web based api to do that.

---

<div class="post-metadata">

### Author: ![pangda](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@pangda](https://discourse.nodered.org/u/pangda)
#### Post date: [25 February 2019 09:55 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351/6 "2019-02-25T09:55:17Z")

</div>

after disable the web server, I couldn't connect to the server.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [25 February 2019 09:56 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351/7 "2019-02-25T09:56:18Z")

</div>

> [@pangda](#):
>
> after disable the web server, I couldn't connect to the server.

So it was disabled, but I see that isn't actually what you were looking for.

---

<div class="post-metadata">

### Author: ![pangda](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@pangda](https://discourse.nodered.org/u/pangda)
#### Post date: [25 February 2019 10:00 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351/8 "2019-02-25T10:00:55Z")

</div>

yes,the node-red server editor was disabled. now i need remove the node-red server or other way to reduce the node-red running memory.I only need the node-flows can running, don't need the server or other function.

---

<div class="post-metadata">

### Author: ![pangda](https://avatars.discourse-cdn.com/v4/letter/p/9dc877/32.png) [@pangda](https://discourse.nodered.org/u/pangda)
#### Post date: [25 February 2019 10:04 UTC](https://discourse.nodered.org/t/how-to-disable-the-node-red-web-server-service/8351/9 "2019-02-25T10:04:43Z")

</div>

yes, this was related about memory usage. your meaning is that there are not any other effective way to reduce the node-red running memory or it is difficult to disable the web server or reducing the running memory?
