1、官?地址:http://tomcat.apache.org下载。
2、解压文件,并放到指定路径,给该文件授权。
chmod -R 755
3、启动和停止
进入到/Users/lucas/Downloads/apache-tomcat-9.0.31/bin目录下:
启动: sudo ./startup.sh
http://localhost:8080
停止:./shutdown.sh
生成war包=>webapps =>执行tomcat
idea打包成war
https://blog.csdn.net/lhp3000/article/details/78994010
1、在Tomcat下,找到conf文件下的server.xml
2、在
<Context docBase="目标目录位置" path="/虚拟路径名" reloadable="true" />
<Context docBase="/Users/lucaswang/worktest1" path="/test" reloadable="true" />
直接把要部署的文件放在webapp文件夹下面
https://www.cnblogs.com/yangyuanhu/p/11983059.html
原文:https://www.cnblogs.com/lucaswangdev/p/12324522.html