Build Tomcat services under Linux

Source: Internet
Author: User

from the last section, we know. Tomcat and he has extended it. Java Virtual Machines JDK , let's learn more about it today, and learn to build this Java service. 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0024.gif "alt=" w_0024.gif "/>

I say my view of the service, this service in the actual production of financial companies use more, why? 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0022.gif "alt=" W_0022.gif "/>

Tomcatis aApacheSoftware Foundation (Apache softwarefoundation) ofJakartaa core project in the project, byApache,Sundeveloped together with other companies and individuals. BecauseTomcatadvanced technology, stable performance, and free, so deeplyJavaenthusiasts love and have been recognized by some software developers, become more popularWebApplication Server. TomcatThe server is a free open source codeWebapplication Server, which belongs to the lightweight application server, is widely used in small and medium-sized systems and concurrent access users are not many occasions, is to develop and debugJSPthe preferred program.

JDK Introduction

JDK (javadevelopment Kit)is aSun MicrosystemsforJavaDeveloper's product. JDKis the entireJavathe core, including theJavaOperating Environment (Java runtimeenvirnment), a bunch ofJavaTools andJavabase Class Library(Rt.jar). No matter whatJavaThe application server is essentially a built-in version of theJDK. So MasterJDKis to learnJavathe first step. The most mainstream ofJDKis aSunpublished by the companyJDK, exceptSun, there are many companies and organizations that have developed their ownJDK, from6.0at first, the efficiency of its operation has been greatly improved, especially in desktop applications. JDKitself used theJavalanguage, in the installation package we downloaded, there was aSrc.zip, Inside isJDKthe source code. VersionSE (J2SE), Standardedition,Standard Edition, is a version we usually use, fromJDK 5.0start, renamed toJava SE. ee (Java), enterpsiseedtion,Enterprise Edition, using thisJDKDevelopmentJavaapplications, fromJDK 5.0start, renamed toJava EE. ME (J2ME), Microedtion,mainly used in mobile devices, embedded devicesJavaApplication,fromJDK 5.0start, renamed toJava ME. CompositionJDKThe basic components included are: •Javac–compiler to turn the source program into a byte code ·Jar–Packaging tools to package related class files into one file ·Javadoc–Document Builder, extracting documents from source notes ·Jdb–Debugger, error-checking tool ·Java–Run the compiledJavaProgram (. Classsuffix of)Appletviewer: Small program browser, a kind of executionHTMLon the fileJavaof small ProgramsJavaBrowser. Javah: Generates a call that can be calledJavaprocess ofCprocess, or to establish aJavaProgram calls theCthe header file for the procedure. Jconsole:javaTools for system commissioning and monitoring are commonly used PackageJava.util:This is a system helper class, especially a collection class.Collection,list,mapand so on. Javax.servlet:this isJsp,servletclass to use.

Above we know is good, do not pay attention to, below we come to learn how to build this service.

Deployment method: 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0047.gif "alt=" W_0047.gif "/>

test Environment: A virtual machine system is centos6.6, Software is jdk-7u79-linux-x64.tar.gz , apache-tomcat-7.0.65.tar.gz

Experimental steps: 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0039.gif "alt=" W_0039.gif "/>

1. on-Wear source code package

Jdk-7u79-linux-x64.tar.gz

2. unzip to the appropriate directory

Tar xfjdk-7u79-linux-x64.tar.gz

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7D/41/wKioL1bj3Iawv2u6AABJqCyEgeU366.png "title=" QQ picture 20160312163750.png "alt=" Wkiol1bj3iawv2u6aabjqcyegeu366.png "/>

3. Configuring environment Variables

Vim/etc/profile

Exportjava_home= "/application/jdk1.7.0_79"

Exportpath= "$PATH: $JAVA _home/bin"

Source/etc/profile

4. Check

Java–version

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/43/wKiom1bj3DeCUea4AAB3mkH-DHw888.png "title=" QQ picture 20160312164441.png "alt=" Wkiom1bj3decuea4aab3mkh-dhw888.png "/>

this way, our Java The virtual machine is ready to install. 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0022.gif "alt=" w_0022.gif "/>

installation Tomcat Software

1. upload apache-tomcat-7.0.65.tar.gz

2. unzip Tomcat

Tar xfapache-tomcat-7.0.65.tar.gz

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/41/wKioL1bj3Oax4dsjAAA7ab05zPY228.png "title=" QQ picture 20160312165349.png "alt=" Wkiol1bj3oax4dsjaaa7ab05zpy228.png "/>

4. Start

/application/apache-tomcat-7.0.65/bin/startup.sh

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7D/41/wKioL1bj3QKjPg5eAABe6QxkK-w157.png "title=" QQ picture 20160312165449.png "alt=" Wkiol1bj3qkjpg5eaabe6qxkk-w157.png "/>

4. Browser Login

http://192.168.1.14:8080/

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/43/wKiom1bj3KDxWPYjAAFhMXJoGJo291.png "title=" QQ picture 20160312165714.png "alt=" Wkiom1bj3kdxwpyjaafhmxjogjo291.png "/>

It's so simple, it's not complicated at all, is it? So we can build Tomcat for the Java environment . I'm using a no-install method here, of course, there are other ways, I will not say more here. All you have to do is master one. 650) this.width=650; "src=" Http://img.baidu.com/hi/ldw/w_0014.gif "alt=" w_0014.gif "/>


This article from "Lele Run" blog, please be sure to keep this source http://10851431.blog.51cto.com/10841431/1750279

Build Tomcat services under Linux

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.