Linux
在 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*
我不熟悉 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