Tomcat 服务器错误

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

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

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

'Starting Tomcat v8.0 Sever at localhost'遇到问题.

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

Tomcat v8.0 Server at localhost 所需的 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 Server上右击选择Open,就会出现Overview window.

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

    打开端口标签.您将获得以下信息:

    Open the Portstab. You will get the following:

    • Tomcat 管理端口

    HTTP/1.1

    AJP/1.3

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

    I changed the port number of HTTP/1.1 (i.e. to 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).

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

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

  • 更多推荐

    Tomcat 服务器错误

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

    发布评论

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

    >www.elefans.com

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