The Tip Show How-to Move the First Step with the MongoDB Database on Linux and Unix.
- Open a Terminal Window
- Check if /data/db Directory is There:
ls /data
If Not There then:
sudo mkdir -p /data/db
sudo chmod g+w /data/db
- Launch MongoDB Server Daemon
sudo mongod
- Open theLaunch the MongoDB Shell:
mongo shell
- Inserting a Testing Data:
>db.test.save( {a: 1} )
- Retrieving Data:
> db.test.find()