Eclipse配置Tomcat

1 从tomcat官网下载tomcat 8.5 和 7.0 的压缩包

2 解压并剪切至/usr/local/目录下

3 打开eclipse下window 选择Preferences

4 选择Server 下的Runtime Environments

5 在右侧选择Search

6 选择/usr/local/apache-tomcat-7.0.94 点击打开 apache-tomcat-7.0.94被加入列表

7 选择/usr/local/apache-tomcat-8.5.42 点击打开 apache-tomcat-8.5.42被加入列表

单击Apply and Close 即可

8 单击window选择show view

9 选择Servers

10 在eclipse下方选择Servers

11 点击click this link to create a new server...

12 在列表中选择Tomcat v8.5 Server 单击Finish

13 双击Servers中显示的刚才新建的Server

14 Server locations 中 选择Use Tomcat installation

15 ctrl+s 并关闭选项卡即可

16 测试 Servers 选中 Server 单击 右边绿色 启动 按钮

17 tomcat启动后开启浏览器输入localhost:8080 显示tomcat页面即可

posted @ 2019-06-22 00:02  WaterGe  阅读(352)  评论(0编辑  收藏  举报