mongoDB 설치 in window
2022. 10. 12. 16:23ㆍ웹개발
1. 몽고 msi 파일 설치
원하는 OS, 버젼, 패키지 선택해서 다운로드
https://www.mongodb.com/try/download/community?tck=docs_server
MongoDB Community Download
Download the Community version of MongoDB's non-relational database server from MongoDB's download center.
www.mongodb.com
2. 설치
윈도우는 Program Files 내에 설치된다.
환경변수는 자동으로 세팅되어 굳이 할 필요 없었다.
// 나의 경우 설치된 경로
C:\Program Files\MongoDB
3. 서버 연결되었는지 확인
CMD에서 설치된 경로 내 ./Server/bin/으로 가 mongo 실행
// CMD에서 설치된 경로 내 ./Server/bin/으로 이동
cd C:\Program Files\MongoDB\Server\4.2\bin
// 실행
mongo
# 접속되어있는 것 확인!
윈도우에서는 systemctl status 커맨드가 먹히지 않기 때문에 Services에 가서 Status가 Running인지 확인해야 한다.
윈도우 검색에서 [서비스]치면 창 바로 뜸.
끝.
728x90
'웹개발' 카테고리의 다른 글
Win R2 - 프로그램 설치시 dll 에러 (0) | 2022.11.03 |
---|---|
mongodump & mongorestore (0) | 2022.10.12 |
E QUERY [js] uncaught exception: Error: couldn't add user: not authorized on admin to execute command (0) | 2022.10.04 |
74680 ExecStart=/usr/sbin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=dumped, signal=ABRT) (1) | 2022.09.26 |
React 시작하기 + 포트 지정 (1) | 2022.09.14 |