Configure Tomcat in Ubuntu

Source: Internet
Author: User
System Environment: Ubuntu10.10 (linux-kernel2.6.35-22) Installation version: apache-tomcat-7.0.29.tar.gz (Official Site: ApacheTomcat) Installation Steps: 1、tomctomctomctomc apache-tomcat-7.0.29.tar.gz (Official Site) 2. Unzip Tomcat unzip apache-tomcat-

System Environment:Ubuntu 10.10 (linux-kernel 2.6.35-22)

Installation version:Apache-tomcat-7.0.29.tar.gz (Official Website:APache Tomcat)


Installation steps:

1. Download Tomcat

Download apache-tomcat-7.0.29.tar.gz (official site)


2. Decompress Tomcat

Extract apache-tomcat-7.0.29.tar.gz

Tar-zxvf apache-tomcat-7.0.29.tar.gz



3. Configure Tomcat

Copy the decompressed file to the/opt directory.

Sudo cp-r apache-tomcat-7.0.29/opt


Go to the/opt/apache-tomcat-7.0.29 directory

Cd/opt/apache-tomcat-7.0.29


Linux community http://www.linuxidc.com open the Startup Script File

Sudo vi./bin/startup. sh



Add jdk and jre environment variables, as shown in figureRed rectangle area:


Medium:

JAVA_HOME and JRE_HOME are the JDK and JRE directories configured.

TOMCAT_HOME is the currentApache -- tomcat-7.0.29Directory

Save and exit.


4. start Tomcat

Sudo./bin/startup. sh


Some startup parameters are displayed at startup.


5. Verify that the configuration is successful.

Open your browser and enter the URL: http: // localhost: 8080 or http: // 127.0.0.1: 8080.


The webpage is displayed, indicating that the configuration is successful!

Related Article

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.