1.创建tomcat的安装目录
mkdir tomcat
2.解压tomcat文件
tar -zxvf apache-tomcat-7.0.67.tar.gz
3.配置tomcat的环境变量

vi /etc/profileexport TOMCAT_HOME=/root/tomcat/apache-tomcat-7.0.67
4.立即生效
source /etc/profile
5.启动tomcat
cd bin./startuo.sh
6.启动标志如下
Using CATALINA_BASE: /root/tomcat/apache-tomcat-7.0.67Using CATALINA_HOME: /root/tomcat/apache-tomcat-7.0.67Using CATALINA_TMPDIR: /root/tomcat/apache-tomcat-7.0.67/tempUsing JRE_HOME: /root/web/jdk1.7.0_79Using CLASSPATH: /root/tomcat/apache-tomcat-7.0.67/bin/bootstrap.jar:/root/tomcat/apache-tomcat-7.0.67/bin/tomcat-juli.jarTomcat started.
附录linux的操作
1、.tar 用 tar –xvf 解压2、.gz 用 gzip -d或者gunzip 解压3、.tar.gz和.tgz 用 tar –xzf 解压4、.bz2 用 bzip2 -d或者用bunzip2 解压5、.tar.bz2用tar –xjf 解压6、.Z 用 uncompress 解压7、.tar.Z 用tar –xZf 解压8、.rar 用 unrar e解压9、.zip 用 unzip 解压
至此linux下安装tomcat已经完成,小伙伴们也可以安装试试啦!