Created
January 18, 2017 16:32
-
-
Save makkaba/bb296f9c2ae7b58a55fcc6641f5dd134 to your computer and use it in GitHub Desktop.
node.js 헬로월드
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
}).listen(8080, 'localhost'); | |
console.log('Server running at http://localhost:8080/'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
시스템 리부팅 시에도 pm2 프로세스가 작동되도록 하려면
pm2 startup 명령어를 마지막에 쳐줘야 함