简体   繁体   English

用eclipse配置tomcat

[英]tomcat configuring with eclipse

whats the cause of this error while running tomcat 6.0 on eclipse ide helious: 在eclipse ide helious上运行tomcat 6.0时出现此错误的原因是什么:

Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. Tomcat v6.0 Server在localhost上所需的几个端口(8005,8080,8009)已在使用中。 The server may already be running in another process, or a system process may be using the port. 服务器可能已在另一个进程中运行,或者系统进程可能正在使用该端口。 To start this server you will need to stop the other process or change the port number(s). 要启动此服务器,您需要停止其他进程或更改端口号。

只需阅读错误消息:Tomcat已在运行。

Or: 要么:

  • you have tomcat running in your eclipse workspace ( solution : stop the server in eclipse or the eclipse process from your task manager) 你有tomcat在你的eclipse工作区运行( 解决方案 :在eclipse中停止服务器或从任务管理器停止eclipse过程)
  • your tomcat is running in the background as a service ( solution : kill the tomcat process from your task manager and disable the windows service) 你的tomcat作为服务在后台运行( 解决方案 :从你的任务管理器中杀死tomcat进程并禁用windows服务)
  • the ports tomcat use are used by other programs running in the background ( solution : kill the processes using these ports from your task manager) tomcat使用的端口由后台运行的其他程序使用( 解决方案 :从任务管理器中使用这些端口终止进程)

Some application is using the ports configured in Tomcat. 某些应用程序正在使用Tomcat中配置的端口。

Either check the applications using these ports with netstat and kill them, or configure different ports for Tomcat. 使用netstat检查使用这些端口的应用程序并将其终止,或者为Tomcat配置不同的端口。

Check if there's any Java Application Server running, they generally use these ports. 检查是否有任何Java Application Server在运行,它们通常使用这些端口。

Sometimes when you run Tomcat from within Eclipse, you stop Tomcat from the Servers view, and it keeps running on the background. 有时,当您从Eclipse中运行Tomcat时,可​​以从Servers视图中停止Tomcat,并且它会在后台运行。 I've found that restarting Eclipse makes it stop for good. 我发现重启Eclipse会让它停下来。

The problem is that the tomcat server must not start from inside the Eclipse, it should start from the cmd screen by using the files startup.dat and shutdown by using the shutdown.dat file using their pathin the cmd like this: 问题是tomcat服务器不能从Eclipse内部启动,它应该从cmd屏幕启动,使用文件startup.dat并使用shutdown.dat文件在cmd中使用它们的路径关闭,如下所示:

D:\\Apache-Software-Foundation\\Tomcat-8.0\\bin\\startup.bat d:\\ Apache的软件基金会\\ Tomcat的8.0 \\ BIN \\的startup.bat

D:\\Apache-Software-Foundation\\Tomcat-8.0\\bin\\shutdown.bat d:\\ Apache的软件基金会\\ Tomcat的8.0 \\ BIN \\ shutdown.bat

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM