1.下载apache-tomcat-7.0.62.tar.gz
2.解压:tar -zxvf apache-tomcat-7.0.62.tar.gz
3.配置环境变量:
进入安装目录:(/usr/local/apache-tomcat-7.0.62/bin),进入bin目录下:
修改catalina.sh文件
#!/bin/sh
export TOMCAT_HOME=/usr/local/apache-tomcat-7.0.62
export CATALINA_HOME=/usr/local/apache-tomcat-7.0.62
export JAVA_HOME=/usr/java/jdk1.7.0_79
然后执行 source catalina.sh 让配置生效
时间: 2024-10-07 20:22:57