I am following the video “Installing the mongo Shell” in Chapter 2.
First, I would like to know the difference between the Enterprise and Community Servers.
Secondly, I have previously installed MongoDB (I believe it was the Community Server, but I don’t know how to verify) several months ago. It exists in a folder called “mongodb”, and this folder is located in my /usr/local directory, not in my home directory.
Furthermore, I had edited my .bash_profile file several months ago to
export the PATH to point towards this file.
Since I was just instructed to install the Enterprise version in my home directory, and edit my .bash_profile to point towards this new version of mongo, there are now two separate mongo directories on my computer. Are these two mongo folders conflicting? Since they both contain /bin directories, which hold executables with similar names (like
mongo), which one is running when I type the
mongo --nodb command?
When I type
mongo --nodb, the terminal responds
MongoDB shell version v4.0.5, and since my older mongo install is a lower version, I can see that my older version of mongo is being ignored by this command. Should I delete my older
mongo directory in my /usr/local?