Macos install mongodb5/5/2023 Sun Sep 9 20:58:39 Error: couldn't connect to server 127.0.0.1 shell/mongo. When i type mongo, i get this: MongoDB shell version: 2.0.7 Sun Sep 9 20:58:35 dbexit: really exiting now In Linux and MacOS the default directory is /data/db. On Windows by default, MongoDB stores databases on the path C:datadb, so if you are using Windows, you need to create a directory. Sun Sep 9 20:58:35 closeAllFiles() finished After installation, it is necessary to create a directory on your hard disk, which will contain MongoDB databases. Sun Sep 9 20:58:35 shutdown: closing all files. Sun Sep 9 20:58:35 shutdown: final commit. Sun Sep 9 20:58:35 shutdown: lock for final commit. Sun Sep 9 20:58:35 shutdown: waiting for fs preallocator. Sun Sep 9 20:58:35 shutdown: going to close sockets. Sun Sep 9 20:58:35 shutdown: going to flush diaglog. Sun Sep 9 20:58:35 shutdown: going to close listening sockets. Sun Sep 9 20:58:35 exception in initAndListen: 10296 dbpath (/data/db/) does not exist, terminating Sun Sep 9 20:58:35 git version: nogitversion Sun Sep 9 20:58:35 MongoDB starting : pid=6381 port=27017 dbpath=/data/db/ 64-bit host=Cs-MacBook-Pro.local I get this: mongod -help for help and startup options I have installed Homebrew and MacPorts and have installed the mongodb using both Homebrew and MacPorts. I am trying to install mongodb on my system and following these steps( ) in doing so.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |