V
V
Vlad Timofeev2015-02-28 23:19:53
Node.js
Vlad Timofeev, 2015-02-28 23:19:53

What's wrong with node.js server?

Good afternoon, I'm setting up a server on an Ubuntu 14.04 VM on Azure, and when I run the server.js file, I get an error:
73dd3e7b984a482e8dccb904e24070b5.png
Although when I run it on localhost at home. the system is fine.
Maybe it's in the nginx config?

server {
        listen 80;

        server_name localhost;

        location / {
                proxy_pass http://localhost:8080;
                # as directory, then fall back to displaying a 404.
                try_files $uri $uri/ =404;
                proxy_http_version 1.1;
                proxy_set_header Upgrade $http_upgrade;
                proxy_set_header Connection 'upgrade';
                proxy_set_header Host $host;
                proxy_cache_bypass $http_upgrade;
        }
}

When navigating through the IP, nginx gives up its page.
I'm new to this, don't get angry please))
What should I do here so that the server starts up normally?
I would be very grateful for any help )
====================================
9000 - Throws: Error: listen EADDRINUSE

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Avilov, 2015-02-28
@PyTiMa

This means that some program has already taken the port you are trying to connect to. Either find and remove this program, or change the port on which server.js is running

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question