Difference between revisions of "MongoDB"

From ArchWiki
Jump to: navigation, search
(First version of mongodb page)
 
(Add category. Fix style. See Help:Style.)
Line 1: Line 1:
=MongoDB=
+
[[Category:Database management systems]]
 
+
 
MongoDB (from "humongous") is a scalable, high-performance, open source NoSQL database.
 
MongoDB (from "humongous") is a scalable, high-performance, open source NoSQL database.
  
Line 10: Line 9:
 
(Optional) Add MongoDB to the list of daemons that start on system startup
 
(Optional) Add MongoDB to the list of daemons that start on system startup
 
  # systemctl enable mongodb
 
  # systemctl enable mongodb
 
  
 
==Access the database shell==
 
==Access the database shell==
 
To access the Database shell you have type in your terminal
 
To access the Database shell you have type in your terminal
 
  # mongo
 
  # mongo
 
  
 
==Troubleshooting==
 
==Troubleshooting==

Revision as of 10:22, 26 December 2012

MongoDB (from "humongous") is a scalable, high-performance, open source NoSQL database.

Installing MongoDB

Install mongodb

# pacman -S mongodb

Start MongoDB

# systemctl start mongodb

(Optional) Add MongoDB to the list of daemons that start on system startup

# systemctl enable mongodb

Access the database shell

To access the Database shell you have type in your terminal

# mongo

Troubleshooting

MongoDB won't more to start

Check for the lock file

# ls  -lisa /var/lib/mongodb

If the are there stop the mongodb daemon delete the file after it star the daemon again

# rm /var/lib/mongodb/mongod.lock

If still problems are there please check with the repair parameter (/var/lib/mongodb/ is the default --dbpath from Arch Linux)

# mongod --dbpath /var/lib/mongodb/ --repair