Ubuntu Tomcat6 mounted and set to auto start

Source: Internet
Author: User
Keywords TOMC running erecting JSP
Tags .gz .mall access advanced apache application application server developed

Tomcat is a core project in the Jakarta Project of the Apache Software Foundation (Apache Software Foundation), developed jointly by Apache, Sun and other companies and individuals. With Sun's involvement and support, the latest servlet and JSP specifications are always reflected in Tomcat, and Tomcat 5 supports the latest servlet 2.4 and JSP 2.0 specifications. Because Tomcat technology advanced, stable performance, and free, so deeply loved by the Java enthusiasts and has been recognized by some software developers, as the current more popular Web application server. The current version is 6.0.

Tomcat is very popular with programmers, because it is running with a small system resources, scalability, support load balancing and mail services, such as the development of application systems commonly used functions; and it is constantly improving and improving, any interested programmers can change it or add new features.

Tomcat is a small lightweight application server that is commonly used in small and medium-sized systems and concurrent access users, and is the first choice for developing and debugging JSP programs. For a beginner, it can be argued that when you configure the Apache server on a single machine, you can use it to respond to requests for access to HTML pages. The tomcat part is actually an extension of the Apache server, but it is run independently, so when you run Tomcat, it actually runs as a standalone process with Apache.

The trick here is that when configured correctly, Apache serves HTML pages, while Tomcat actually runs JSP pages and servlet. In addition, Tomcat, like IIS, Apache, and other Web servers, has the ability to handle HTML pages, as well as a servlet and JSP container, and a stand-alone servlet container is the default mode for Tomcat. However, Tomcat has less ability to handle static HTML than the Apache server.

1. Install Jdk6

Shell>sudo apt Install sun-java6-jdk (installed with new software package)

2. Download Tomcat6

Download Address: http://tomcat.apache.org/
This installation is: apache-tomcat-6.0.18.tar.gz

3. Installation

Copy compressed package to opt (personal preference, can be placed elsewhere)
Shell>sudo CP apache-tomcat-6.0.18.tar.gz/opt

Extract Files
Shell>cd/opt
Shell>sudo Tar zxvf apache-tomcat-6.0.18.tar.gz

After the decompression is complete, the folder is generated under Opt apache-tomcat-6.0.18

In order to operate conveniently, establishes the soft link under the USR, the name is TOMCAT6

Shell>cd/usr/local
Shell>sudo ln-s/opt/apache-tomcat-6.0.18 Tomcat6

To test whether Tomcat starts properly

shell>sudo/usr/local/tomcat6/bin/startup.sh

Open Firefox, enter http://localhost:8080, if normal access, it means success.

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.