tomcat 8.59直接下载链接:https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9-windows-x64.zip
修改端口为80后 直接在浏览器输入本机地址 127.0.0.1就可以直接访问
![](https://img.haomeiwen.com/i8687382/e9d713148b066464.jpg)
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
tomcat默认配置是读取 先前java变量设置的JAVA_HOME变量来获取jdk的
![](https://img.haomeiwen.com/i8687382/ebf7157d58d59027.png)
![](https://img.haomeiwen.com/i8687382/97b74b3cb223ef39.jpg)
![](https://img.haomeiwen.com/i8687382/c54d2e6323208a28.jpg)
接下来配置idea
1.打开idea,点击Run->EDit Configurations
2.进去之后,点击左上角加号,找到Tomcat Server
3.点击Tomcat Server->Local,选择右侧的Configure
4.点击Configure,选择本地tomcat路径,添加进来之后,点击OK就完成了
![](https://img.haomeiwen.com/i8687382/124d34ec725ea0c2.png)
然后我们来部署下tomcat,选择刚才创建的tomcat
找到右上角的相关配置:
![](https://img.haomeiwen.com/i8687382/b7aa8a38586a51ee.png)
![](https://img.haomeiwen.com/i8687382/a8f676434d5fffff.png)
![](https://img.haomeiwen.com/i8687382/fa172de344427019.png)
网友评论