MongoDB Quick Start
来自Jack's Lab
Install
comcat@maike:~# apt-get install mongodb Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libboost-filesystem1.42.0 libboost-program-options1.42.0 libboost-system1.42.0 libboost-thread1.42.0 libmozjs2d libpcrecpp0 mongodb-clients mongodb-dev mongodb-server The following NEW packages will be installed: libboost-filesystem1.42.0 libboost-program-options1.42.0 libboost-system1.42.0 libboost-thread1.42.0 libmozjs2d libpcrecpp0 mongodb mongodb-clients mongodb-dev mongodb-server 0 upgraded, 10 newly installed, 0 to remove and 3 not upgraded. Need to get 11.3 MB of archives. After this operation, 30.7 MB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://mirrors.debain.com/debian/ squeeze/main libboost-system1.42.0 amd64 1.42.0-4 [30.4 kB] Get:2 http://mirrors.debian.com/debian/ squeeze/main libboost-filesystem1.42.0 amd64 1.42.0-4 [53.4 kB] ...... ...... Processing triggers for man-db ... Setting up libboost-system1.42.0 (1.42.0-4) ... Setting up libboost-filesystem1.42.0 (1.42.0-4) ... Setting up libboost-program-options1.42.0 (1.42.0-4) ... Setting up libboost-thread1.42.0 (1.42.0-4) ... Setting up libmozjs2d (1.9.1.16-20) ... Setting up libpcrecpp0 (8.02-1.1) ... Setting up mongodb-clients (1:1.4.4-3) ... Setting up mongodb-server (1:1.4.4-3) ... Adding system user `mongodb' (UID 105) ... Adding new user `mongodb' (UID 105) with group `nogroup' ... Not creating home directory `/home/mongodb'. Adding group `mongodb' (GID 110) ... Done. Adding user `mongodb' to group `mongodb' ... Adding user mongodb to group mongodb Done. Starting database: mongodb. Setting up mongodb-dev (1:1.4.4-3) ... Setting up mongodb (1:1.4.4-3) ...