MongoDB

MongoDB

The most popular NOSQL database.

CLI

mongod --fork -f <config_file_path>

Tips

Import / Export

备份 db

mongoexport --db kanetori --collection users > users.json

导入 db
mongoimport --db kanetori --type json --collection users --file users.json

参数:

  • -h localhost:3001 : mongodb IP / PORT

Last update: 2019-01-31 07:13:36 UTC