问题描述
mongod --help for help and startup optionsTue Jul 5 12:17:49.091 [initandlisten] MongoDB starting : pid=17876 port=27017 dbpath=/data/db/ 64-bit host=lvpai-db-prodTue Jul 5 12:17:49.091 [initandlisten] db version v2.4.9Tue Jul 5 12:17:49.091 [initandlisten] git version: nogitversionTue Jul 5 12:17:49.091 [initandlisten] build info: Linux orlo 3.2.0-58-generic #88-Ubuntu SMP Tue Dec 3 17:37:58 UTC 2013 x86_64 BOOST_LIB_VERSION=1_54Tue Jul 5 12:17:49.091 [initandlisten] allocator: tcmallocTue Jul 5 12:17:49.091 [initandlisten] options: {}Tue Jul 5 12:17:49.091 [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
, terminatingTue Jul 5 12:17:49.091 dbexit: Tue Jul 5 12:17:49.091 [initandlisten] shutdown: going to close listening sockets...Tue Jul 5 12:17:49.092 [initandlisten] shutdown: going to flush diaglog...Tue Jul 5 12:17:49.092 [initandlisten] shutdown: going to close sockets...Tue Jul 5 12:17:49.092 [initandlisten] shutdown: waiting for fs preallocator...Tue Jul 5 12:17:49.092 [initandlisten] shutdown: lock for final commit...Tue Jul 5 12:17:49.092 [initandlisten] shutdown: final commit...Tue Jul 5 12:17:49.092 [initandlisten] shutdown: closing all files...Tue Jul 5 12:17:49.092 [initandlisten] closeAllFiles() finishedTue Jul 5 12:17:49.092 dbexit: really exiting now
这是什么情况?谢谢了!有什么影响
问题解答
回答1:ERROR: dbpath (/data/db/) does not exist.Create this directory or give existing directory in --dbpath.
原因很明确啊

