Tomcat服务器错误

编程入门 行业动态 更新时间:2024-10-25 16:18:34
本文介绍了Tomcat服务器错误 - 端口8080已在使用中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

尝试在Eclipse Mars EE中执行Servlet程序时收到以下错误。

I received the following error while attempting to execute a Servlet program in Eclipse Mars EE.

'在localhost'启动Tomcat v8.0 Sever遇到了问题。

'Starting Tomcat v8.0 Sever at localhost' has encountered a problem.

本地主机上Tomcat v8.0服务器所需的端口8080已经在使用。可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。要启动此服务器,您需要停止其他进程或更改端口号。

Port 8080 required by Tomcat v8.0 Server at localhost is already in use. There 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 7服务器。如果我的操作系统是Windows 8,我该怎么办?

What should I do to stop the process? I'm assuming that Tomcat 7 server must be stopped. How shall I do it if my operating system is Windows 8?

错误截图:

推荐答案

我所要做的就是更改端口编号 即可。

All I had to do was to change the port numbers.

  • 打开 Eclipse

    转到服务器面板

    右键单击Tomcat服务器,选择打开,概述窗口将会出现。

    Right click on Tomcat Server select Open, Overview window will appear.

    打开 Ports 标签。您将获得以下内容:

    Open the Portstab. You will get the following:

    • Tomcat adminport

    HTTP / 1.1

    AJP / 1.3

    我更改了端口号 HTTP / 1.1 (即 8081 )

    您可能还需要更改 Tomcat adminport 的端口(即 8006 )和 AJP / 1.3 (即 8010 )。

    You might have to also change the port of Tomcat adminport (i.e. to 8006) and of AJP/1.3 (i.e. to 8010).

    访问您的应用程序在浏览器中 http:// localhost:8081 / ...

    Access your app in the browser at localhost:8081/...

  • 更多推荐

    Tomcat服务器错误

    本文发布于:2023-08-07 03:35:57,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1316744.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:错误   服务器   Tomcat

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!