我试图将旧的应用程序移植到新的服务器上,需要在CentOS 6.4上安装Tomcat5。 这显然不是一个简单的任务。
当我尝试:
yum install tomcat5 tomcat5-admin-webapps tomcat5-webapps
我收到
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.easynews.com * extras: centos.mirror.freedomvoice.com * updates: yum.phx.singlehop.com Setting up Install Process No package tomcat5 available. No package tomcat5-admin-webapps available. No package tomcat5-webapps available. Error: Nothing to do
我怎么能得到安装和运行的旧版本的Tomcat?
Tomcat 5在CentOS仓库中不可用,您需要手动安装。
1. Download the version from the below link http://archive.apache.org/dist/tomcat/tomcat-5/ 2. Extract the downloaded file. 3. Change the permission for the conf folder. 4. start the tomcat from startup.sh file inside the bin directory.
确保你的服务器上安装了JAVA。
CentOS 6附带了Tomcat 6,而不是Tomcat 5.你可以运行CentOS 5来运行Tomcat 5,或者从归档文件中下载Tomcat 5来运行CentOS 6.你可能会遇到其他的错误。 因人而异