Skip to content

Instantly share code, notes, and snippets.

@hemanth415
Last active November 3, 2019 03:33
Show Gist options
  • Save hemanth415/1a9326645b8da9a59bdef38967d7df39 to your computer and use it in GitHub Desktop.
Save hemanth415/1a9326645b8da9a59bdef38967d7df39 to your computer and use it in GitHub Desktop.
Useful AEM commands
  • Start AEM in debug mode with specific Run mode(s).

    java -Xmx512m -jar cq-author-p4502.jar -Dsling.run.modes=author,local -debug 30303

  • Start AEM in debug mode with specific Run mode(s) and admin password set.

    java -Xmx1024m -jar cq-author-p4502.jar -Dadmin.password=admin -debug 30303

    java -Xmx1024m -jar cq-author-p4502.jar -nointeractive -debug 30303

  • Terminating processes which are listening on a particular port.

    sudo kill -9 $(lsof -ti :4502)

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment