1.首先查看linux服务器版本,命令为:
cat /etc/redhat-release
2.复制tomcat的tar包的下载链接,地址
https://tomcat.apache.org/download-80.cgi 80代表tomcat8,90代表tomcat9
复制core的tar.gz的下载链接即可
3.执行下载命令
wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.0.52/bin/apache-tomcat-8.0.52.tar.gz
4.解压tomcat的tar包,命令为:
tar -zxvf apache-tomcat-xx.tar.gz
5.配置tomcat的环境变量和内存