Stopping and Restarting Tomcat¶
To stop and restart Tomcat
-
SSH into your instance using your AWS private key and the username
ec2-user. -
Stop the Tomcat service using the following command:
sudo systemctl stop tomcat.socket -
Restart the Tomcat service:
sudo systemctl start tomcat.socket