1.官网下载安装包
http://tomcat.apache.org/download-80.cgi#8.5.9
2.解压
tar -zxvf apache-tomcat-8.5.29.tar.gz
3.移动到/opt/apache-tomcat-8.5.29文件夹
mv apache-tomcat-8.5.29/ /opt/apache-tomcat-8.5.29
4.建立连接
ln -s /opt/apache-tomcat-8.5.29/ /opt/tomcat8
5.启动
root@ubuntu:/usr/java# /opt/tomcat8/bin/startup.sh Using CATALINA_BASE: /opt/tomcat8 Using CATALINA_HOME: /opt/tomcat8 Using CATALINA_TMPDIR: /opt/tomcat8/temp Using JRE_HOME: /usr/java/jdk1.8.0_161/ Using CLASSPATH: /opt/tomcat8/bin/bootstrap.jar:/opt/tomcat8/bin/tomcat-juli.jar Tomcat started.
6.测试