亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

mongodb無法啟動?

mongodb無法啟動?

森欄 2018-08-20 06:57:37
D:\projects\myblog>mongoMongoDB shell version v3.4.4connecting to: mongodb://127.0.0.1:270172017-05-14T23:17:25.098+0800 W NETWORK  [thread1] Failed to connect to 127.0.0.1:27017 after 5000ms milliseconds, giving up.2017-05-14T23:17:25.099+0800 E QUERY    [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :connect@src/mongo/shell/mongo.js:237:13@(connect):1:6exception: connect failed
查看完整描述

2 回答

?
慕后森

TA貢獻1802條經驗 獲得超5個贊

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


查看完整回答
反對 回復 2018-08-26
?
侃侃爾雅

TA貢獻1801條經驗 獲得超16個贊

mongo服務器沒有啟動,先輸入mongod啟動服務器,才能mongo連接并進行后續操作

查看完整回答
反對 回復 2018-08-26
  • 2 回答
  • 0 關注
  • 966 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號