命令说明:
ll /home/mongodb-linux-i686-3.0.6/bin
-rwxr-xr-x 1 root root 12M Oct 8 14:01bsondump #到处bson结构
-rwxr-xr-x 1 root root 12M Oct 8 14:01 mongo #客户端
-rwxr-xr-x 1 root root 21M Oct 8 14:01 mongod #服务端
-rwxr-xr-x 1 root root 4.7M Oct 8 14:01 mongodump #整体数据库导出
-rwxr-xr-x 1 root root 4.6M Oct 8 14:01 mongoexport #导出易识别的json或者csv文档
-rwxr-xr-x 1 root root 4.6M Oct 8 14:01 mongofiles
-rwxr-xr-x 1 root root 4.7M Oct 8 14:01 mongoimport
-rwxr-xr-x 1 root root 4.3M Oct 8 14:01 mongooplog
-rwxr-xr-x 1 root root 21M Oct 8 14:01 mongoperf
-rwxr-xr-x 1 root root 4.8M Oct 8 14:01 mongorestore #整体数据库导入
-rwxr-xr-x 1 root root 11M Oct 8 14:01 mongos #数据库分片
-rwxr-xr-x 1 root root 4.5M Oct 8 14:01 mongostat #状态
-rwxr-xr-x 1 root root 4.4M Oct 8 14:01 mongotop #资源使用
启动
mongod --help #查看参数说明
mongod --dbpath /disk1/mongodb/db/ --logpath /disk1/mongodb/log/file.log --fork
关闭
mongo
>use admin;
>db.shutdownServer();