Mongodb university
M102: MongoDB for DBAs
Download mongodb
I download windows 32 bit MSI and install
start mongodb services
from command prompot, mongo db bin folder
mongodb.exe
mongod.exe --help for help and startup options
2015-02-05T13:12:02.452+0800
2015-02-05T13:12:02.462+0800 warning: 32-bit servers don't have journaling enabl
ed by default. Please use --journal if you want durability.
2015-02-05T13:12:02.470+0800
2015-02-05T13:12:02.507+0800 [initandlisten] MongoDB starting : pid=121552 port=
27017 dbpath=\data\db\ 32-bit host=WN7-9Q2H12S
2015-02-05T13:12:02.510+0800 [initandlisten]
2015-02-05T13:12:02.512+0800 [initandlisten] ** NOTE: This is a 32 bit MongoDB b
inary.
2015-02-05T13:12:02.517+0800 [initandlisten] ** 32 bit builds are limited
to less than 2GB of data (or less with --journal).
2015-02-05T13:12:02.521+0800 [initandlisten] ** Note that journaling defau
lts to off for 32 bit and is currently off.
2015-02-05T13:12:02.523+0800 [initandlisten] ** See http://dochub.mongodb.
org/core/32bit
2015-02-05T13:12:02.526+0800 [initandlisten]
2015-02-05T13:12:02.527+0800 [initandlisten] targetMinOS: Windows XP SP3
2015-02-05T13:12:02.528+0800 [initandlisten] db version v2.6.7
2015-02-05T13:12:02.531+0800 [initandlisten] git version: a7d57ad27c382de82e9cb9
3bf983a80fd9ac9899
2015-02-05T13:12:02.534+0800 [initandlisten] build info: windows sys.getwindowsv
ersion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
BOOST_LIB_VERSION=1_49
2015-02-05T13:12:02.539+0800 [initandlisten] allocator: system
2015-02-05T13:12:02.540+0800 [initandlisten] options: {}
2015-02-05T13:12:02.542+0800 [initandlisten] exception in initAndListen: 10296
*********************************************************************
ERROR: dbpath (\data\db\) does not exist.
Create this directory or give existing directory in --dbpath.
See http://dochub.mongodb.org/core/startingandstoppingmongo
*********************************************************************
, terminating
2015-02-05T13:12:02.552+0800 [initandlisten] dbexit:
2015-02-05T13:12:02.553+0800 [initandlisten] shutdown: going to close listening
sockets...
2015-02-05T13:12:02.556+0800 [initandlisten] shutdown: going to flush diaglog...
2015-02-05T13:12:02.558+0800 [initandlisten] shutdown: going to close sockets...
2015-02-05T13:12:02.566+0800 [initandlisten] shutdown: waiting for fs preallocat
or...
2015-02-05T13:12:02.571+0800 [initandlisten] shutdown: closing all files...
2015-02-05T13:12:02.574+0800 [initandlisten] closeAllFiles() finished
2015-02-05T13:12:02.577+0800 [initandlisten] dbexit: really exiting now
default folder is c:\data\db
create folder c:\data\db and start again; this start will successful
mongod.exe
mongod.exe --help for help and startup options
2015-02-05T13:14:22.396+0800
2015-02-05T13:14:22.408+0800 warning: 32-bit servers don't have journaling enabl
ed by default. Please use --journal if you want durability.
2015-02-05T13:14:22.413+0800
2015-02-05T13:14:22.445+0800 [initandlisten] MongoDB starting : pid=120864 port=
27017 dbpath=\data\db\ 32-bit host=WN7-9Q2H12S
2015-02-05T13:14:22.449+0800 [initandlisten]
2015-02-05T13:14:22.452+0800 [initandlisten] ** NOTE: This is a 32 bit MongoDB b
inary.
2015-02-05T13:14:22.456+0800 [initandlisten] ** 32 bit builds are limited
to less than 2GB of data (or less with --journal).
2015-02-05T13:14:22.458+0800 [initandlisten] ** Note that journaling defau
lts to off for 32 bit and is currently off.
2015-02-05T13:14:22.461+0800 [initandlisten] ** See http://dochub.mongodb.
org/core/32bit
2015-02-05T13:14:22.466+0800 [initandlisten]
2015-02-05T13:14:22.468+0800 [initandlisten] targetMinOS: Windows XP SP3
2015-02-05T13:14:22.472+0800 [initandlisten] db version v2.6.7
2015-02-05T13:14:22.475+0800 [initandlisten] git version: a7d57ad27c382de82e9cb9
3bf983a80fd9ac9899
2015-02-05T13:14:22.478+0800 [initandlisten] build info: windows sys.getwindowsv
ersion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1')
BOOST_LIB_VERSION=1_49
2015-02-05T13:14:22.483+0800 [initandlisten] allocator: system
2015-02-05T13:14:22.485+0800 [initandlisten] options: {}
2015-02-05T13:14:22.540+0800 [initandlisten] waiting for connections on port 270
17
start another command prompt
mongo.exe
MongoDB shell version: 2.6.7
connecting to: test
Server has startup warnings:
2015-02-05T13:14:22.449+0800 [initandlisten]
2015-02-05T13:14:22.452+0800 [initandlisten] ** NOTE: This is a 32 bit MongoDB b
inary.
2015-02-05T13:14:22.456+0800 [initandlisten] ** 32 bit builds are limited
to less than 2GB of data (or less with --journal).
2015-02-05T13:14:22.458+0800 [initandlisten] ** Note that journaling defau
lts to off for 32 bit and is currently off.
2015-02-05T13:14:22.461+0800 [initandlisten] ** See http://dochub.mongodb.
org/core/32bit
2015-02-05T13:14:22.466+0800 [initandlisten]
>
installation successful and mongo start accept connection
help
show dbs
No comments:
Post a Comment