MyEclipse Configuring the Tomcat Environment (graphic detail)

Source: Internet
Author: User
Tags tomcat server apache tomcat



First, install the Tomcat server (Windows)

Unzip the Tomcat-windows.zip compressed file into the installation directory

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/8C/18/wKiom1hh1OiwQeVPAABYMsXwHVw734.png-wh_500x0-wm_3 -wmp_4-s_3359520432.png "title=" 2016-12-27_095129.png "style=" Float:none; "alt=" Wkiom1hh1oiwqevpaabymsxwhvw734.png-wh_50 "/>


Open the System environment variable settings (My Computer-----Properties------Advanced System settings------environment variables)

New new system variable Tomcat_home variable value is the TOMCAT installation root directory, as

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8C/15/wKioL1hh1PXB3fv_AABxsVvWwmM904.png-wh_500x0-wm_3 -wmp_4-s_1927757662.png "title=" 2016-12-27_095223.png "style=" Float:none; "alt=" wkiol1hh1pxb3fv_ Aabxsvvwwmm904.png-wh_50 "/>


New new system variable Catalina_home variable value is the same as Tomcat_home value, such as 650) this.width=650; "Src=" http://s4.51cto.com/wyfs02/M02/8C/18/ Wkiom1hh1pbr-g5maab5jjueqbe901.png-wh_500x0-wm_3-wmp_4-s_1985752476.png "title=" 2016-12-27_095254.png "style=" Float:none; "alt=" Wkiom1hh1pbr-g5maab5jjueqbe901.png-wh_50 "/>


Will %tomcat_home%\bin;% Catalina_home%\bin; write in front of the path variable value

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8C/15/wKioL1hh1PfDSJ8qAAB4wuxKaRU220.png-wh_500x0-wm_3 -wmp_4-s_3669381126.png "title=" 2016-12-27_095332.png "style=" Float:none; "alt=" Wkiol1hh1pfdsj8qaab4wuxkaru220.png-wh_50 "/>

Open the CMD console and enter startup, such as:

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/8C/18/wKiom1hh1PryADzwAABkPGBsHI0789.png-wh_500x0-wm_3 -wmp_4-s_3664802952.png "title=" 2016-12-27_095457.png "style=" Float:none; "alt=" Wkiom1hh1pryadzwaabkpgbshi0789.png-wh_50 "/>

The following information is available to complete the Tomcat server installation

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8C/18/wKiom1hh1P_BfZwhAACMoAPF_y8038.png-wh_500x0-wm_3 -wmp_4-s_3220925908.png "title=" 2016-12-27_095535.png "style=" Float:none; "alt=" wkiom1hh1p_bfzwhaacmoapf_ Y8038.png-wh_50 "/>



650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8C/15/wKioL1hh1IXAkQioAABkEJza5cU259.png-wh_500x0-wm_3 -wmp_4-s_2101960690.png "title=" 2016-12-27_092109.png "style=" Float:none; "alt=" Wkiol1hh1ixakqioaabkejza5cu259.png-wh_50 "/>

Ii. Configuring the Tomcat server environment in Myecplice

Open the project new, as

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8C/15/wKioL1hh1GOwF3gXAAOFmn9WWY4222.png-wh_500x0-wm_3 -wmp_4-s_4045446075.png "title=" 2016-12-27_090737.png "style=" Float:none; "alt=" Wkiol1hh1gowf3gxaaofmn9wwy4222.png-wh_50 "/>

Tick "Show All Wizards" and select WEB-----Dynamic Web project on top

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8C/15/wKioL1hh1GnCTpw6AADUK-y4y4k661.png-wh_500x0-wm_3 -wmp_4-s_3955690463.png "title=" 2016-12-27_090857.png "style=" Float:none; "alt=" Wkiol1hh1gnctpw6aaduk-y4y4k661.png-wh_50 "/>

Enter the project name, target runtime Select your Tomcat version, mine is version 7.0, Dynamic WEB module version Select 2.5 version, and then final is good, such as

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8C/18/wKiom1hh1GyiU9ccAAEND7QkB4o958.png-wh_500x0-wm_3 -wmp_4-s_3096605639.png "title=" 2016-12-27_091038.png "style=" Float:none; "alt=" Wkiom1hh1gyiu9ccaaend7qkb4o958.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8C/18/wKiom1hh1Kex9VpdAABqPwZrIKE997.png-wh_500x0-wm_3 -wmp_4-s_2468536497.png "title=" 2016-12-27_093424.png "style=" Float:none; "alt=" Wkiom1hh1kex9vpdaabqpwzrike997.png-wh_50 "/>

Open windows---prefernces, select Runtime Environ in the Search servers search list

and select "ADD", as

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8C/15/wKioL1hh1Hmzljn9AADb1_sca_o770.png-wh_500x0-wm_3 -wmp_4-s_1213877690.png "title=" 2016-12-27_091258.png "style=" Float:none; "alt=" Wkiol1hh1hmzljn9aadb1_sca_ O770.png-wh_50 "/>

Select your Tomcat version and confirm that, as

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8C/15/wKioL1hh1Huzk8VKAABoWBYrl-A568.png-wh_500x0-wm_3 -wmp_4-s_3106569552.png "title=" 2016-12-27_091352.png "style=" Float:none; "alt=" Wkiol1hh1huzk8vkaabowbyrl-a568.png-wh_50 "/>

