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