Linux configuration Global JDK and Tomcat server simple test

Source: Internet
Author: User
Tags tomcat server

Linux Configuration Global JDK


1. Ensure that the Apache-tomcat and JDK files are compressed in the appropriate folder

Note: JDK files must be files adapted to the Linux version

(If you already have the file, you can skip the following 第2-3个 steps)



2. If not, you can create a folder and put it in


makdir+ folder name


3. Extracting files


TAR-XZVF Jdk-7u80-linux-x64.tar.ga
TAR-XZVF apache-tomcat-7.0.79.tar.gz


Extract Results

4. Locate the JDK file path

CD jdk1.7.0_80/

Pwd

Path is:/usr/local/software/jdk1.7.0_80

5. Configuring Profile files

Vi/etc/profile Configuring the global JDK

Follow the

And now the JDK is ready to build.

6. Run tests on the Tomcat server

Next you'll see

It means that your tomcat can run.

But if this happens,

Indicates that your port number is already in use, so the next thing you do is change your port number.

7. Run the Tomcat Test Web project

Test TOMCA can t run up after

Put a test Web project on a Linux server

Remember not to put project source files

Ok

Next, test the Web project on the client through the IP remote access server

Shut down the server when the test is successful and does not need to be re-operated

How to turn off the Tomcat server by typing Ctrl + C for the keyboard

The background of this paper is to build and test the environment when the client connects to the server remotely.

Just a brief introduction

Available for reference

2017-08-12 13:36:55

Linux configuration Global JDK and Tomcat server simple test

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.