thinkpad mongo

引用

C:\ProgramFiles\MongoDB\Server\3.4\bin>mongo

MongoDBshellversionv3.4.9

connectingto:mongodb://127.0.0.1:27017

MongoDBserverversion:3.4.9

Serverhasstartupwarnings:

2018-07-14T14:40:00.909+0800ICONTROL[initandlisten]

2018-07-14T14:40:00.909+0800ICONTROL[initandlisten]**WARNING:Accesscontrolisnotenabledforthedatabase.

2018-07-14T14:40:00.910+0800ICONTROL[initandlisten]**Readandwriteaccesstodataandconfigurationisunrestricted.

2018-07-14T14:40:00.913+0800ICONTROL[initandlisten]

2018-07-14T14:40:00.916+0800ICONTROL[initandlisten]HotfixKB2731284orlaterupdateisnotinstalled,willzero-outdatafiles.

2018-07-14T14:40:00.918+0800ICONTROL[initandlisten]

>db.person.insert({"name":"jack","age":20})

WriteResult({"nInserted":1})

>db.person.insert({"name":"joe","age":25})

WriteResult({"nInserted":1})

>db.person.find()

{"_id":ObjectId("5b499bf8609ba4eb523c879a"),"name":"jack","age":20}

{"_id":ObjectId("5b499c0a609ba4eb523c879b"),"name":"joe","age":25}

引用

C:\ProgramFiles\MongoDB\Server\3.4\bin>mongod--dbpath=c:\mongodb\db

2018-07-14T14:40:00.291+0800ICONTROL[initandlisten]MongoDBstarting:pid=28472port=27017dbpath=c:\mongodb\db64-bithost=USER-20151123OX

2018-07-14T14:40:00.292+0800ICONTROL[initandlisten]targetMinOS:Windows7/WindowsServer2008R2

2018-07-14T14:40:00.292+0800ICONTROL[initandlisten]dbversionv3.4.9

2018-07-14T14:40:00.292+0800ICONTROL[initandlisten]gitversion:876ebee8c7dd0e2d992f36a848ff4dc50ee6603e

2018-07-14T14:40:00.292+0800ICONTROL[initandlisten]OpenSSLversion:OpenSSL1.0.1u-fips22Sep2016

2018-07-14T14:40:00.293+0800ICONTROL[initandlisten]allocator:tcmalloc

2018-07-14T14:40:00.293+0800ICONTROL[initandlisten]modules:none

2018-07-14T14:40:00.293+0800ICONTROL[initandlisten]buildenvironment:

2018-07-14T14:40:00.297+0800ICONTROL[initandlisten]distmod:2008plus-ssl

2018-07-14T14:40:00.299+0800ICONTROL[initandlisten]distarch:x86_64

2018-07-14T14:40:00.301+0800ICONTROL[initandlisten]target_arch:x86_64

2018-07-14T14:40:00.304+0800ICONTROL[initandlisten]options:{storage:{dbPath:"c:\mongodb\db"}}

2018-07-14T14:40:00.313+0800ISTORAGE[initandlisten]wiredtiger_openconfig:create,cache_size=5519M,session_max=20000,eviction=(threads_min=4,thread

2018-07-14T14:40:00.909+0800ICONTROL[initandlisten]

2018-07-14T14:40:00.909+0800ICONTROL[initandlisten]**WARNING:Accesscontrolisnotenabledforthedatabase.

2018-07-14T14:40:00.910+0800ICONTROL[initandlisten]**Readandwriteaccesstodataandconfigurationisunrestricted.

相关推荐