1、你可以编辑tomcat/bin/catalina.sh,在第一行添加export JAVA_HOME=/usr/java/jdk1.72、或者在/etc/bashrc添加3、或者在~/.bash_profile添加4、cd tomcat;执行./bin/startup.sh即可