Previous record and share the installation configuration of jdk1.6 in Ubuntu 16.04.2 environment, this article begins to install and configure Tomcat 6 2 installation Tomcat http://tomcat.apache.org/download-60.cgi 2.2 The incoming file can be downloaded directly on the Ubunbu, on Mac, and uploaded to the server via SCP.
SCP apache-tomcat-6.0. . tar. gz [email protected]:/home/asialantao[email protected]'s password: apache-tomcat-6.0. . Tar - 6 xx:xx
2.3 Extracting files
$Tar-zxv-f apache-tomcat-6.0. -.Tar. Gzapache-tomcat-6.0. -/bin/catalina.SHApache-tomcat-6.0. -/bin/daemon.SHApache-tomcat-6.0. -/bin/digest.SHApache-tomcat-6.0. -/bin/setclasspath.SHApache-tomcat-6.0. -/bin/shutdown.SHApache-tomcat-6.0. -/bin/startup.SH...
2.4 Start, stop Tomcat 6 into the directory, and then start with startup.sh
$ cd apache-tomcat-6.0. /bin
Start command
$./startup. SH Using catalina_base: /home/asialantao/apache-tomcat-6.0. - Using catalina_home: /home/asialantao/apache-tomcat-6.0. - /home/asialantao/apache-tomcat-6.0. tempusing/jre_home: /usr/local/java/jdk1. 6. 0_45using CLASSPATH: /home/asialantao/apache-tomcat-6.0. /bin/bootstrap.jar
Stop command
$./shutdown. SH
If the environment variable is not configured, the following error message appears
Neither the Java_home nor the jre_home environment variable is definedat least one of these environment variable is needed To run the This program
Need to go back to the previous post configuring JDK 6
2.5 Inspection
$./version.SHUsing catalina_base:/home/asialantao/apache-tomcat-6.0. -Using catalina_home:/home/asialantao/apache-tomcat-6.0. -Using Catalina_tmpdir:/home/asialantao/apache-tomcat-6.0. -/tempusing jre_home:/usr/local/java/jdk1.6. 0_45using CLASSPATH:/home/asialantao/apache-tomcat-6.0. -/bin/bootstrap.jarserver Version:apache Tomcat/6.0. -Server built:apr2 . -: -:xxutcserver Number:6.0.53.0OS Name:linuxos Version:4.4.0- the-GENERICARCHITECTURE:AMD64JVM Version:1.6.0_45-B06JVM Vendor:sun Microsystems Inc.
You can also access port 8080 in the browser, or in command-line mode, you can use Curl
http://localhost:8080
Ubuntu 16.04.2 LTS installs jdk1.6 and TOMCAT6 (ii)