我有文件夹data / db,但是在运行命令MongoDB
时,我得到以下响应:
MongoDB starting : pid=7966 port=27017 dbpath=/data/db 64-bit host=VYMO-IT-LPT-026.local
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] db version v3.4.23
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] git version: 324017ede1dbb1c9554dd2dceb15f8da3c59d0e8
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] OpenSSL version: OpenSSL 0.9.8zh 14 Jan 2016
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] allocator: system
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] modules: none
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] build environment:
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] distarch: x86_64
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] target_arch: x86_64
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] options: {}
2019-12-16T12:40:34.971+0530 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory /data/db not found., terminating
2019-12-16T12:40:34.971+0530 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2019-12-16T12:40:34.971+0530 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] now exiting
2019-12-16T12:40:34.971+0530 I CONTROL [initandlisten] shutting down with code:100