mongodb初窥

启动MongoDB服务:
在 MongoDB 安装目录的 bin 目录下执行mongod

cd ~/mongodb/bin
mongod

show dbs -- 显示所有数据的列表
db -- 显示当前数据库对象或集合
use -- 连接到指定数据库

UNIX时间又称POSIX时间/新纪元时间(Epoch Time):从协调世界时1970年1月1日0时0分0秒起到现在的总秒数,不包括闰秒。正值表示1970以後,负值则表示1970年以前。

以下内容粘贴自github
MongoDB README

Welcome to MongoDB!

COMPONENTS

mongod - The database server.
mongos - Sharding router.
mongo - The database shell (uses interactive javascript).

UTILITIES

mongodump - Create a binary dump of the contents of a database.
mongorestore - Restore data from the output created by mongodump.
mongoexport - Export the contents of a collection to JSON or CSV.
mongoimport - Import data from JSON, CSV or TSV.
mongofiles - Put, get and delete files from GridFS.
mongostat - Show the status of a running mongod/mongos.
bsondump - Convert BSON files into human-readable formats.
mongoreplay - Traffic capture and replay tool.
mongotop - Track time spent reading and writing data.
install_compass - Installs MongoDB Compass for your platform.

BUILDING

See docs/building.md.

RUNNING

For command line options invoke:

$ ./mongod --help

To run a single server database:

$ sudo mkdir -p /data/db
$ ./mongod
$
$ # The mongo javascript shell connects to localhost and test database by default:
$ ./mongo
> help

INSTALLING COMPASS

You can install compass using the install_compass script packaged with MongoDB:

$ ./install_compass

This will download the appropriate MongoDB Compass package for your platform
and install it.

DRIVERS

Client drivers for most programming languages are available at
https://docs.mongodb.com/manual/applications/drivers/. Use the shell
("mongo") for administrative tasks.

BUG REPORTS

See https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports.

PACKAGING

Packages are created dynamically by the package.py script located in the
buildscripts directory. This will generate RPM and Debian packages.

DOCUMENTATION

https://docs.mongodb.com/manual/

CLOUD HOSTED MONGODB

https://www.mongodb.com/cloud/atlas

MAIL LISTS

https://groups.google.com/forum/#!forum/mongodb-user

A forum for technical questions about using MongoDB.

https://groups.google.com/forum/#!forum/mongodb-dev

A forum for technical questions about building and developing MongoDB.

LEARN MONGODB

https://university.mongodb.com/

你可能感兴趣的:(mongodb初窥)