Linux Download Install TOMCAT+JDK

Source: Internet
Author: User

1. Tomcat official website:https://tomcat.apache.org/download-80.cgi

2. right-click to copy the link address (JDK same)

3. Download Unzip

  Download: wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.5.32/bin/apache-tomcat-8.5.32.tar.gz ( can also be downloaded and uploaded via tools such as WINSCP)

Decompression: TAR-ZXVF apache-tomcat-9.0.8.tar.gz

Note: You need to agree to Oracle's installation agreement before going to Oracle official website, otherwise it cannot be downloaded, but with wget, the default is not to agree, although it can be downloaded, but the downloaded file will be problematic, may cause the decompression on Linux failed. (then it can only be solved by uploading the method)

4. Install the JDK before starting Tomcat

(1) edit configuration file, configure environment variables

  Vim/etc/profile
Add the following content: Java_home according to the actual directory to
  Export java_home=/usr/java/jdk1.8.0_171
  Export Classpath= $JAVA _home/lib/
  Export path= $PATH: $JAVA _home/bin

  Export PATH java_home CLASSPATH

(2) Restart the machine or perform a command restart configuration file

    1. Execution command: Source/etc/profile

2. Restart the machine: sudo shutdown-r now

(3) Whether the check is effective

Java-version; Javac-version

5. Start Tomcat

  ./startup.sh

6. If multiple tomcat is deployed, but the same tomcat is started each time, you can modify the Tomcat catalina.sh configuration file to include:

Linux Download Install TOMCAT+JDK

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.