우분투 몽고DB 서버 설치

Jmnote (토론 | 기여)님의 2016년 8월 23일 (화) 10:56 판 (→‎확인)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
  다른 뜻에 대해서는 CentOS 몽고DB 서버 설치 문서를 참조하십시오.
우분투 몽고DB 서버 설치

1 확인[ | ]

  • mongod는 서버, mongo는 클라이언트인데 둘다 설치하자...
root@zetawiki:~# mongod --version
The program 'mongod' is currently not installed. You can install it by typing:
apt-get install mongodb-server
root@zetawiki:~# mongo --version
The program 'mongo' is currently not installed. You can install it by typing:
apt-get install mongodb-clients

2 설치[ | ]

root@zetawiki:~# apt-get install mongodb-clients mongodb-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libboost-filesystem1.54.0 libboost-program-options1.54.0
  libgoogle-perftools4 libsnappy1 libtcmalloc-minimal4 libunwind8
The following NEW packages will be installed:
  libboost-filesystem1.54.0 libboost-program-options1.54.0
  libgoogle-perftools4 libsnappy1 libtcmalloc-minimal4 libunwind8
  mongodb-clients mongodb-server
0 upgraded, 8 newly installed, 0 to remove and 69 not upgraded.
Need to get 13.4 MB of archives.
After this operation, 109 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-filesystem1.54.0 amd64 1.54.0-4ubuntu3.1 [34.2 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main libboost-program-options1.54.0 amd64 1.54.0-4ubuntu3.1 [115 kB]
... (생략)
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
mongodb start/running, process 18190
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for ureadahead (0.100.0-16) ...

3 확인 2[ | ]

root@zetawiki:~# mongo --version
MongoDB shell version: 2.4.9
root@zetawiki:~# mongod --version
db version v2.4.9
Mon Dec 21 09:54:19.148 git version: nogitversion
root@zetawiki:~# netstat -ntlp | grep mongod
tcp        0      0 127.0.0.1:28017         0.0.0.0:*               LISTEN      18190/mongod    
tcp        0      0 127.0.0.1:27017         0.0.0.0:*               LISTEN      18190/mongod
root@zetawiki:~# mongo
MongoDB shell version: 2.4.9
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
	http://docs.mongodb.org/
Questions? Try the support group
	http://groups.google.com/group/mongodb-user
> show dbs
local	0.078125GB
> exit
bye
root@zetawiki:~#

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}