Raspberry PI 3 折腾小记二
1. 安装Java
安装的raspbian-jessie-lite系统没有自带Javaapt-get install oracle-java7-jdk
2. 安装tomcat7
出现Size mismatchwget 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 usertomcat7' (UID 109) ... Adding new user
tomcat7’ (UID 109) with grouptomcat7' ... 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
, 即可根目录访问
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
GitalkLivere