Ubuntu 16.04.2 LTS installs jdk1.6 and TOMCAT6 (ii)

Source: Internet
Author: User
Tags apache tomcat

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.