一. spring boot 项目war包项目:
https://www.tutorialspoint.com/spring_boot/spring_boot_tomcat_deployment.htm
二. tomcat8安装
1. sudo apt-get install tomcat8 tomcat8-docs tomcat8-examples tomcat8-admin
2. cp -rf liu-0.0.1-SNAPSHOT.war /var/lib/tomcat8/webapps
3. service tomcat8 start
浏览器打开
http://localhost:8080/liu-0.0.1-SNAPSHOT/
就可以看到
一些tomcat8命令
service tomcat8 status
service tomcat8 start
service tomcat8 stop
参考网页: