- cd /tmp
- curl -O https://downloads.apache.org/tomcat/tomcat-9/v9.0.37/bin/apache-tomcat-9.0.37.zip
- sudo mkdir -p /opt/tomcat
- unzip apache-tomcat-9.0.37.zip
- rm -rf apache-tomcat-9.0.37.zip
- mv apache-tomcat-9.0.37/* /opt/tomcat/
- cd /opt/tomcat
- sudo chmod -R 0777 /opt/tomcat
- sudo update-java-alternatives -l
- Then Create a system service
OUTPUT – java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64