Node1 node.js 설치 node.js 설치node.js 설치/설정$ curl -O https://nodejs.org/dist/v4.4.2/node-v4.4.2-linux-x64.tar.xz$ unxz node-v4.4.2...tar.xz$ tar -xvf node-v4.4.2...tar$ echo $PATH$ vi /etc/profileexport PATH=$PATH:/설치경로/node-v0.10.28/bin$ source /etc/profilenode.js web 서버$ vi test.jsvar http = require('http'); http.createServer(function(req,res){ res.writeHead(200,{'Content-Type':'text/plain'}); res.end('Hello Worl.. 2016. 4. 3. 이전 1 다음