Linux under Tomcat installation

Source: Internet
Author: User

This is illustrated by the example of installing apache-tomcat-7.0.62.tar.gz in the CentOS system. Other versions are available for download from our website.

1. Download and install

Download the specified version from the official website to the server directory, this machine will download the Tomcat installation files into the/data/soft directory.

Go to file directory

# Cd/data/soft

Unzip the installation file

#tar-ZXVF apache-tomcat-7.0.62.tar.gz

A apache-tomcat-7.0.62 folder is generated after decompression.

Copy the resulting folder to the specified installation directory (this machine is/usr/local).

#cp-RF Apache-tomcat-7.0.62/usr/local/tomcat

2. Start Tomcat

Start command

#cd/usr/local/tomcat/bin

#./startup.sh

Viewing the boot log

#cd/usr/local/tomcat/logs

#tail-F Catalina.out

3. Access Tomcat

Access address format http://ip:port, if it is the default machine, the Access address is: http://localhost:8080.

If there is no access under Tomcat Normal startup, it is possible that the Linux system's firewall does not have port 8080 open and then access it.

Linux under Tomcat installation

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.