2012年04月2日 归档
Linux下源码编译安装Tomcat教程
本教程以tomcat 6.0.X和7.0.X为例,给大家讲解如何通过源码编译安装tomcat,在开始前需要做两件事,一是安装ant,二是安装java开发环境,然后才能进行tomcat的编译工作,下面看具体的操作。
第一步:安装Apache Ant
首先通过
[root@poorren ~]# wget http://archive.apache.org/dist/ant/ binaries/apache-ant-1.8.2-bin.tar.gz [root@poorren ~]# tar zxvf apache-ant-1.8.2-bin.tar.gz [root@poorren ~]# mv apache-ant-1.8.2 /jsp/ant [root@poorren ~]# vim /etc/profile 在最后加入 ANT_HOME=/jsp/ant [root@poorren ~]# source /etc/profile 通过以上操作,ant就安装成功了。