1. 安装Java

安装的raspbian-jessie-lite系统没有自带Java
apt-get install oracle-java7-jdk

2. 安装tomcat7

出现Size mismatch
wget http://mirrors.ustc.edu.cn/raspbian/raspbian/pool/main/j/java-common/java-common_0.52_all.deb
dpkg -i java-common_0.52_all.deb
再次apt-get install tomcat7

安装成功提示:

Creating config file /etc/default/tomcat7 with new version
Adding system user tomcat7' (UID 109) ... Adding new user tomcat7’ (UID 109) with group tomcat7' ... Not creating home directory /usr/share/tomcat7’.
Creating config file /etc/logrotate.d/tomcat7 with new version

vim /etc/tomcat/server.xml 修改默认webapp位置, mv /var/lib/tomcat7/webapps new_loc

解压war包jar xvf some.war, 将解压出的内容mv * ROOT, 即可根目录访问