scp apache-tomcat-6.0.53.tar.gz asialantao@s2.asialantao.com:/home/asialantao asialantao@s2.asialantao.com's password: apache-tomcat-6.0.53.tar.gz 100% 6944KB 6.8MB/s 00:00
$ tar -zxv -f apache-tomcat-6.0.53.tar.gz apache-tomcat-6.0.53/bin/catalina.sh apache-tomcat-6.0.53/bin/daemon.sh apache-tomcat-6.0.53/bin/digest.sh apache-tomcat-6.0.53/bin/setclasspath.sh apache-tomcat-6.0.53/bin/shutdown.sh apache-tomcat-6.0.53/bin/startup.sh ...
$ cd apache-tomcat-6.0.53/bin
啓動命令html
$ ./startup.sh Using CATALINA_BASE: /home/asialantao/apache-tomcat-6.0.53 Using CATALINA_HOME: /home/asialantao/apache-tomcat-6.0.53 Using CATALINA_TMPDIR: /home/asialantao/apache-tomcat-6.0.53/temp Using JRE_HOME: /usr/local/java/jdk1.6.0_45 Using CLASSPATH: /home/asialantao/apache-tomcat-6.0.53/bin/bootstrap.jar
$ ./shutdown.sh
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
須要返回上一篇配置好jdk 6java
2.5 檢驗apache
$ ./version.sh Using CATALINA_BASE: /home/asialantao/apache-tomcat-6.0.53 Using CATALINA_HOME: /home/asialantao/apache-tomcat-6.0.53 Using CATALINA_TMPDIR: /home/asialantao/apache-tomcat-6.0.53/temp Using JRE_HOME: /usr/local/java/jdk1.6.0_45 Using CLASSPATH: /home/asialantao/apache-tomcat-6.0.53/bin/bootstrap.jar Server version: Apache Tomcat/6.0.53 Server built: Apr 2 2017 07:25:00 UTC Server number: 6.0.53.0 OS Name: Linux OS Version: 4.4.0-83-generic Architecture: amd64 JVM Version: 1.6.0_45-b06 JVM Vendor: Sun Microsystems Inc.
也能夠在瀏覽器訪問8080端口,或者在命令行模式,可使用curlbootstrap
http://localhost:8080