简体   繁体   中英

Node.JS local hosting server manager

I'm searching for a local hosting server manager for my Node.JS applications that lives on different ports.

All I can find is cloud-based hosting such as: nodejitsu, nodecloud, nodester, heroku and so on.

Is there any hosting environment that can run locally on my personal computer ?

EDITED:

I'm looking for something like Microsoft IIS Server Manager.

That way I can manage my different server apps on different ports/configurations.

What prevents you from downloading node.js from http://nodejs.org/ and installing it on machine of your choice? That's all you need for running node only applications.

Node.js based websites write server software in JavaScript and run it with Node. It isn't used in conjunction with a regular webserver (except when that server operates as a proxy).

If you take a look at, to pick one based on it being at the front of your list, the getting started guide for nodejitsu you will see the code to run an HTTP server in the examples.

Provided you have a public IP & domain-name set up (or use something like localtunnel ), it is just a question about starting a Node.js webserver:

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(80, '127.0.0.1');
console.log('Server running at http://127.0.0.1:80/');

(Taken from Nodejs.org .)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM