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

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教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all (1)
巴扎黑

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

The reason is very clear

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!