Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (34 loc) · 909 Bytes

INSTALL-TOMCAT.md

File metadata and controls

38 lines (34 loc) · 909 Bytes

Install and Config Tomcat server in Ubuntu

sudo apt-get install unzip
cd Download
wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.88/bin/apache-tomcat-9.0.88.zip
sudo unzip apache-tomcat-9.0.88.zip -d ~/Desktop/ 

1.2 Give Permission for the server folder

sudo chmod 777 -R ~/Desktop/apache-tomcat-9.0.88/

1.3 Set env in ubuntu

sudo nano ~/.bashrc
  • go to the last line and and add the below line

    SERVER=~/Desktop/apache-tomcat-9.0.88

  • save the file 1.4 run the bashrc file

source ~/.bashrc
/ ~/.bashrc

1.5 Run the server

${SERVER}/bin/startup.sh

Tomcat Servlet 9.0.4 Download Link

javac -classpath <path-to-tomcat-api> <path-to-java-file>
${SERVER}/bin/shutdown.sh && ${SERVER}/bin/startup.sh