Linux installation Tomcat

Source: Internet
Author: User

Build the Java environment before you install Tomcat

      1. Download JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html from official website first
      1. Then put the downloaded JDK on the Linux server and unzip it with tar
        tar -zxvf jdk***
      1. Will extract a folder jdk***
    1. 4. Editing system Environment variables
      vi /etc/profile
      Java_home as the path to the JDK

At the end of the document, add the following

export JAVA_HOME=/usr/local/jdk1.8.0_101export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jarexport PATH=$JAVA_HOME/bin:$PATH

2.1 Download Tomcat's latest installation package on Tomcat website
And then unzip it.
tar -zxvf /alidata/server/apache-tomcat-7.0.54.tar.gz
2.2 When the decompression is successful, we go directly to the bin directory in Tomcat.
Enter ./startup.sh start Tomcat
2.3 Verifying Successful Installation Tomcat
The default startup port number is: 8080
Use Ps-ef|grep tomcat to view the process;
Can also be a virtual machine Linux system inside, input http://localhost:8080/

Linux installation Tomcat

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.