- 下载 tomcat 压缩包:apache-tomcat-7.0.59.tar.gz
- 解压:$tar zxvf apache-tomcat-7.0.59.tar.gz
- 复制到:$ sudo cp -R apache-tomcat-7.0.59 /usr/local/tomcat
- 配置 profile:
export TOMCAT_HOME=/usr/local/tomcat
export CATALINA_HOME=/usr/local/tomcat
- 启动:sudo sh startup.sh 或 sudo sh /usr/local/tomcat/startup.sh
- 查看:http://localhost:8080