Shubham Deshmukh
Shubham Deshmukh

Reputation: 9

How to install Tomcat8 tar.gz on Linux?

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?

Upvotes: 0

Views: 2595

Answers (4)

cristianpaul76
cristianpaul76

Reputation: 21

Before unpack with command tar try this:

sudo chmod 777 ./apache-tomcat-8.5.85

you need to perform this action before, because after download tar file is colored red and you need to make it green. You achive this result with chmod 777 which change permission on the file.

Upvotes: 0

Shubham Deshmukh
Shubham Deshmukh

Reputation: 9

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.

Upvotes: 1

Emmanuel
Emmanuel

Reputation: 1

when you extract the tar.gz file, you should see an output like this:

...... (lot of information)
apache-tomcat-8.5.29/bin/configtest.sh
apache-tomcat-8.5.29/bin/daemon.sh
apache-tomcat-8.5.29/bin/digest.sh
apache-tomcat-8.5.29/bin/setclasspath.sh
apache-tomcat-8.5.29/bin/shutdown.sh
......

And a new directory must be created called apache-tomcat-8.5.29, now you only have to type the following command:

cd apache-tomcat-8.5.29

if you need to list it, then execute this

ls -l

Upvotes: 0

Emmanuel
Emmanuel

Reputation: 1

The error says:

tar (child): apache-tomcat-8.5.29.tar: Cannot open: No such file or directory

It's means that the file name is incorrect or is not on the directory you are.

Try this
tar xzvf /PATH_OF_THE_FILE/apache-tomcat-8.5.29.tar.gz

also check the name of the file you typed.

Upvotes: 0

Related Questions