mongodb - 直接执行mongod命令出现下面的问题
高洛峰
高洛峰 2017-05-02 09:20:03
0
1
534

mongod --help for help and startup options
Tue Jul 5 12:17:49.091 [initandlisten] MongoDB starting : pid=17876 port=27017 dbpath=/data/db/ 64-bit host=lvpai-db-prod
Tue Jul 5 12:17:49.091 [initandlisten] db version v2.4.9
Tue Jul 5 12:17:49.091 [initandlisten] git version: nogitversion
Tue 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_54
Tue Jul 5 12:17:49.091 [initandlisten] allocator: tcmalloc
Tue 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


, terminating
Tue 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() finished
Tue Jul 5 12:17:49.092 dbexit: really exiting now

这是什么情况?谢谢了!有什么影响

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

全部回复(1)
巴扎黑

ERROR: dbpath (/data/db/) does not exist.
Create this directory or give existing directory in --dbpath.

原因很明确啊

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板