1.下载tomcat
http://mirrors.cnnic.cn/apache/tomcat/tomcat-7/v7.0.63/bin/apache-tomcat-7.0.63.zip
2.将压缩包上传到/usr/local/src/下面:
Cd /usr/local/src/
3.解压zip包
Unzip apache-tomcat-7.0.73.zip
4.配置catalina.sh文件:
vi catalina.sh
#!/bin/sh
export TOMCAT_HOME=/usr/local/src/apache-tomcat-7.0.73
export CATALINA_HOME=/usr/local/src/apache-tomcat-7.0.73
5.赋予bin文件下的文件:具有执行权限
chmod 777 *.*
6.执行启动命令:
Sh startup.sh
7.验证访问:http://localhost:8080/