No he podido realizar el archivo de configuración

Cuando lanzo esta linea
mongod --dbpath /data/db --logpath /data/log/mongod.log
sale esto
$ mongod --dbpath /data/db --logpath /data/log/mongod.log
2019-09-21T00:07:25.947-0500 F CONTROL [main] Failed global initialization: FileNotOpen: Failed to open “C:/Program Files/Git/data/log/mongod.log”
Me podrian ayudar, en el caso que este realizando la configuracion de forma incorrecta
Porque tambien trato de lanzarlo dentro de vagrant ssh y tampoco sirve

You have to run the command in vagrant box
Looks like you are using your host machine
What is your OS?
Make sure the dirs exist and accessible
It failed because it is unable to open/write to mongod.log
Try to use shared dir

Ola, estoy usando windows
En la maquina vagrant me sale así
vagrant@m103:~$ mongod --dbpath /data/db --logpath /data/log/mongod.log
2019-09-22T04:07:15.999+0000 F CONTROL [main] Failed global initialization: FileNotOpen: Failed to open “/data/log/mongod.log”

Now i see you ran it on Unix box
Can you please list your dirs under /data
ls -lrt /data
If db and log dirs are missing you need to create them

1 Like