Linux下安装Tomcat 原码tar.gz安装

在安装Tomcat之前需要安装j2sdk(Java 2 Software Development Kit),也就是JDK

1、安装JDK的步骤如下:

见我的博客 http://blog.csdn.net/zhuihunmiling/article/details/8977409

2、安装Tomcat

1)下载apache-tomcat-6.0.10.tar.gz

2)#tar -zxvf apache-tomcat-6.0.10.tar.gz ;//解压

3)#cp -R apache-tomcat-6.0.10 /usr/local/tomcat;//拷贝apache-tomcat-6.0.10到/usr/local/下并重命名为tomcat

启动tomcat之前要配置一下环境变量,

export CATALINA_HOME=/usr/local/tomcat
export CATALINE_BASH=/usr/local/tomcat

4) /usr/local/tomcat/bin/startup.sh; //启动tomcat

/usr/local/tomcat/bin/shutdown.sh  关闭tomcat

你可能感兴趣的:(ubuntu)