Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Databases

Mathew Kurian
Mathew Kurian
4,698 Points

"mongod" command won't work, but "mongo" will

drive.google.com/file/d/0Bwl_BDx-HIfcc1FlVHpfamF2d2s/view?usp=sharing

I have a Macbook Pro with El Capitan. I installed mongodb with macports, which is similar to homebrew. I've followed all of the instructions and I've made sure to change the user permissions to /data/db. Does anyone have any idea of what's wrong with my mongodb installation?

Above is a link to my google drive with a photo of the error report.

1 Answer

Since mongo works you probably have mongod running already. if you open your activity monitor, search for mongod and close any that are open. Then try again in the terminal and see if this works.

Mathew Kurian
Mathew Kurian
4,698 Points

Hey kareem Pierre , so I tried that and it wouldn't work. I looked on activity monitor and I found the mongod process. I tried to force quit it, but it didn't work. So then I did a sigkill on the process' pid. And it would just come back a second later. Any idea what to do? I was really looking forward to learning mongo too.

Am am not to sure how macports works, but you could try uninstalling and using homebrew. Although since mongod is already working you should be fine with following the course, as long as you have access to the mongo shell. If this is not an option am thinking it has to do with how macports installed it. I will do a little bit of searching.