Unzip Tomcat 7 and ubuntuat7 in Ubuntu

Source: Internet
Author: User
Tags gz file

Unzip Tomcat 7 and ubuntuat7 in Ubuntu
1. Download the compressed package

Here, we use the Ubuntu Wget tool to download the tomcat core package.
The wget parameter is the URL address of the compressed package.

wget http://apache.claz.org/tomcat/tomcat-8/v8.0.21/bin/apache-tomcat-7.0.59.tar.gz

After the scripts are executed, an apache-atat-7.0.59.tar.gz compressed package is generated.

2. decompress the compressed package

Run the following command in the path of the apache-tomcat-7.0.59.tar.gz file:

tar xzvf apache-tomcat-7.0.59.tar.gz
3. Configure Environment Variables

Use vim or notepad to open/etc/profile and add the following content to the file:

CATALINA_HOME=/home/tangyubin/programFiles/apache-tomcat-7.0.59export PATH=$CATALINA/bin:$PATH

Make/etc/profile take effect

source /etc/profile
4. start tomcat

Switch to the tomcat decompressed folder and go to the./apache-tomcat-7.0.59/bin path. Run the following command:

./startup.sh
5. Test

Open your browser and enter the following in the address bar:

http://localhost:8080/

If you can open the home page of tomcat, the installation is successful.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.