# Install on Centos 7 question

**URL:** <https://discourse.nodered.org/t/install-on-centos-7-question/22975>\
**Category:** General\
**Created:** [11 March 2020 14:06 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975 "2020-03-11T14:06:16Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerthemost](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jerthemost](https://discourse.nodered.org/u/jerthemost)\
**Post date:** [11 March 2020 14:06 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/1 "2020-03-11T14:06:16Z")

</div>

Can Node-Red be installed on centos 7 or Ubuntu? I have tried installing it apprx. 20 times and it says installed but I can never bring it up with my browser, it says cant be found.

---

<div class="post-metadata">

**Author:** ![JayDickson](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jaydickson/32/90592_2.png) [@JayDickson](https://discourse.nodered.org/u/JayDickson)\
**Post date:** [11 March 2020 14:51 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/2 "2020-03-11T14:51:08Z")

</div>

I have production instances running on both of those platforms.

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [11 March 2020 15:12 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/3 "2020-03-11T15:12:23Z")

</div>

> [@jerthemost](#):
>
> it says cant be found

Is the browser running on the same machine as Node-RED? Are you sure that the NR host is being addressed properly?

---

<div class="post-metadata">

**Author:** ![jerthemost](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jerthemost](https://discourse.nodered.org/u/jerthemost)\
**Post date:** [11 March 2020 15:35 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/4 "2020-03-11T15:35:18Z")

</div>

I am running it on a VPS not local computer. In my browser I put [http://my](http://my) vps ip:1880

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [11 March 2020 15:43 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/5 "2020-03-11T15:43:07Z")

</div>

Are you sure that the VPS has port 1880 open?

---

<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:** [11 March 2020 22:11 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/6 "2020-03-11T22:11:33Z")

</div>

It will not be open if the VPS is any good at all. There should be a host firewall running that blocks all inbound connections (maybe excepting the SSH port and ports 80/443).

It is even possible that the ISP running the VPS host may block some ports with their own firewalls but generally I've never found an issue with that. Some block common VPN ports or ToR and Torrent if that is against local laws or their own T's & C's.

---

<div class="post-metadata">

**Author:** ![jerthemost](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jerthemost](https://discourse.nodered.org/u/jerthemost)\
**Post date:** [12 March 2020 20:42 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/7 "2020-03-12T20:42:01Z")

</div>

I have re-installed ubuntu 18-04 plain and installed Node-Red, started it and used command line to open port 1880 and still cannot connect to it. When I installed NR it gave me a URL which I tried and did not work. I then substituted my server IP with :1880 tacked on and still no luck. I tried my domain name with :1880 and no connection. I can install Grafana and it works just not NR. I used UFW allow 1880 in my SSH and it seems to take but still does not connect.

---

<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:** [12 March 2020 20:54 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/8 "2020-03-12T20:54:00Z")

</div>

In a terminal run

```auto
node-red-stop
node-red-start

```

and post the output you get here.

---

<div class="post-metadata">

**Author:** ![jerthemost](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jerthemost](https://discourse.nodered.org/u/jerthemost)\
**Post date:** [12 March 2020 21:08 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/9 "2020-03-12T21:08:57Z")

</div>

"Command not found"

---

<div class="post-metadata">

**Author:** ![jerthemost](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jerthemost](https://discourse.nodered.org/u/jerthemost)\
**Post date:** [12 March 2020 21:11 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/10 "2020-03-12T21:11:09Z")

</div>

But if I use just node-red I get the following:

Welcome to Node-RED

---

<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:** [12 March 2020 21:15 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/11 "2020-03-12T21:15:19Z")

</div>

Did you use the recommended install script for Ubuntu (and other Debian based distros including Raspbian) as in [https://nodered.org/docs/getting-started/raspberrypi](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

**Author:** ![jerthemost](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jerthemost](https://discourse.nodered.org/u/jerthemost)\
**Post date:** [12 March 2020 21:17 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/12 "2020-03-12T21:17:54Z")

</div>

# If I use just node-red I get the following: Welcome to Node-RED

12 Mar 21:09:06 - [info] Node-RED version: v1.0.4  
12 Mar 21:09:06 - [info] Node.js version: v8.10.0  
12 Mar 21:09:06 - [info] Linux 4.15.0-45-generic x64 LE  
12 Mar 21:09:07 - [info] Loading palette nodes  
12 Mar 21:09:07 - [info] Settings file : /root/.node-red/settings.js  
12 Mar 21:09:07 - [info] Context store : 'default' [module=memory]  
12 Mar 21:09:07 - [info] User directory : /root/.node-red  
12 Mar 21:09:07 - [warn] Projects disabled : editorTheme.projects.enabled=false  
12 Mar 21:09:07 - [info] Flows file : /root/.node-red/flows\_server1.smartcrop.services.json  
12 Mar 21:09:07 - [info] Creating new flow file  
12 Mar 21:09:08 - [warn]

* * *

Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials  
file will not be recoverable, you will have to delete it and re-enter  
your credentials.

## You should set your own key using the 'credentialSecret' option in your settings file. Node-RED will then re-encrypt your credentials file using your chosen key the next time you deploy a change.

12 Mar 21:09:08 - [info] Starting flows  
12 Mar 21:09:08 - [info] Started flows  
12 Mar 21:09:08 - [error] Unable to listen on [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
12 Mar 21:09:08 - [error] Error: port in use

---

<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:** [12 March 2020 21:21 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/13 "2020-03-12T21:21:25Z")

</div>

The error port in use means that you probably already have node-red running.  
However, I see that you seem to have installed it as root. So if I understand correctly you currently have node red running as root (which means it can access absolutely anything on your system) with port 1880 open to the internet. If so you may well have been hacked already. I suggest you stop the system re-install it and start again.  
There are bots running on the internet looking for machines with port 1880 open and hacking into them for nefarious purposes. That is bad enough if you are running as a normal user, but as root that is catastrophic.

And I mean re-install the system, not node-red.

---

<div class="post-metadata">

**Author:** ![jerthemost](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jerthemost](https://discourse.nodered.org/u/jerthemost)\
**Post date:** [12 March 2020 23:55 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/14 "2020-03-12T23:55:34Z")

</div>

Thanks, I will re-install Ubuntu and try again and post the results.

---

<div class="post-metadata">

**Author:** ![jerthemost](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jerthemost](https://discourse.nodered.org/u/jerthemost)\
**Post date:** [13 March 2020 20:28 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/15 "2020-03-13T20:28:07Z")

</div>

I found the problem. I installed Vesta so I could edit the firewall and add port 1880 and it worked. Sudo UFW command to open the port did not work.

---

<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:** [13 March 2020 22:04 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/16 "2020-03-13T22:04:28Z")

</div>

As I said, don't open node-red to the internet unless you have enabled https and at least basic user/pwd login. Otherwise you will more than likely get hacked.

---

<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:** [12 May 2020 22:15 UTC](https://discourse.nodered.org/t/install-on-centos-7-question/22975/17 "2020-05-12T22:15:00Z")

</div>

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