在使用mongodb时遇到的问题

在使用mongodb时,安装32位会报错如下:

2018-12-29T14:14:07.667+0800 I CONTROL  [main]
2018-12-29T14:14:07.674+0800 W CONTROL  [main] 32-bit servers don't have journal
ing enabled by default. Please use --journal if you want durability.
2018-12-29T14:14:07.681+0800 I CONTROL  [main]
2018-12-29T14:14:07.871+0800 I CONTROL  [main] Hotfix KB2731284 or later update
is not installed, will zero-out data files
2018-12-29T14:14:07.893+0800 I CONTROL  [initandlisten] MongoDB starting : pid=7
92 port=27017 dbpath=E:\data\db\ 32-bit host=USER-20140709BU
2018-12-29T14:14:07.896+0800 I CONTROL  [initandlisten] targetMinOS: Windows Vis
ta/Windows Server 2008
2018-12-29T14:14:07.899+0800 I CONTROL  [initandlisten] db version v3.2.21-2-g10
5acca0d4
2018-12-29T14:14:07.905+0800 I CONTROL  [initandlisten] git version: 105acca0d44
3f9a47c1a5bd608fd7133840a58dd
2018-12-29T14:14:07.909+0800 I CONTROL  [initandlisten] allocator: tcmalloc
2018-12-29T14:14:07.912+0800 I CONTROL  [initandlisten] modules: none
2018-12-29T14:14:07.914+0800 I CONTROL  [initandlisten] build environment:
2018-12-29T14:14:07.917+0800 I CONTROL  [initandlisten]     distarch: i386
2018-12-29T14:14:07.921+0800 I CONTROL  [initandlisten]     target_arch: i386
2018-12-29T14:14:07.924+0800 I CONTROL  [initandlisten] options: {}
2018-12-29T14:14:07.932+0800 I STORAGE  [initandlisten] exception in initAndList
en: 28663 Cannot start server. The default storage engine 'wiredTiger' is not av
ailable with this build of mongod. Please specify a different storage engine exp
licitly, e.g. --storageEngine=mmapv1., terminating

2018-12-29T14:14:07.940+0800 I CONTROL  [initandlisten] dbexit:  rc: 100

安装路径:E:\

红色部分是主要错误点:意思是要你换个磁盘本地存储的。

即:E:\>mongod --dbpath=f:\ --storageEngine=mmapv1(存储位置换到了F盘中)

成功了。

猜你喜欢

转载自blog.csdn.net/yeyechen/article/details/85338549