티스토리 뷰

개발/nodejs

nodejs 설치

donnert 2014. 1. 23. 15:07

다운로드

$ 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

>


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/10   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
글 보관함