安装java
apt-get install default-jdk
vim /etc/environment
JAVA_HOME="/usr/lib/jvm/java-7-oracle"
source /etc/environment
安装tomcat
apt-get install tomcat8 tomcat8-docs tomcat8-examples tomcat8-admin
service tomcat8 start|stop|status
apt-get install default-jdk
vim /etc/environment
JAVA_HOME="/usr/lib/jvm/java-7-oracle"
source /etc/environment
apt-get install tomcat8 tomcat8-docs tomcat8-examples tomcat8-admin
service tomcat8 start|stop|status