This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-libzt/tests/docker/nodejs/nodejs-0.10.36-4.fc23/httpserver.js

8 lines
251 B
JavaScript
Raw Normal View History

2016-06-14 16:01:19 -07:00
var http = require('http');
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("welcome to the machine!\n");
});
server.listen(8080);
console.log("Server running!");