Use the command tar xvzf filename
These modifications are related to the username and password and need to be done on the tomcat-users.xml inside the cd /opt/apache-tomcat-9.0.76/conf/
sudo ln -s /opt/apache-tomcat-9.0.76/bin/startup.sh /usr/bin/startTomcat sudo ln -s /opt/apache-tomcat-9.0.76/bin/shutdown.sh /usr/bin/stopTomcat
Inside the webapps directory, we have 2 files that need to be modified: manager and host-manager sudo vi /opt/apache-tomcat-9.0.76/webapps/manager/META-INF/context.xml
sudo vi /opt/apache-tomcat-9.0.76/webapps/host-manager/META-INF/context.xml
- install Java and maven first so that we can define the variable otherwise we will received an error message when we will try
For start and stop Tomcat, use sudo stopTomcat and sudo startTomcat
By default Tomcat runs on 8080
Tomcat is running
Clone the repository https://github.com/jaiswaladi246/Petclinic.git
-Go to cd Petclinic
- apply the command mvn clean package
- The petclinic.war file is created inside the target folder
- Copy the complete path of the petclinic.war file with pwd
- Go to webapps folder, run pwd and copy the path (this is our target path)
- Go to petclinic folder and copy the target path from where the war file is located: cp /root/Petclinic/target/petclinic.war /opt/apache-tomcat-9.0.76/webapps/
- Go to our Tomcat page and add the path of the source code in the browser: IP:8080/Petclinic Our application is running as a separate process in the tomcat server
- We install Tomcat without installing java. we noticed an error message related to the path of Java.
- when trying accessing Tomcat from the server, we received an error message. We discovered that the port 8080 wasn't open in the security group. We correct it











