eclipse配置tomcat

1、window -> preferences 打开eclipse首选项面板





2、在“首选项”窗口输入 “server”搜索定位到  “Runtime Environments”,点击 “add”





3、选择对应的tomcat版本,点击 “next”





4、设置被添加的tomcat 的 安装目录  D:\apache-tomcat-7.0.79  

     设置JRE,默认使用是eclipse自带的JRE,可以改成独立安装JDK中的JRE

     点击 “Finnish”





5、点击 “close and apply”






6、Window -> show view -> Server 打开“Server” 面板 配置 Server,如果没有“Server” ,选择 “other”,在搜索框输入Server定位选项,再双击打开Server面板





7、点击 面板中 “click this to create a new server”超链接 ,或者在面板内部 右键 “new” 打开新增 Server 实例对话框






8、在新增Server 实例对话框中选择正确的Server版本,点击“Finnish” 完成 Server 实例创建,此时可以在Server面板可以看到一个tomcat Server实例







9、双击 tomcat 实例,打开实例配置界面,修改 Server Path 为       D:\apache-tomcat-7.0.79

    deploy path 为   D:\apache-tomcat-7.0.79\webapps

  Ctrl + s  保存配置







10、在下图  1 或 2 处可以启动tomcat server  ,点击 “start”









11、在 IE 地址栏 输入 http://localhost:8080/  




猜你喜欢

转载自blog.csdn.net/xxidaojia/article/details/79998541