Install TOMCAT7 under Linux

Source: Internet
Author: User

This article is based on CentOS 64-bit

1. First download Tomcat7.0 (apache-tomcat-7.0.64.tar.gz)

Download http://tomcat.apache.org/download-70.cgi from official website

2. Copy the apache-tomcat-7.0.64.tar.gz to the/usr/lib/ Apache-tomcat /directory below, if there is no folder, create the folder, command:

mkdir Apache-tomcat

sudo tar xvf apache-tomcat-7.0.64.tar.gz //Unzip files

3. When the decompression is successful, we go directly to the Tomcat bin directory.

Enter./startup.sh to start Tomcat, and if Tomcat started is displayed, it indicates a successful boot.

4. Enter the address, assuming successful access to Tomcat's default interface indicates success.

The default port for Tomcat is 8080

5.Tomcat is located in the directory/usr/lib/apache-tomcat/

Open the Tomcat configuration file
sudo nano/usr/local/apache-tomcat/conf/server.xml

Press 8080 to quickly retrieve the Tomcat profile after opening it

Modify the port, press I, change 8080 to 80

In order to prevent garbled in the back, we add uriencoding= "UTF-8" by the way,

Restart Tomcat

Install TOMCAT7 under Linux

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.