찾다

 >  Q&A  >  본문

mongodb - 直接执行mongod命令出现下面的问题

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

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

高洛峰高洛峰2754일 전537

모든 응답(1)나는 대답할 것이다

  • 巴扎黑

    巴扎黑2017-05-02 09:22:03

    오류: dbpath(/data/db/)가 존재하지 않습니다.
    이 디렉터리를 생성하거나 --dbpath에 기존 디렉터리를 제공하세요.

    원라因很明确啊

    회신하다
    0
  • 취소회신하다