I am installing mongodb on ubuntu terminal from this url (http://mongojs.org/install-mongodb-ubuntu-11-04-natty)
I am on the step where you type in ./mongod
when I type that I get the following: bash: ./mongod cannot execute binary file error
can someone help me get over this obstacle? thanks.
My only suggestion would be to check you're using the correct version (32-bit vs 64-bit). The link provided in the tutorial is 64-bit, which won't work if you're using a 32-bit machine.
This is probably caused by an invalid installation. Follow the following steps on ubuntu to install Mongodb properly:
With this, you can now start your local mongo instance. Make sure to update your config file to change your data directory to where you want to have the DB files stored.