Apache Tomcat 已安装并运行,但 localhost:8080 在浏览器中显示空白页面 [英] Apache Tomcat installed and running, but localhost:8080 presents blank page in browser

查看:77
本文介绍了Apache Tomcat 已安装并运行,但 localhost:8080 在浏览器中显示空白页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Fedora 16,并且我已经使用 tomcat6 包安装了 Apache Tomcat.

I am using Fedora 16, and I have installed Apache Tomcat, using the tomcat6 package.

在终端中我已经启动了Tomcat:

In the terminal I have started Tomcat:

[rajani@localhost ~]$ sudo service tomcat6 start
[sudo] password for rajani: 
Redirecting to /bin/systemctl  start tomcat6.service
[rajani@localhost ~]$ 

但是如果我浏览到 http://localhost:8080 它只会显示一个空白页面.请给我解决方案.

But if I browse to http://localhost:8080 it simply shows a blank page. Please give me solution.

推荐答案

我在 Fedora 16 下遇到了同样的问题;Tomcat 7 软件包安装正确,但我在 localhost:8080 上看不到任何内容.我搜索了一下,发现我需要安装一些额外的包才能让默认的 webapps 工作.这是对我有用的解决方案:

I had the same problem under Fedora 16; the Tomcat 7 packages installed correctly, but I couldn't see anything at localhost:8080. I googled around and found that I need to install some additional packages in order for the default webapps to work. Here is the solution that worked for me:

# sudo yum install tomcat-admin-webapps.noarch tomcat-docs-webapp.noarch tomcat-javadoc.noarch tomcat-systemv.noarch tomcat-webapps.noarch

这篇关于Apache Tomcat 已安装并运行,但 localhost:8080 在浏览器中显示空白页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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