Tomcat启动但主页无法使用url http:// localhost:8080打开 [英] Tomcat starts but home page cannot open with url http://localhost:8080

查看:449
本文介绍了Tomcat启动但主页无法使用url http:// localhost:8080打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Java的新手,我正在尝试开发一个Web应用程序。
我有Windows 7 32位。我已经安装了Java 7并设置了路径和类路径。之后我安装了Tomcat 7.

I am a newbie in Java, and I am trying to develop a web application. I have Windows 7 32 bit. I have installed Java 7 and set the path and classpath as well. After that I installed Tomcat 7.

当我尝试使用URL localhost:8080 打开tomcat主页时,它没有打开,Tomcat自动停止。

When I try to open tomcat home page using URL localhost:8080, it does not open and Tomcat stops automatically.

请帮帮我。

推荐答案

在启动tomcat之前,确保没有其他应用程序使用端口8080。如果这不是问题,请粘贴tomcat日志。

Make sure no other application using port 8080 before starting tomcat. If that's not the problem please paste tomcat log.

如果要更改tomcat的默认端口,请转到tomcat文件夹并打开 conf 文件夹,您可以在其中看到 server.xml 。在该文件中,您可以看到类似< Connector port = 的内容。更改端口值并启动tomcat。

If you want to change tomcat's default port, go to tomcat folder and open conf folder, in which you can see server.xml. In that file you can see something like <Connector port= . Change the port value and start tomcat.

这篇关于Tomcat启动但主页无法使用url http:// localhost:8080打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