Eclipse Configuration Tomcat

Source: Internet
Author: User

1. Ready tomcat to download the free version from the official website

http://tomcat.apache.org/download-70.cgi

I downloaded a apache-tomcat-8.0.37 myself.

After decompression to get justice

==========================================================================================

2. Configure environment variables (where are the environment variables configured, even if you don't know I won't tell you, Kikikiki. )

First step:--------------------------------------------------------------------------------------------------------------------- ---------------

We need to configure the variable to be named JAVA_HOME,CATALINA_BASE,CATALINA_HOMT, and the variable value is the path they are in.

(without the JDK to go out stand, why do I have to post a configuration JDK here, because Tomcat he said to Ah, and do not add strange symbols behind them ah, add it does not matter to me)

The second step opens the path---------------------------------------------------------------------------------------------------------------- --------------

And then catalina_base them 3 to go in (saying that the reason why not in the, anyway first so match it) (I remember Win7 environment variables before the need to add.; )

================================================================================================

3. After the configuration is complete, you can open

The bin directory of the Startup.bat test will be able to start normally. (if not successful then use your eyes to see what the problem is.) I don't know if I'm back.

After starting, on the page input localhost:8080 try it if a cat appears (why is my 9595, because 8080 is occupied by Oracle)

--------------------------------------------------------------------------------------------------------------- ---------------------------

This 9595 is the original 8080 ah, if you want to use a different port number, you can change here to achieve.

===========================================================================================================

Part III:

Configure Tomcat on eclipse (start with Tomcat above and configure it to eclipse, otherwise it won't be successful)

Window->preferences->server->runtime Environments->add

Then choose a suitable one, I'm under the apache-tomcat-8.0.37, so choose

If you are under 7, then please choose the above good, do not choose AH.

-------------------------------------------------------------------------------------------------

Press Next

Press to finish

It's going to happen.

You can start this thing with a half-day configuration.

If you see this cat again when it means that you have spent so long to finally succeed, if you fail, you see what is wrong, anyway, I do not know where you are not well-equipped

===============================================================================

These bat folders have these things ah, so to configure these strange environment variables, otherwise tomcat how to find ah you have to tell him AH

Eclipse Configuration Tomcat

Related Article

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.