下载tomcat:
官网下载:
1
|
https: //tomcat .apache.org /download-80 .cgi |
阿里云下载:
1
|
https: //mirrors .tuna.tsinghua.edu.cn /apache/tomcat/tomcat-8/ |
安装:
1
2
3
4
5
6
7
8
9
10
|
tar xf apache-tomcat-8.5.37. tar .gz -C /usr/local cd /usr/local ln -sv apache-tomcat-8.5.37/ tomcat vim /etc/profile .d /tomcat .sh export CATALINA_HOME= /usr/local/tomcat export CATALINA_BASE= /usr/local/tomcat export PATH=$PATH:${CATALINA_HOME} /bin source /etc/profile .d /tomcat .sh |
查看版本:
1
2
|
catalina.sh version catalina.sh start|stop |