Tomcat joins Windows Services self-boot settings

Source: Internet
Author: User
Tags joins

Based on the Java EE Technology development, can run in Tomcat, WebLogic, WebSphere and other Java application Server, for the general traffic is not very high customers we recommend the use of Tomcat (open source free), In general, the Tomcat service needs to run the batch command to start the service manually. Under the Windows operating system, if you need to turn Tomcat into a service that starts automatically, just follow these steps:
1. Set the java_home in the environment variable
(assuming that our default JDK directory is d:\j2sdk1.4.2_04)
A, go to the Windows desktop, right-select "My Computer"--"Properties"
B, select "Advanced" tab, click "Environment Variables"
C, under "System variables" click New popup "New system variable", variable name input "Java_home", Variable value entered "d:\j2sdk1.4.2_04" click OK.
2. Set Tomcat as a service
(assuming that our default Tomcat directory is D:\Tomcat_oa)
A, click Start-To-run, enter CMD into the DOS console
B, execute the following DOS command (enter the command and press ENTER to execute)
D:
CD Tomcat_oa\bin
Service install name (optional)
The Tomcat service is now installed successfully.
3. Enter system service to start the service and set the service to start automatically
4. Service Removal
The basic operation is the same as 2, and finally the service remove name is executed (optional)

Parameter adjustment based on service mode
Modifying the Catalina.bat file in the Tomcat\bin directory based on the service mode, adjusting the parameters (such as memory) is not working, we can use the following methods (in the case of TOMCAT5):
1. Run cmd and enter the Tomcat bin directory from the console
2. Run tomcat5w//ms// service name , the tray icon appears in the lower right corner of windows
(The service name is the specific Tomcat service)
3, enter the adjustment parameters, save
4. Restart the Tomcat service

Tomcat joins Windows Services self-boot settings

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.