Linux安装tomcat后配置tomcat

新建tomcat7在删掉后,重新创建的时候Server name无法编辑,百度了一下

1、Window->preferences->server->runtime environment,改变tomcat的目录为你安装的目录,然后保存,这样就可以建立Tomcat server了。

还有另一种方式:
2、可以用命令在workspace中如下路径:/.metadata/.plugins/org.eclipse.core.runtime/.settings(隐藏路径使用 ll 查看)

把其下org.eclipse.wst.server.core.prefs和 org.eclipse.jst.server.tomcat.core.prefs这两个文件去掉

后重启eclipse即可。(使用的该方法解决的)

原文地址:https://www.cnblogs.com/nihaofenghao/p/5929273.html