1.解压······················································
sudo tar -zxvf apache-tomcat-8.5.24.tar.gz
2.进入Tomcat目录
为Tomcat下目录赋予权限命令(在Javadev目录输入以下命令)
sudo chmod -R 777 apache-tomcat-8.5.24
3.配置环境变量(进入文本编辑命令 sudo vi ./startup.sh i insert esc : wq)
sudo vi ./startup.sh
JAVA_HOME=/home/ubuntu/javadev/jdk1.8.0_151
JRE_HOME=${JAVA_HOME}/jre
PATH=$JAVA_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
TOMCAT_HOME=/home/ubuntu/javadev/apache-tomcat-8.5.24
3.启动命令
进入bin目录之后 ./startup.sh