我是MongoDB的新手。我目前有一個mongo數據庫(即.bson文件的目錄)的轉儲,並試圖將其導入到mongo中。無法啓動/啓動本地mongo db
我按照http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/的說明安裝了mongo。
我目前正試圖通過運行mongod --dbpath/path/to/my/mongodata(這是一個空目錄)來測試啓動本地mongo實例。
我得到了標準輸出如下:
Thu Sep 20 09:46:01 [initandlisten] MongoDB starting : pid=1065 port=27017 dbpath=/path/to/my/mongodata/ 64-bit host=dhcp-18-111-28-92.dyn.mit.edu
Thu Sep 20 09:46:01 [initandlisten]
Thu Sep 20 09:46:01 [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 266 processes, 2560 files. Number of processes should be at least 1280 : 0.5 times number of files.
Thu Sep 20 09:46:01 [initandlisten] db version v2.2.0, pdfile version 4.5
Thu Sep 20 09:46:01 [initandlisten] git version: f5e83eae9cfbec7fb7a071321928f00d1b0c5207
Thu Sep 20 09:46:01 [initandlisten] build info: Darwin bs-osx-106-x86-64-1.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_49
Thu Sep 20 09:46:01 [initandlisten] options: { dbpath: "/path/to/my/mongodata/" }
Thu Sep 20 09:46:01 [initandlisten] journal dir=/path/to/my/mongodata/journal
Thu Sep 20 09:46:01 [initandlisten] recover : no journal files present, no recovery needed
Thu Sep 20 09:46:01 [websvr] admin web console waiting for connections on port 28017
Thu Sep 20 09:46:01 [initandlisten] waiting for connections on port 27017
在這一點上,它只是掛起那裏,什麼都不做。似乎它正在等待localhost上發生的事情,但我不知道mongo足夠了解發生了什麼。任何幫助?
看看[這](http://stackoverflow.com/a/37548118/2404470)可以幫助 – xameeramir