Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

What is the correct way to stop aem as a cloud service so that I can restart again

Avatar

Level 3

Can any of you explain with screenshot how to stop aem as a cloud service? the scripts stop.bat etc didn't work for me.

What I mean by restart is that , after stop access to the link : http://localhost:4502/aem/start.html will not connect to the aem home page

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

hi @vineetham123  can you try stoping the server using below screen.

Jagadeesh_Prakash_0-1702301656696.png

 

View solution in original post

7 Replies

Avatar

Correct answer by
Community Advisor

hi @vineetham123  can you try stoping the server using below screen.

Jagadeesh_Prakash_0-1702301656696.png

 

Avatar

Level 3

The answer looks good! thaks. But what If I want to restart in debug mode?

Avatar

Community Advisor

@vineetham123  if you want to start a jar in debug mode in local then use below command 

 

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

 

where 30303 is the port on which the debug will be running. In your IDE you can start running the debug mode on 30303. 

 

refer to below article on how you can run debug mode on IDE 

https://technolearning-jags.blogspot.com/2023/08/how-to-set-debug-points-in-ide-intellij.html

 

Avatar

Community Advisor

@vineetham123 

 

I hope you mean restarting local SDK.

Customers cannot restart AEMaaCS servers.


Aanchal Sikka

Avatar

Level 3

@aanchal-sikka I meant local SDK. How can I restart in debug mode if I accidentally started aem in normal mode?

Avatar

Community Advisor

Hi @vineetham123 
If you can stop AEM using below 2 commands.

ps -A | grep author

kill -9 <PID>

First command will gve you the PID and second command will kill the process.



Arun Patidar

Avatar

Level 3

 @Jagadeesh_Prakash , thanks for the response. Your method , followed by entering ctrl+C on the terminal(linux) opened where the jar is present, will stop the aem in local. Then we can start it again in the normal way.