T

노드에 관심이 가기 시작했습니다.~~

우분투입니다.
패키지가 존재 하더군요.(따로 설치할필요가 없어서 좋군요.)
apt-get install node 로 설치는 끝났습니다. (설치가 간단하군요.. 우분투 만쉐~!)

테스트 해보고자.... nodejs의 소스로 node.js를 만들었습니다.
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(40000, "127.0.0.1");
console.log('Server running at Terrorboy Net');


노드로 실행하면..... 포트가 개방되있지 않다닛.....
root@vps101:/# node node.js
axconfig: port 1 not active
axconfig: port 2 not active

요거 원인이 따로 있을까요?

가상서버라 판넬에서 포트만 해두면되는데 말이죠 ㅠㅠ


ps. 미러 서버 찾아서 대처후 업데이트하고 설치 완료했습니다.

|

댓글 4개

우분투 버전이 얼만지 모르겠지만
node랑 아니라 nodejs 를 설치해야 할겁니다.

$sudo apt-get install node
$sudo apt-get install nodejs

우분투 11에선 위 명령어 두개로 깔끔하게 설치했습니다.
nodejs는 패키지 검색이 안되네요.
우분투 8.04 버전이네요 ㅎㅎ
미러 페이지 찾았네요,.
deb http://ftp.kr.debian.org/debian/ experimental main
deb-src http://ftp.kr.debian.org/debian/ experimental main
/etc/apt/sources.list 의 내용을
deb http://ftp.kr.debian.org/debian/ experimental main
deb-src http://ftp.kr.debian.org/debian/ experimental main
로 대체 후
apt-get update
하고
apt-get install node
apt-get install nodejs
하면 설치 됩니다.
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,188건
+
제목 글쓴이 날짜 조회
16-03-02 조회 3,211
16-01-19 조회 2,491
15-12-23 조회 2,804
15-12-08 조회 3,609
14-10-30 조회 5,659
14-06-06 조회 5,493
12-08-30 조회 3,849
12-08-20 조회 3,771
12-07-15 조회 5,098
12-07-13 조회 3,577
12-07-06 조회 3,783
12-06-27 조회 3,318
12-06-23 조회 3,513
12-05-03 조회 5,136
12-04-20 조회 4,085
12-03-29 조회 4,574
12-03-22 조회 4,655
12-03-22 조회 3,459
12-03-21 조회 3,237
12-03-11 조회 3,676
12-03-06 조회 4,215
12-02-22 조회 4,491
12-02-17 조회 3,291
12-02-17 조회 6,137
12-02-14 조회 6,060
12-02-06 조회 4,213
12-01-18 조회 3,179
12-01-06 조회 3,401
11-12-30 조회 3,867
11-12-30 조회 7,011
11-12-21 조회 3,190
11-12-21 조회 4,194
11-12-16 조회 3,232
11-12-15 조회 3,274
11-12-15 조회 3,379
11-12-15 조회 4,174
11-12-09 조회 3,195
11-12-09 조회 3,269
11-12-07 조회 2,837
11-12-07 조회 3,922
11-12-05 조회 4,372
11-12-02 조회 3,813
11-12-01 조회 2,678
11-12-01 조회 2,726
11-12-01 조회 2,710