zoukankan      html  css  js  c++  java
  • Mongo DB Anny

    From http://www.mongodb.org/display/DOCS/Tutorial#Tutorial-RunningMongoDB

    According to tutorial, a win-32 bit Mongo is installed on my pc(winXP).

    The important binaries for a first run are:

    • mongod.exe - the database server. 
    • mongo.exe - the administrative shell

    When I run mongod.exe in cmd, there is an error below:

    Wed May 30 15:09:50 [initandlisten] exception in initAndListen: 10296 dbpath (/data/db) does not exist, terminating
    So I create /data/db in Q:\ and run it like mongod.exe --dbpath Q:\data\db, then it runs.(By default MongoDB will store data in \data\db, but it won't automatically create that folder, so we need to do so before running it)

    E:\App\Mongo\bin>mongo
    MongoDB shell version: 2.0.5
    connecting to: test

    >use dbname    the database is created lazily the first time data is inserted.

  • 相关阅读:
    软链接
    yum
    vm
    tengine
    创智LIUNX
    作业11
    作业10
    作业9
    作业8
    作业7
  • 原文地址:https://www.cnblogs.com/limei/p/2526428.html
Copyright © 2011-2022 走看看