After installing MongoDB with ruby gems
gem install mongodb
In my user/sites directory, I did
sudo mkdir -p /data/db/
sudo chown `id -u` /data/db
However, this didn’t create those directories in user/sites. I had to back up a few levels to access them.
the instructions I am following then told me to
cd to your MongoDB bin directory or type in the complete path to it. You'll need to start mongod.
$ ./bin/mongod
I did this command inside user/sites and also, after backing up a few levels, inside the data directory, and inside the data/db directory. However, each time I got
./bin/mongod: No such file or directory
1st question: Know what’s wrong?
Once and if I get that to work, I will have to do this to start the mongo shell
./bin/mongo
2nd question: where will i run that command?
Are you sure installing mongo as a Ruby gem actually installs MongoDB? Looks to me like you’re only installing the ruby driver. Here’s some docs on how to install MongoDB.