Apache Sling > Sling CMS > Administration > MongoDB
By default, Sling CMS stores it's content in a local Tar-backed Apache Oak repository.
When you setup your Sling CMS instance, you can configure Sling CMS to use a local MongoDB instance by adding the following parameter to the start script:
-Dsling.run.modes=oak_mongo
This will connect to a MongoDB instance running on localhost:27017 with the database name sling.
If you want to specify a different port or database name, you can also provide the following properties:
-Doak.mongo.uri={URI} -Doak.mongo.db={DB_NAME}
See Sling's Configuration documentation for more details on how to provide these configuration values.