1) Install JDK and set up Java Home
2) Get CQ jar file from Adobe
3) Install CQ as Author
- Open terminal
- Rename jar file as cq5-author-p4502 (<anything>-<mode>-p<port number>.jar)
- Use command java -jar cq5-author-p4502 -unpack
- Once file unpacked go to crx-quickstart/bin folder
- Open start script and make sure that CQ_RUNMODE='author'
- start CQ using start script. Run command ./start
- This is install CQ as author on port 4502 on that server.
4) Install CQ as publish
- Open terminal
- Rename jar file as cq5-publish-p4503 (<anything>-<mode>-p<port number>.jar)
- Use command java -jar cq5-publish-p4503 -unpack
- Once file unpacked go to crx-quickstart/bin folder
- Open start script and make sure that CQ_RUNMODE='publish'
- start CQ using start script. Run command ./start
- This is install CQ as publish on port 4503 on that server.
5) Change default JVM param
- Open to /crx-quickstart/bin/start in any editor of your choice
- Search for "set CQ_JVM_OPTS"
- Change JVM option based on your need
- You can also set run mode using CQ_JVM_OPTS=-Dsling.run.modes=publish,dev
JVM_PARAM Variable has following meaning