Quick AEM 6 startup w/ MongoDB persistence
A few quick notes on getting AEM 6 off the ground w/ MongoDB (on OS/X, specifically) …
- Install mongodb via brew:
brew install mongodb
- Unpack the AEM 6 JAR:
java -jar cq-quickstart-6.0.0.jar -unpack
- Take note of the exploded
crx-quickstart
directory - Modify the start script (
crx-quickstart/bin/start
) providing an additional runmode:crx3mongo
- Modify the JVM args adding the argument:
oak.mongo.uri
with the valuemongodb://localhost:27017
(update as needed) - Start mongod:
mongod --dbpath /data/db --httpinterface --journal --directoryperdb --rest
- Fire up AEM
It took my 1st generation MacBook Retina about 4-5 minutes to install and settle.
For more information, see Jayan Kandathil‘s post.