Tomcat Service setup under Linux

Source: Internet
Author: User

First, Prepare:

1, Linux Server one (CentOS6.5 64-bit operating system)

2, Tomcat software (can download http://apache.dataguru.cn/tomcat/tomcat-7/v7.0.64/bin/apache-tomcat-7.0.64.tar.gz on the website)

3, JDK (also available on the official website download http://www.oracle.com/)

[The software is downloaded to the/usr/local/src/directory]

Second, installation steps:

1. Install the JDK (install the JDK before you install Tomcat or you will not be able to run)

Tar zxvfjdk-8u60-linux-x64.tar.gz

MV jdk1.8.0_60/usr/local/

Setting environment variables

Vim/etc/profile.d/java.sh Write the content:


Java_home=/usr/local/jdk1.8.0_60

java_bin= $JAVA _home/bin

Jre_home= $JAVA _home/jre

Path= $PATH: $JAVA _bin: $JRE _home/bin

Classpath= $JAVA _home/lib: $JRE _home/lib: $JRE _home/lib/charsets.jar


Source/etc/profile.d/java.sh can take effect

Java-version to verify success


2. Install Tomcat

Unzip the downloaded Tomcat software archive package

Tar zxvf apache-tomcat-7.0.64.tar.gz

Move to/usr/local/:

MV apache-tomcat-7.0.64/usr/local/


Start Tomcat: Execute the following command

/usr/local/apache-tomcat-7.0.64/bin/startup.sh


You can see the Tomcat page by entering http://ip:8080/in the browser address bar


This article is from the "10484588" blog, please be sure to keep this source http://10494588.blog.51cto.com/10484588/1725895

Tomcat Service setup 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.