2 回答

TA貢獻(xiàn)1802條經(jīng)驗(yàn) 獲得超5個(gè)贊
D:\Program Files\MongoDB\Server\3.4\bin>mongod
2017-05-14T23:43:59.949+0800 I CONTROL [initandlisten] MongoDB starting : pid=14884 port=27017 dbpath=D:\data\db\ 64-bit host=DESKTOP-EALT52P
2017-05-14T23:43:59.950+0800 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2017-05-14T23:43:59.950+0800 I CONTROL [initandlisten] db version v3.4.4
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] git version: 888390515874a9debd1b6c5d36559ca86b44babd
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1u-fips 22 Sep 2016
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] allocator: tcmalloc
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] modules: none
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] build environment:
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] distmod: 2008plus-ssl
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] distarch: x86_64
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] target_arch: x86_64
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] options: {}
2017-05-14T23:43:59.951+0800 I STORAGE [initandlisten] exception in initAndListen: 29 Data directory D:\data\db\ not found., terminating
2017-05-14T23:43:59.951+0800 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2017-05-14T23:43:59.951+0800 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] now exiting
2017-05-14T23:43:59.951+0800 I CONTROL [initandlisten] shutting down with code:100

TA貢獻(xiàn)1801條經(jīng)驗(yàn) 獲得超16個(gè)贊
mongo服務(wù)器沒(méi)有啟動(dòng),先輸入mongod啟動(dòng)服務(wù)器,才能mongo連接并進(jìn)行后續(xù)操作
- 2 回答
- 0 關(guān)注
- 977 瀏覽
添加回答
舉報(bào)