mongod模式进不去

来源:8-1 window平台下MongoDB的安装和环境搭建

慕莱坞0322368

2017-09-21

C:\Users\张泽涵>mongod

2017-09-21T15:23:06.370+0800 I CONTROL  [initandlisten] MongoDB starting : pid=17124 port=27017 dbpath=C:\data\db\ 64-bit host=DESKTOP-QA5PGI9

2017-09-21T15:23:06.371+0800 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2

2017-09-21T15:23:06.371+0800 I CONTROL  [initandlisten] db version v3.4.9

2017-09-21T15:23:06.371+0800 I CONTROL  [initandlisten] git version: 876ebee8c7dd0e2d992f36a848ff4dc50ee6603e

2017-09-21T15:23:06.371+0800 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1u-fips  22 Sep 2016

2017-09-21T15:23:06.371+0800 I CONTROL  [initandlisten] allocator: tcmalloc

2017-09-21T15:23:06.372+0800 I CONTROL  [initandlisten] modules: none

2017-09-21T15:23:06.372+0800 I CONTROL  [initandlisten] build environment:

2017-09-21T15:23:06.372+0800 I CONTROL  [initandlisten]     distmod: 2008plus-ssl

2017-09-21T15:23:06.372+0800 I CONTROL  [initandlisten]     distarch: x86_64

2017-09-21T15:23:06.372+0800 I CONTROL  [initandlisten]     target_arch: x86_64

2017-09-21T15:23:06.372+0800 I CONTROL  [initandlisten] options: {}

2017-09-21T15:23:06.372+0800 I STORAGE  [initandlisten] exception in initAndListen: 29 Data directory C:\data\db\ not found., terminating

2017-09-21T15:23:06.372+0800 I NETWORK  [initandlisten] shutdown: going to close listening sockets...

2017-09-21T15:23:06.372+0800 I NETWORK  [initandlisten] shutdown: going to flush diaglog...

2017-09-21T15:23:06.372+0800 I CONTROL  [initandlisten] now exiting

2017-09-21T15:23:06.372+0800 I CONTROL  [initandlisten] shutting down with code:100


写回答

1回答

河畔一角

2017-09-21

mongod是用来启动配置的,后面加上启动的配置文件,我慕课上面有手机,打开看一下。

0
1
lailaileem
加上配置文件也是这样
2018-02-25
共1条回复

Vue2.6+Node.js+MongoDB 全栈打造商城系统

课程全面升级,Vue2.6+Koa2,从前端入门全栈,让你的未来更宽广

2634 学习 · 924 问题

查看课程