前提
- 安装ava
https://blog.csdn.net/qq_36940806/article/details/134945175?spm=1001.2014.3001.5501
1. 下载
wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.84/bin/apache-tomcat-9.0.84.tar.gz
ps: 可选择自己需要的版本下载安装https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/
2. 解压
tar -zxvf apache-tomcat-9.0.84.tar.gz -C /usr/local
3. 启动
/usr/local/apache-tomcat-9.0.84/bin/startup.sh
4. 浏览器访问
http://$ip:8080/
5. 关闭
/usr/local/apache-tomcat-9.0.84/bin/shutdown.sh