Answer the question
In order to leave comments, you need to log in
How to make the server always running?
There is a vds server.
OS ubuntu.
Well and through ssh I work with it.
I raise the server in putty nodemon /home/netwixell/www/run.js
Well, 46.229.213.73:3000 I get Hello, world!
var http=require('http'),
server=new http.Server(),
port=3000;
server.listen(port);
server.on('request', function(req, res){
res.end("Hello, world!");
});
console.log('Server running on port '+port);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question