CentOS 에서 nodejs 설치하기
맥이나 윈도우에서는 nodejs 설치가 아주 쉽게 되지만
리눅스(여기서는 CentOS) 에서는 조금 번거롭다.
1. Download
nodejs.org 에서 Source Code
버전으로 다운받는다.(현재 v0.10.26)
2. Install
node-v0.10.26.tar 아카이브를 풀고 인스톨한다.
$ tar xvf node-v0.10.26.tar
$ ./configure
$ make
$ make install
$ node -v
v0.10.26
3. Hello World
간단한 예제 프로그램 작성하여 테스트.
test.js
console.log('hello nodejs');
$ node test.js
hello nodejs
Sent from My Haroopad
The Next Document processor based on Markdown - Download
Posted on April 10th, 2014