简体   繁体   English

如何在Fedora 20中安装Apache Tomcat

[英]How to install Apache Tomcat in Fedora 20

I want to install Apache Tomcat in fedora 20. I have try to install tomcat using below code 我想在fedora 20中安装Apache Tomcat。我尝试使用以下代码安装tomcat。

yum install tomcat.

Then, enable Tomcat on system startup: 然后,在系统启动时启用Tomcat:

systemctl enable tomcat

Command is executed properly, but when try http://127.0.0.1:8080 it shows a blank page. 命令已正确执行,但是尝试使用http://127.0.0.1:8080它将显示空白页。

Can anyone tell me, how I have to configure tomcat to make it work properly? 谁能告诉我,我如何配置tomcat才能使其正常工作?

I recently got the same problem. 我最近遇到了同样的问题。 And if you are used to yum but not used to install applications manually you can find below how I resolved the problem using yum: 如果您习惯使用yum而不是手动安装应用程序,则可以在下面找到我如何使用yum解决问题的方法:

# yum search tomcat

Loaded plugins: langpacks, refresh-packagekit
tomcat-native.x86_64 : Tomcat native library
jglobus-ssl-proxies-tomcat.noarch : Globus Java - SSL and proxy certificate support for Tomcat
jspc-compiler-tomcat6.noarch : JSPC Compiler for Tomcat6
openwebbeans-tomcat7.noarch : Apache OpenWebBeans Tomcat 7 plugin
springframework-instrument-tomcat.noarch : Spring Instrument Tomcat Weaver
**tomcat-admin-webapps.noarch : The host-manager and manager web applications for Apache Tomcat**
tomcat-docs-webapp.noarch : The docs web application for Apache Tomcat
tomcat-javadoc.noarch : Javadoc generated documentation for Apache Tomcat
tomcat-jsp-2.2-api.noarch : Apache Tomcat JSP API implementation classes
tomcat-jsvc.noarch : Apache jsvc wrapper for Apache Tomcat as separate service
tomcat-lib.noarch : Libraries needed to run the Tomcat Web container
tomcat-servlet-3.0-api.noarch : Apache Tomcat Servlet API implementation classes
**tomcat-webapps.noarch : The ROOT and examples web applications for Apache Tomcat**
tomcatjss.noarch : JSSE implementation using JSS for Tomcat
pki-tps-tomcat.noarch : Certificate System - Token Processing Service
tomcat.noarch : Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
tomcat-el-2.2-api.noarch : Expression Language v1.0 API

Because I ran into this dependency conflict: 因为我遇到了这种依赖冲突:

Error: tomcatjss conflicts with tomcat-native-1.1.30-1.fc20.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

I run yum install with the skip-broken flag: 我运行带有跳过中断标志的yum install:

# yum install --skip-broken tomcat*

And now after 而现在

# service tomcat restart

the Tomcat start Page appears as expected. Tomcat起始页按预期出现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM