步骤1 以root用户登录服务器
步骤2 上传tomcat压缩包到home目录下面
下载tomcat压缩包的svn路径:
步骤3 解压缩apache-tomcat-7.0.55.tar.gz压缩包
tar -zxvf apache-tomcat-7.0.55.tar.gz
生成文件夹apache-tomcat-7.0.55
步骤4 给/home/apache-tomcat-7.0.61/bin下的可执行文件赋予权限
chmod u+x *.sh
步骤 5 启动tomcat
# /home/apache-tomcat-7.0.61/bin # ./startup.sh
Using CATALINA_BASE: /home/apache-tomcat-7.0.61
Using CATALINA_HOME: /home/apache-tomcat-7.0.61
Using CATALINA_TMPDIR: /home/apache-tomcat-7.0.61/temp
Using JRE_HOME: /usr/java/jdk1.7.0_51/jre
Using CLASSPATH: /home/apache-tomcat-7.0.61/bin/bootstrap.jar:/home/apache-tomcat-7.0.61/bin/tomcat-juli.jar
Tomcat started. ---说明tomcat启动成功
步骤 6 停止tomcat
# /home/apache-tomcat-7.0.61/bin # ./shutdown.sh
Using CATALINA_BASE: /home/apache-tomcat-7.0.61
Using CATALINA_HOME: /home/apache-tomcat-7.0.61
Using CATALINA_TMPDIR: /home/apache-tomcat-7.0.61/temp
Using JRE_HOME: /usr/java/jdk1.7.0_51/jre
Using CLASSPATH: /home/apache-tomcat-7.0.61/bin/bootstrap.jar:/home/apache-tomcat-7.0.61/bin/tomcat-juli.jar