May 22, 2020
Estimated Post Reading Time ~

Can port of a cq instance be set in terminal

There is an option for setting run mode of a CQ Instance directly in terminal
viz -Dsling.run.modes=${CQ_RUNMODE}
is their a similar option for changing the port as well.
I'm basically looking for a solution to keep changing name of CQ jar for a new instance. Thanks

Best How To:
-p option can be used to set the port number from command line.

Ex: java -jar cq5-4502.jar -p 4503 will start the instance on 4503 even though the jar name contains 4502 as the port number.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.