mongoDB非正常關閉後無法啟動問題

來源:互聯網
上載者:User

標籤:

mongoDB非正常關閉後無法啟動問題:

http://my.oschina.net/GivingOnenessDestiny/blog/53804

http://codingstandards.iteye.com/blog/1214093

 

前段時間不小心非正常關閉了mongoDB,準備重啟卻發現不行,錯誤資訊如下:

 

?
1234567891011121314151617181920212223242526 Tue Apr 17 11:13:30Tue Apr 17 11:13:30 warning: 32-bit servers don‘t have journaling enabled by default. Please use --journal if you want durability.Tue Apr 17 11:13:30Tue Apr 17 11:13:30 [initandlisten] MongoDB starting : pid=7128 port=27017 dbpath=D:\Programs\mongodb204\db 32-bit host=FALCONTue Apr 17 11:13:30 [initandlisten]Tue Apr 17 11:13:30 [initandlisten] ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of dataTue Apr 17 11:13:30 [initandlisten] **       see http://blog.mongodb.org/post/137788967/32-bit-limitationsTue Apr 17 11:13:30 [initandlisten] **       with --journal, the limit is lowerTue Apr 17 11:13:30 [initandlisten]Tue Apr 17 11:13:30 [initandlisten] db version v2.0.4, pdfile version 4.5Tue Apr 17 11:13:30 [initandlisten] git version: 329f3c47fe8136c03392c8f0e548506cb21f8ebfTue Apr 17 11:13:30 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=0, build=6002, platform=2, service_pack=‘Service Pack 2‘)BOOST_LIB_VERSION=1_42Tue Apr 17 11:13:30 [initandlisten] options: { dbpath: "D:\Programs\mongodb204\db" }**************Unclean shutdown detected.Please visit http://dochub.mongodb.org/core/repair for recovery instructions.*************Tue Apr 17 11:13:30 [initandlisten] exception in initAndListen: 12596 old lock file, terminatingTue Apr 17 11:13:30 dbexit:Tue Apr 17 11:13:30 [initandlisten] shutdown: going to close listening sockets...Tue Apr 17 11:13:30 [initandlisten] shutdown: going to flush diaglog...Tue Apr 17 11:13:30 [initandlisten] shutdown: going to close sockets...Tue Apr 17 11:13:30 [initandlisten] shutdown: waiting for fs preallocator...Tue Apr 17 11:13:30 [initandlisten] shutdown: closing all files...Tue Apr 17 11:13:30 [initandlisten] closeAllFiles() finishedTue Apr 17 11:13:30 dbexit: really exiting now

 

解決方案:

 

1、刪除%MONGO_HOME%/db下的.lock檔案

2、輸入命令 mongod --repair

3、重啟mongoDB

mongoDB非正常關閉後無法啟動問題

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.