标签:
1.下载并解压tomcat6,并改名
cd /usr/local
wget http://apache.fayea.com/tomcat/tomcat-6/v6.0.45/bin/apache-tomcat-6.0.45.tar.gz
tar xf apache-tomcat-6.0.45.tar.gz
mv apache-tomcat-6.0.45.tar.gz tomcat
2.设置环境变量
export TOMCAT_HOME=/usr/local/tomcat
3.启动tomcat
/usr/local/tomcat/bin/startup.sh
4.访问tomcat
http://localhost:8080/
5.关闭tomcat
/usr/local/tomcat/bin/shutdown.sh
标签:
原文地址:http://www.cnblogs.com/zydev/p/5468480.html