在VPS上安装tomcat的问题是什么?

时间:2019-05-14 13:32:38

标签: linux centos7 digital-ocean vps bluehost

我正在尝试在bluehost vps服务器上安装tomcat。我检查了Java,它已安装。但是当我这样做

 sudo yum install tomcat

我遇到了以下问题

Error: Package: log4j-1.2.17-16.el7_4.noarch (base)
           Requires: mvn(javax.mail:mail)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

这是我按下Enter键后的全部内容:

Loaded plugins: fastestmirror, langpacks, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 184.94.196.93
 * cpanel-addons-production-feed: 184.94.196.93
Resolving Dependencies
--> Running transaction check
---> Package tomcat.noarch 0:7.0.76-9.el7_6 will be installed
--> Processing Dependency: tomcat-lib = 7.0.76-9.el7_6 for package: tomcat-7.0.7                                                                     6-9.el7_6.noarch
--> Processing Dependency: apache-commons-pool for package: tomcat-7.0.76-9.el7_                                                                     6.noarch
--> Processing Dependency: apache-commons-logging for package: tomcat-7.0.76-9.e                                                                     l7_6.noarch
--> Processing Dependency: apache-commons-dbcp for package: tomcat-7.0.76-9.el7_                                                                     6.noarch
--> Processing Dependency: apache-commons-daemon for package: tomcat-7.0.76-9.el                                                                     7_6.noarch
--> Processing Dependency: apache-commons-collections for package: tomcat-7.0.76                                                                     -9.el7_6.noarch
--> Running transaction check
---> Package apache-commons-collections.noarch 0:3.2.1-22.el7_2 will be installe                                                                     d
---> Package apache-commons-daemon.x86_64 0:1.0.13-7.el7 will be installed
---> Package apache-commons-dbcp.noarch 0:1.4-17.el7 will be installed
--> Processing Dependency: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)                                                                      for package: apache-commons-dbcp-1.4-17.el7.noarch
---> Package apache-commons-logging.noarch 0:1.1.2-7.el7 will be installed
--> Processing Dependency: mvn(logkit:logkit) for package: apache-commons-loggin                                                                     g-1.1.2-7.el7.noarch
--> Processing Dependency: mvn(log4j:log4j) for package: apache-commons-logging-                                                                     1.1.2-7.el7.noarch
--> Processing Dependency: mvn(avalon-framework:avalon-framework-api) for packag                                                                     e: apache-commons-logging-1.1.2-7.el7.noarch
---> Package apache-commons-pool.noarch 0:1.6-9.el7 will be installed
---> Package tomcat-lib.noarch 0:7.0.76-9.el7_6 will be installed
--> Processing Dependency: tomcat-servlet-3.0-api = 7.0.76-9.el7_6 for package:                                                                      tomcat-lib-7.0.76-9.el7_6.noarch
--> Processing Dependency: tomcat-jsp-2.2-api = 7.0.76-9.el7_6 for package: tomc                                                                     at-lib-7.0.76-9.el7_6.noarch
--> Processing Dependency: tomcat-el-2.2-api = 7.0.76-9.el7_6 for package: tomca                                                                     t-lib-7.0.76-9.el7_6.noarch
--> Processing Dependency: ecj >= 1:4.2.1 for package: tomcat-lib-7.0.76-9.el7_6                                                                     .noarch
--> Running transaction check
---> Package avalon-framework.noarch 0:4.3-10.el7 will be installed
---> Package avalon-logkit.noarch 0:2.1-14.el7 will be installed
--> Processing Dependency: jms for package: avalon-logkit-2.1-14.el7.noarch
---> Package ecj.x86_64 1:4.5.2-3.el7 will be installed
---> Package geronimo-jta.noarch 0:1.1.1-17.el7 will be installed
---> Package log4j.noarch 0:1.2.17-16.el7_4 will be installed
--> Processing Dependency: mvn(javax.mail:mail) for package: log4j-1.2.17-16.el7                                                                     _4.noarch
---> Package tomcat-el-2.2-api.noarch 0:7.0.76-9.el7_6 will be installed
---> Package tomcat-jsp-2.2-api.noarch 0:7.0.76-9.el7_6 will be installed
---> Package tomcat-servlet-3.0-api.noarch 0:7.0.76-9.el7_6 will be installed
--> Running transaction check
---> Package geronimo-jms.noarch 0:1.1.1-19.el7 will be installed
---> Package log4j.noarch 0:1.2.17-16.el7_4 will be installed
--> Processing Dependency: mvn(javax.mail:mail) for package: log4j-1.2.17-16.el7                                                                     _4.noarch
--> Finished Dependency Resolution
Error: Package: log4j-1.2.17-16.el7_4.noarch (base)
           Requires: mvn(javax.mail:mail)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

0 个答案:

没有答案