I can not run the mongoDB server

-1

I'm new to mongoDB, so I do not know how to solve it.

OS: Windows 7

follow the command:

C:\Users\Rodrigo>mongod

and the error you get:

  

2018-03-21T16: 09: 27.837-0300 I CONTROL [main]   2018-03-21T16: 09: 27.841-0300 W CONTROL [main] 32-bit servers do not   have journal ing enabled by default. Please use --journal if you want   durability. 2018-03-21T16: 09: 27.844-0300 I CONTROL [main]   2018-03-21T16: 09: 27.861-0300 I CONTROL [main] Hotfix KB2731284 or   later update is not installed, will zero-out data files   2018-03-21T16: 09: 27.874-0300 I CONTROL [initandlisten] MongoDB   starting: pid = 2 232 port = 27017 dbpath = C: \ data \ db \ 32-bit   host = Rodrigo-PC 2018-03-21T16: 09: 27.876-0300 I CONTROL   [initandlisten] targetMinOS: Windows Vis ta / Windows Server 2008   2018-03-21T16: 09: 27.880-0300 I CONTROL [initandlisten] db version   v3.2.19-22-ge 7960bb2b6 2018-03-21T16: 09: 27.884-0300 I CONTROL   [initandlisten] git version: e7960bb2b64 f154cbe5d0de04e2f0ed373fc92d0   2018-03-21T16: 09: 27.886-0300 I CONTROL [initandlisten] allocator:   tcmalloc 2018-03-21T16: 09: 27.888-0300 I CONTROL [initandlisten]   modules: none 2018-03-21T16: 09: 27.890-0300 I CONTROL [initandlisten]   build environment: 2018-03-21T16: 09: 27.891-0300 I CONTROL   [initandlisten] distarch: i386 2018-03-21T16: 09: 27.894-0300 I   CONTROL [initandlisten] target_arch: i386   2018-03-21T16: 09: 27.897-0300 I CONTROL [initandlisten] options: {}   2018-03-21T16: 09: 27.902-0300 I STORAGE [initandlisten] exception in   initAndList on: 28663 Can not start server. The default storage engine   'wiredTiger' is not avilable with this build of mongod. Please   specify a different storage engine exp licitly, e.g.   --storageEngine = mmapv1., terminating 2018-03-21T16: 09: 27.906-0300 I CONTROL [initandlisten] dbexit: rc: 100

    
asked by anonymous 21.03.2018 / 20:28

1 answer

1

If you already have everything you need (including the C: \ data \ db folder) then the problem is probably a version conflict of your system with mongodb. I believe your OS is 32 bits, so you need to change your storage engine to mechanisms that are suitable for the 32-bit system, such as mmapv1.

Run the command below into the folder where your mondodb is installed:

mongod --storageEngine=mmapv1 --dbpath [caminho_da_pasta_db]  //<-- geralmente o caminho padrão é c:\data\db
  

Similar question in stackoverflow:    link

    
21.03.2018 / 22:03