1.下载tomcat
http://tomcat.apache.org/download-60.cgi
tar -zxvf apache-tomcat-6.0.36.tar.gz mv apache-tomcat-6.0.36 /usr vim ~/.bash_profile 添加: TOMCAT_HOMT=/usr/apache-tomcat-6.0.36 export PATH JAVA_HOME CLASSPATH TOMCAT_HOME source ~/.bash_profile