Command Line Start and Stop

You are reading the AEM 6.2 version of Command Line Start and Stop.
This documentation is also available for the following versions:  AEM 6.1  AEM 6.0  AEM 5.6.1  AEM 5.6  CQ 5.5  CQ 5.4 

Starting Adobe Experience Manager from the Command Line

The start script is available under the <cq-installation>/bin directory. Both Unix and Windows versions are provided. The script starts the instance installed in <cq-installation> directory.

Those two versions support a list of environement variables that could be used to start and tune the AEM instance.

Environment variable Description
CQ_PORT TCP port used for stop and status scripts
CQ_HOST Host name
CQ_INTERFACE Interface that this server should listen to
CQ_RUNMODE Runmode(s) separated by comma
CQ_JARFILE Name of the jarfile
CQ_USE_JAAS Use of JAAS (if true)
CQ_JAAS_CONFIG Path of the JAAS configuration
CQ_JVM_OPTS Default JVM options

Caution

Note that some run modes, among them author and publish, need to be set before first starting AEM and can not be changed afterwards. Before setting up an AEM instance that is supposed to be used in production, please see the run modes documentation for details.

Windows platform start.bat script example
SET CQ_PORT=1234 & ./start.bat
        

Code samples are intended for illustration purposes only.

Unix platform start script example
CQ_PORT=1234 ./start
        

Code samples are intended for illustration purposes only.

Note

The start script launches the AEM Quickstart installed under the <cq-installation>/app folder.

Stopping Adobe Experience Manager

To stop AEM, do one of the following:

  • Depending on the platform you are using:

    • If you started AEM from either a script or the command line, press Ctrl+C to shut down the server.
    • If you have used the start script on UNIX, you must use the stop script to stop AEM.
  • If you started AEM by double-clicking the jar file, click the On button on the startup window (the button then changes to Off) to shut down the server.

    file

Stopping Adobe Experience Manager from the Command Line

The stop script is available under the <cq-installation>/bin directory. Both Unix and Windows versions are provided. The script stops the running instance installed in <cq-installation> directory.

Unix platform stop script example
./stop
        

Code samples are intended for illustration purposes only.

Windows platform stop.bat script example
./stop.bat
        

Code samples are intended for illustration purposes only.

If you just want to preconfigure the repository (without relocating it) you only have to:

  • extract repository.xml to the required location
  • update repository.xml as required
  • create bootstrap.properties and define repository.config

Again, before starting the actual installation.

Any questions?

Have a question about this or any other AEM topic? Ask our Community.
Learn more about AEM topics on our help hub.
Was this helpful?

By submitting your feedback, you accept the Adobe Terms of Use.

Thank you for submitting your feedback.