修改Tomcat和Jetty默认JDK
tomcat:
sed -i 's/java-7-oracle/java-8-oracle/g' /etc/init.d/tomcat7
Jetty
echo 'JAVA_HOME=/usr/lib/jvm/java-8-oracle' >> /etc/default/jetty
tomcat:
sed -i 's/java-7-oracle/java-8-oracle/g' /etc/init.d/tomcat7
Jetty
echo 'JAVA_HOME=/usr/lib/jvm/java-8-oracle' >> /etc/default/jetty