Skip to content

Instantly share code, notes, and snippets.

@yupadhyay
Created December 10, 2014 18:00
Show Gist options
  • Save yupadhyay/d0ea8d57b35cd77fe03d to your computer and use it in GitHub Desktop.
Save yupadhyay/d0ea8d57b35cd77fe03d to your computer and use it in GitHub Desktop.
# Unpack AEM jar using
java -jar <AEM Jar> -unpack
# Go to bin directory
cd crx-quickstart/bin
#Change syour start script
vi start
#Set runmode to crx3mongo
CQ_RUNMODE='<your run modes>,crx3mongo'
#Add oak.mongo.uri JVM argument -Doak.mongo.uri=mongodb://<SERVER:PORT> -Doak.mongo.db=<NAME OF DB>
# Note that all other java param will remain as is
CQ_JVM_OPTS='-server -Xms2048m -Xmx2048m -XX:MaxPermSize=512M -Djava.awt.headless=true -Doak.mongo.uri=mongodb://<HOST1>:<PORT1>,<HOST2>:<PORT2>,<HOST3>:<PORT3> -Doak.mongo.db=<This is the DB name you created while creating Mongo>'
# Then start your Instance
./start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment