- 下载
https://tomcat.apache.org/
https://archive.apache.org/dist/tomcat/
- 解压:
tar -xzvf apache-tomcat-9.0.27.tar.gz -C /usr/local/tomcat/
- 启动/关闭
cd /usr/local/tomcat/apache-tomcat-9.0.27/bin
startup.sh —>启动tomcat
shutdown.sh —>关闭tomcat
- 配置端口:
vim /usr/local/tomcat/apache-tomcat-9.0.27/conf/server.xml
server.xml文件中有三个端口设置: