标签:
在安装使用Tomcat前需安装jdk(Java 2 Software Development Kit),安装jdk可以参考我之前的blog。
安装Tomcat
1)下载apache-tomcat-7.0.59.tar.gz
2)#tar -zxvf apache-tomcat-7.0.59.tar.gz ;//解压
3)#cp -R apache-tomcat-7.0.59 /usr/local/tomcat;//拷贝apache-tomcat-7.0.59到/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
4)测试# ip:8080 出现tomcat的页面说明成功
标签:
原文地址:http://www.cnblogs.com/jiayongchao/p/5328372.html