cd /home/kylin wget http://www.fayea.com/apache-mirror/tomcat/tomcat-6/v6.0.36/bin/apache-tomcat-6.0.36.tar.gz tar zxvf apache-tomcat-6.0.36.tar.gz cd /usr/local/ mv /home/kylin/apache-tomcat-6.0.36 . vi /etc/profile
将下面语句加到最后一行
export TOMCAT_HOME=/usr/local/apache-tomcat-6.0.36
搞定!