1. 下载tomcat
wget http://apache.fayea.com/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68.tar.gz
tar zxvf apache-tomcat-7.0.68.tar.gz
2. 下载JDK
进入www.oracle.com 官网 下载jdk
3. 安装jdk
tar zxvf jdk-8u73-linux-x64.gz
vi /etc/profile
export JAVA_HOME=/opt/java/jdk1.8.0_73
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
wq!
source /etc/profile
4.测试jdk
java -version
5.上传项目,并运行tomcat