ubuntu修改tomcat使用的jdk 参考 http://www.yihaomen.com/article/java/535.htm /etc/default/tomcat7 修改这个文件就好了 原来默认安装是有默认选项配置文件的