First install wget
Go to tomcat official website to find the download directory of tomcat
Select core's tar.gz
Then execute sudo wget right-click the address directory
download
Then extract the tar -zxvf
mv changes the file name to tomcat
grant permission
sudo chmod -R 777 tomcat
Then is to configure jdk
Configured in startup.sh shuntown.sh
JAVA_HOME=/usr/lib/jvm/java-8-oracle JRE_HOME=${JAVA_HOME}/jre PATH=$JAVA_HOME/bin:$PATH CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar TOMCAT_HOME=/usr/local/tomcat
Then start tomcat and it's ok