HTTP 404错误而启动Apache服务器 [英] Http 404 error while starting apache server

查看:169
本文介绍了HTTP 404错误而启动Apache服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行服务器的Apache Tomcat - 在新电脑上安装Eclipse和Tomcat之后 - 在Eclipse中却没有任何问题:信息:在575毫秒Server启动。但是,当我输入http://本地主机:8080 /,我没有得到的Apache Tomcat主页,但得到以下错误消息:HTTP状态404错误在Tomcat中,请求的资源暂无数据。
Whts问题?

I run the server Apache Tomcat - after installing Eclipse and Tomcat on a new computer - in Eclipse and haven't any problem: INFO: Server startup in 575 ms. But when I type "http://localhost:8080/", I didn't get the Apache Tomcat Home Page, but get the following error message : HTTP Status 404 error in tomcat, The requested resource is not avaliable. Whts the problem?

推荐答案

将tomcat已经运行。但它不是能找到的Apache主页的资源。
当你正在从日食月食和服务器不会复制tomcat的ROOT文件夹(欢迎/索引页),因此,你需要手动复制从根文件夹
  {tomcat目录} \\ web应用 .Copy然后去Eclipse工作区,转到 .metadata 文件夹,搜索wtpwebapps。你应该找到类似您-Eclipse的工作区\\ .metadata位于\\ .plugins \\ org.eclipse.wst.server.core \\ TMP0 \\ wtpwebapps (或... / TMP1 / wtpwebapps如果你已经有了在Eclipse中注册的另一台服务器)。进入wtpwebapps文件夹,粘贴/合并ROOT。然后重新装入的http://本地主机:8080 /。看到Tomcat的欢迎页

The tomcat is already running. But it is not able to find the resource for Apache Home Page. As you are running the server from eclipse and eclipse doesn't copy the tomcat "ROOT"folder (where the welcome/index pages are) , therefore you need to manually copy the "ROOT" folder from your {tomcat directory}\webapps .Copy and then go to your Eclipse workspace, go to the .metadata folder, and search for "wtpwebapps". You should find something like your-eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps (or .../tmp1/wtpwebapps if you already had another server registered in Eclipse). Go to the wtpwebapps folder, paste/merge ROOT. Then reload "http://localhost:8080/" to see the Tomcat welcome page.

这篇关于HTTP 404错误而启动Apache服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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