1 官网下载
2 ubuntu 服务器安装
#下载
wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.91/bin/apache-tomcat-9.0.91.tar.gz
#解压
tar zxvf apache-tomcat-9.0.91.tar.gz
sudo mv apache-tomcat-9.0.91/ /data/tomcat
#配置环境变量
sudo vi /etc/profile
export TOMCAT_HOME=/data/tomcat/
export PATH=$TOMCAT_HOME/bin:$PATH
#加载
source /etc/profile
3 启动
#startup.sh
Using CATALINA_BASE: /data/tomcat
Using CATALINA_HOME: /data/tomcat
Using CATALINA_TMPDIR: /data/tomcat/temp
Using JRE_HOME: /data/jdk
Using CLASSPATH: /data/tomcat/bin/bootstrap.jar:/data/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
#查看进程
ps -ef | grep tomcat
#域名或者IP 加8080端口访问
#关闭tomcat
test@iZbp1g7fmjea77vsqc5hmmZ:~/soft$ shutdown.sh
Using CATALINA_BASE: /data/tomcat
Using CATALINA_HOME: /data/tomcat
Using CATALINA_TMPDIR: /data/tomcat/temp
Using JRE_HOME: /data/jdk
Using CLASSPATH: /data/tomcat/bin/bootstrap.jar:/data/tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
标签:LTS,bin,CATALINA,Tomcat,tomcat,HOME,Ubuntu,Using,data
From: https://blog.csdn.net/tonyhi6/article/details/140540849