![]() ![]() ![]() Now we need to create the database directory.Now try to check the Mongo version, if you get following, then you are on the right track!.Use echo to display your path variable:.Use ‘Esc : w q’ to save and exit from Vi editor. Then, press ‘i’ to insert text in Vi and append the your MongoDB path to the end of the ‘paths’ file and restart the terminal. In order to update your $PATH variable, do following:. ![]() In my case brew install MongoDB to this folder: Update your $PATH variable to point to your MongoDB bin file.If you are stuck just like me, then follow the following steps: There are many steps which are not mentioned in the installation manual on MongoDB website. Tue Sep 3 14:28:06.411 Error: couldn't connect to server 127.0.0.1:27017 at src/mongo/shell/mongo.js:145Īfter spending lots of time looking for solutions online, I have found a way. If you are lucky(!!), like me, then you will see following when you try to run using ‘mongod’ or ‘mongo’ command respectively. Or, if you don’t want/need launchctl, you can just run: $ sudo launchctl load ~/Library/LaunchAgents/ $ sudo ln -sfv /usr/local/opt/mongodb/*.plist ~/Library/LaunchAgents Once installed, run following to make sure nothing else needs to be downloaded. To install HomeBrew Package Manager, type in following on Terminal: However, you could be using MacPorts or Fink. I read reviews of HomeBrew and like it so chose to install it. To install MongoDB on Mac, I used HomeBrew package manager. However, before I could start learning, I had to learn how to install it correctly! So I have tried to write down and share whatever I faced while trying to install MongoDB. I wanted to learn NoSQL database and so I tried to install MongoDB and learn it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |