Tuesday, February 22, 2022

[SOLVED] How to install Tomcat8 tar.gz on Linux?

Issue

JDK is already installed there.I have downloaded the apache-tomcat-8.5.29.tar.gz in /opt/tomcat. I want their folder structure webapps and all.

Executed the command /path/tar xzvf apache-tomcat-8.5.29.tar.gz, but now also there is tar file present. How do I get folders inside tomcat?


Solution

Done:

sudo tar xvzf /opt/file_path/apache-tomcat-7.0.54.tar.gz -C /opt/extracted_folder_path --strip components=1--

It will extract tar file into extracted_folder_path.



Answered By - Shubham Deshmukh
Answer Checked By - Mary Flores (WPSolving Volunteer)