수

Node.js MongoDB 설치

MongoDB


코드 예제를 실험 해 보려면 MongoDB 데이터베이스에 액세스해야합니다.

https://www.mongodb.com 에서 무료 MongoDB 데이터베이스를 다운로드 할 수 있습니다 .

 

MongoDB 드라이버 설치


Node.js로 MongoDB 데이터베이스에 접근 해 봅시다.

공식 MongoDB 드라이버를 다운로드하여 설치하려면 명령 터미널을 열고 다음을 실행하십시오 :

mongodb 패키지 다운로드 및 설치 :

C:\Users\Your Name>npm install mongodb
이제 mongodb 데이터베이스 드라이버를 다운로드하여 설치했습니다.

Node.js는이 모듈을 사용하여 MongoDB 데이터베이스를 조작 할 수 있습니다 :

var mongo = require('mongodb');

댓글 1개

nodejs는 mysql,아파치 이용안하는건가요?

댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
PHP 19-06-24 조회 3,227
PHP 19-06-09 조회 3,878
MySQL 19-04-01 조회 4,908
jQuery 19-03-20 조회 4,287
node.js 19-02-12 조회 3,391
node.js 19-02-12 조회 3,125
node.js 19-02-12 조회 3,390
node.js 19-02-07 조회 3,363
node.js 19-02-07 조회 3,105
node.js 19-02-07 조회 3,239
node.js 19-02-04 조회 2,989
node.js 19-02-04 조회 2,963
node.js 19-02-04 조회 3,406
node.js 19-01-31 조회 2,513
node.js 19-01-31 조회 2,664
node.js 19-01-31 조회 3,159
node.js 19-01-28 조회 2,926
node.js 19-01-28 조회 2,992
node.js 19-01-28 조회 2,832
node.js 19-01-22 조회 3,187
node.js 19-01-22 조회 2,925
node.js 19-01-22 조회 3,383
node.js 19-01-16 조회 2,798
node.js
[node.js]
19-01-16 조회 2,712
node.js 19-01-16 조회 9,371
node.js 19-01-12 조회 4,439
node.js 19-01-12 조회 3,073
node.js 19-01-12 조회 3,190
node.js 19-01-11 조회 2,734
node.js 19-01-11 조회 4,100