// 모듈을 추출합니다.
var http = require('http');
// 웹 서버를 생성 및 실행합니다.
http.createServer(function (request, response){
response.writeHead(200, {'Content-Type' : 'text/html'});
response.end('<h1>Hellow World... !</h1>');
}).listen(52273, function(){
console.log('Server running at http://127.0.0.1:52273/');
});
'Dev > Node.js' 카테고리의 다른 글
Node.js 란 무엇인가? (0) | 2012.04.22 |
---|