在 CentOS 6.3 上安装 Tomcat 6

在 CentOS 6.3 上安装 Tomcat 6

我有一台带有 cPanel 的 CentOS 6.3 服务器。我想安装 tomcat 6(而不是 cPanel 支持的 5.5)。

当我尝试时:

yum -y install tomcat6 tomcat6-webapps tomcat6-admin-webapps

我收到错误:(查看全部)

Error: Package: jakarta-taglibs-standard-1.1.1-11.4.el6.noarch (base)
Requires: apache-tomcat-apis
You could try using --skip-broken to work around the problem
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
bandmin-1.6.1-5.noarch has missing requires of perl(bandmin.conf)
bandmin-1.6.1-5.noarch has missing requires of perl(bmversion.pl)
bandmin-1.6.1-5.noarch has missing requires of perl(services.conf)
exim-4.77-1.i386 has missing requires of perl(SafeFile)
frontpage-2002-SR1.2.i386 has missing requires of libexpat.so.0
sendmail-cf-8.14.4-8.el6.noarch has missing requires of sendmail = ('0', '8.14.4', '8.el6')

我应该如何安装 Tomcat 6?谢谢!


yum repolist

Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: mirror.sanctuaryhost.com
 * extras: centos.corenetworks.net
 * rpmforge: mirror.us.leaseweb.net
 * updates: mirror.thelinuxfix.com
base                                                                                                                            | 3.7 kB     00:00
extras                                                                                                                          | 3.0 kB     00:00
updates                                                                                                                         | 3.5 kB     00:00
repo id                                                       repo name                                                                        status
base                                                          CentOS-6 - Base                                                                  4,701+75
extras                                                        CentOS-6 - Extras                                                                       4
rpmforge                                                      RHEL 6 - RPMforge.net - dag                                                      4,372+86
updates                                                       CentOS-6 - Updates                                                                 341+28
repolist: 9,418

grep exclude /etc/yum.conf

exclude=apache* bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*

答案1

我不熟悉 cPanel,但看起来 cPanel 配置yum为排除apache*更新来保护它自己的包。

Error: Package: jakarta-taglibs-standard-1.1.1-11.4.el6.noarch (base)
Requires: apache-tomcat-apis

jakarta-taglibs-standard需要apache-tomcat-apis,但由于上述配置,无法安装/etc/yum.conf。因此,尝试以下操作:

yum --disableexcludes=main install tomcat6 tomcat6-webapps tomcat6-admin-webapps

相关内容