Installing CQ On Unix




Installing CQ


Installing CQ on Unix Based System

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

Environment variableDescription
CQ_PORTTCP port used for stop and status scripts
CQ_HOSTHost name
CQ_INTERFACEInterface that this server should listen to
CQ_RUNMODERunmode(s) separated by comma
CQ_JARFILEName of the jarfile
CQ_USE_JAASUse of JAAS (if true)
CQ_JAAS_CONFIGPath of the JAAS configuration
CQ_JVM_OPTSDefault JVM options

6) Stop CQ
  • You can stop CQ using stop script.Run stop script as ./stop


                                                                                                                   
 
          
Comments