开发者社区> 问答> 正文

在eclipse中tomcat提示8080端口被占用

错误信息是:Port 8080 required by J2EE Preview at localhost is already in use. 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时已经设端口为8099,为什么还是提示8080被占用?

展开
收起
蛮大人123 2016-02-19 16:20:23 3250 0
1 条回答
写回答
取消 提交回答
  • 我说我不帅他们就打我,还说我虚伪

    1.如果你在tomcat/bin目录下已经运行了startup.bat,那么当你再用eclipse来启动tomcat时,会报8080端口被占用
    2.你要确保你设置的那个端口位置是正确的: ..tomcatconfserver.xml
    port="8080" protocol="HTTP/1.1"
    connectionTimeout="20000"
    redirectPort="8443" />
    3.请检查你eclipse中配置的tomcat路径是否是你修改的那个tomcat,因为当你new一个server时,默认是不会选择你自己下载的那个tomcat的,把那个server.xml中的端口号重新改一下就好了

    2019-07-17 18:44:53
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Apache Tomcat 的云原生演进 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载

相关镜像