Deploying Tomcat to the server in a Windows environment

Source: Internet
Author: User

Only write the main steps, a lot of trivial things are not written up, such as where to set the environment variables, how to open cmd, and so on, everyone should remember.

1. Set in System variables:

Variable name: catalina_home

Variable Value: D:\Program files\tomcat7.0.81 (the home directory where Tomcat is placed)

2. Add the Tomcat Bin directory to the path variable of the system variable (not set)

; D:\Program Files\tomcat\bin

3. Installation of Tomcat Services

Under CMD, the CD enters the Tomcat bin directory, enter Service.bat install, carriage return. Service Installation Complete

4. Go to Tomcat's Bin directory and run Tomcat7w.exe. If the previous Tomcat service registration was unsuccessful, it would be a flash and could not access the program.

After entering, click on Start,tomcat to run up.

5. Enter http://localhost:8080/in the browser if you go to the Tomcat page, the deployment is successful.

With https://you won't be able to access Tomcat, and I don't know why.

The next article summarizes how to publish a war package on Tomcat.

Deploying Tomcat to the server in a Windows environment

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.