ready
1, the official ⽹ address: http://tomcat.apache.org download .
2, unzip the file and placed in the specified path to the file authorization.
chmod -R 755
3, start and stop
进入到/Users/lucas/Downloads/apache-tomcat-9.0.31/bin目录下:
启动: sudo ./startup.sh
http://localhost:8080
停止:./shutdown.sh
3 ways to deploy Tomcat Java projects:
- Deployment 1:
Generating war package => webapps => performed tomcat
idea packaged into war
https://blog.csdn.net/lhp3000/article/details/78994010
- 2 deployment:
1, in Tomcat, find server.xml under conf file
2, in
<Context docBase="目标目录位置" path="/虚拟路径名" reloadable="true" />
<Context docBase="/Users/lucaswang/worktest1" path="/test" reloadable="true" />
- 3 deployment:
Directly to the file to be deployed on the webapp folder below