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.