개발/nodejs (1)
nodejs 설치

다운로드

$ wget http://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-x64.tar.gz

--2014-01-23 14:38:20--  http://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-x64.tar.gz

Resolving nodejs.org... 165.225.133.150

Connecting to nodejs.org|165.225.133.150|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 5472950 (5.2M) [application/octet-stream]

Saving to: `node-v0.10.24-linux-x64.tar.gz'


100%[=========================================================================================>] 5,472,950   1.67M/s   in 3.1s    


2014-01-23 14:38:24 (1.67 MB/s) - `node-v0.10.24-linux-x64.tar.gz' saved [5472950/5472950]


압축해제 & 이동

$ tar -xzvf node-v0.10.24-linux-x64.tar.gz

... 압축 푸는중...

$ mv node-v0.10.24-linux-x64 ~/nodejs

cd ~


PATH 설정

$vi .bash_profile

PATH=$PATH:$HOME/bin:$HOME/mongodb/bin:$HOME/nodejs/bin

$source .bash_profile


실행

$node

> console.log('hello nodejs');

hello nodejs

undefined

>


'개발 > nodejs' 카테고리의 다른 글

nodejs 설치  (0) 2014.01.23
0  Comments,   0  Trackbacks
댓글 쓰기