Installing Tomcat under Linux

Source: Internet
Author: User

You need to install J2SDK (Java 2 software development Kit) before installing Tomcat, which is the JDK

1. The steps to install the JDK are as follows:

RZ command Installation statement: Yum install-y Lrzsz

1) Download j2sdk, such as jdk-8u31-linux-i586.tar.gz (download:http://java.sun.com/j2se/1.4.2/download.html )

2) in the terminal to the directory where the jdk-8u31-linux-i586.tar.gz, enter the command

chmod 755 jdk-8u31-linux-i586.tar;//Add permission to execute.

Create directory Mkdir/usr/local/java, move to the Java directory, MV Jdk-8u31-linux-i586.tar.gz/usr/local/java

3) Perform the decompression command

TAR-XVF Jdk-8u31-linux-i586.tar;//Generate Jdk1.8.0_31 file.

4) Configure Environment variables

VI /etc/profile

#配置JAVA环境变量

Java_home=/usr/local/java/jdk1.8.0_31

Path= $JAVA _home/bin: $PATH

Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

Export Java_home

Export PATH

Export CLASSPATH

5) Execute command java–version at terminal,

Java Version "1.8.0_31"

Java (TM) SE Runtime Environment (build 1.8.0_31-b13)

Java HotSpot (TM) Client VM (build 25.31-b07, Mixed mode)

has been successfully installed

Tomcat is a free open-source Web server that you can install in Linux:

· 1 , from www.apache.org Download the website Tomcat of the Linux version

· 2 , the file is passed RZ uploaded to Linux in

3, Decompression apache-tomcat-8.0.18.tar.gz

4. Execution of Orders

MV Apache-tomcat-8.0.18/usr/local/tomcat

5. Input command

/usr/local/tomcat/bin/startup.sh;//Start Tomcat

Show

Using catalina_base:/usr/local/tomcat

Using catalina_home:/usr/local/tomcat

Using catalina_tmpdir:/usr/local/tomcat/temp

Using jre_home:/usr/local/java/jdk1.8.0_31

Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar

Tomcat started.


to this Tomcat has been installed, now using the browser to access http://localhost:8080, the Tomcat default page appears, indicating that the installation was successful.

This article is from the "Quiz Big Knowledge" blog, make sure to keep this source http://xdtesting.blog.51cto.com/5296658/1614357

Installing Tomcat 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.