In the new popup Windows Tomcat Server, in the Tomcat installation directory, select your own tomcat installation root directory, select the workspace default JRE in the JRE selection, and then determine

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8C/18/wKiom1hh1IDzbZktAACaPyTiEO8930.png-wh_500x0-wm_3 -wmp_4-s_3895817573.png "title=" 2016-12-27_091452.png "style=" Float:none; "alt=" Wkiom1hh1idzbzktaacapytieo8930.png-wh_50 "/>

Locate the servers view in MyEclipse, right-click in the space, and select New-----Server, as

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8C/18/wKiom1hh1ILDqP_lAABodLx9v3g851.png-wh_500x0-wm_3 -wmp_4-s_2348477186.png "title=" 2016-12-27_091859.png "style=" Float:none; "alt=" Wkiom1hh1ildqp_ Laabodlx9v3g851.png-wh_50 "/>

Select your Tomcat version service in the Pop-up dialog box, and choose Apache Tomcat v7.0 (my version number 7.0) in Server runtime environment, then next

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/8C/18/wKiom1hh1wHio8fkAABkEJza5cU645.png-wh_500x0-wm_3 -wmp_4-s_3931329993.png "title=" 2016-12-27_092109.png "style=" Float:none; "alt=" Wkiom1hh1whio8fkaabkejza5cu645.png-wh_50 "/>

Add a folder in available to the right

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8C/18/wKiom1hh1wOhT40EAACoZ0bJLl0447.png-wh_500x0-wm_3 -wmp_4-s_2887129833.png "title=" 2016-12-27_092156.png "style=" Float:none; "alt=" Wkiom1hh1woht40eaacoz0bjll0447.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/8C/15/wKioL1hh1I-x17OlAAB-zjwWCmA958.png-wh_500x0-wm_3 -wmp_4-s_935601653.png "title=" 2016-12-27_092607.png "style=" White-space:normal;color:rgb (0,0,238); float:none; " alt= "Wkiol1hh1i-x17olaab-zjwwcma958.png-wh_50"/>

Back to servers Select the Tomcat server you set up, right-click, select Open, configure the Tomcat server configuration

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/8C/15/wKioL1hh1JXCm1kOAADJyaqZ6Sw661.png-wh_500x0-wm_3 -wmp_4-s_1871206573.png "title=" 2016-12-27_092716.png "style=" Float:none; "alt=" Wkiol1hh1jxcm1koaadjyaqz6sw661.png-wh_50 "/>

For example, runtimeenvironment: Select Apache Tomcat v7.0, right deployment setting Select

Use the Tomcat context deployment, and then change the path of the Deploy path (. class file that is used to store the Tomcat Server runtime) to WebApps under the Tomcat root directory for easy lookup

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/8C/18/wKiom1hh1JmxBlIqAAChd-Ky-CQ954.png-wh_500x0-wm_3 -wmp_4-s_2839512209.png "title=" 2016-12-27_093247.png "style=" Float:none; "alt=" Wkiom1hh1jmxbliqaachd-ky-cq954.png-wh_50 "/>

Go back to the Servers view, select the Tomcat server that you previously configured, and then, for example, click the Green button to start the server

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8C/15/wKioL1hh1J7jHM7MAABrhVwn7Ss422.png-wh_500x0-wm_3 -wmp_4-s_3025955947.png "title=" 2016-12-27_093353.png "style=" Float:none; "alt=" Wkiol1hh1j7jhm7maabrhvwn7ss422.png-wh_50 "/>

As shown, and prompt serverstartup in xxxx Ms. For configuration success

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8C/15/wKioL1hh1NjCiZ9OAAB3VFikARw342.png-wh_500x0-wm_3 -wmp_4-s_1092782007.png "title=" 2016-12-27_093845.png "style=" Float:none; "alt=" Wkiol1hh1njciz9oaab3vfikarw342.png-wh_50 "/>

Move the mouse over the project HTML file, then right-click the blank and select Run as-----myeclipse Server Application

A new dialog box is generated

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8C/18/wKiom1hh1NywcSuLAADKjPEQ3jI597.png-wh_500x0-wm_3 -wmp_4-s_2125400499.png "title=" 2016-12-27_093945.png "style=" Float:none; "alt=" Wkiom1hh1nywcsulaadkjpeq3ji597.png-wh_50 "/>

In the New dialog box, select Choose Anexisting Server and then below, select the Tomcat server that you started earlier, and then click OK to

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8C/15/wKioL1hh1OSxEIpfAACr_7jn_DI138.png-wh_500x0-wm_3 -wmp_4-s_992633530.png "title=" 2016-12-27_094055.png "style=" Float:none; "alt=" Wkiol1hh1osxeipfaacr_7jn_ Di138.png-wh_50 "/>

Verify the effect, for example, URL path is http://localhost:8080/project name/web page file name, at this time for formal configuration complete

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8C/18/wKiom1hh1ObATGkPAAA36lrgznU769.png-wh_500x0-wm_3 -wmp_4-s_3423253707.png "title=" 2016-12-27_094125.png "style=" Float:none; "alt=" Wkiom1hh1obatgkpaaa36lrgznu769.png-wh_50 "/>


This article is from the "Flying_world" blog, make sure to keep this source http://flyworld.blog.51cto.com/8231977/1886427

MyEclipse Configuring the Tomcat Environment (graphic detail)

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.