1.官网或wget下载apache-tomcat-8.5.9.tar.gz:
cd /home/tar
wget xxxxxxxxxx
cp /home/tar/apache-tomcat-8.5.9.tar.gz /opt
cd /opt
tar -zxvf apache-tomcat-8.5.9.tar.gz
2.配置系统属性
vi /etc/profile
在profile文件加入以下内容:
--------------------------------------------------
export CATALINA_BASE=/opt/apache-tomcat-8.5.9
export CATALINA_HOME=/opt/apache-tomcat-8.5.9
export TOMCAT_HOME=/opt/apache-tomcat-8.5.9
3.让配置生效
source /etc/profile
4.启动
/opt/apache-tomcat-8.5.9/bin/startup.sh