This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12027|Reply: 0

[windows] Windows Server 2008 Add Auto-Startup Program [Turn]

[Copy link]
Posted on 12/13/2018 3:22:41 PM | | |
------------------ set the exe file to self-boot----------------
Just one line of command:

SC create myService binpath= c:\windows\system32\myService .exe start= auto


------------------ set tomcat to self-start------------------

Because the unzipped version of Tomcat does not have a startup item on the Windows service, it needs to be added manually, and then you can set it to boot Tomcat.
1. Installation services

Go to /Tomcat path /bin/ in the command line, execute "service.bat install" :(start-run, type cmd, cd Tomcat path /bin, service.bat install). So far, an Apche Tomcat service has been added to the Windows service

Illustrate:
1. The default service name is set in the service name and display name :service.bat, and different versions are named Tomcat4, Tomcat5, Tomcat6, if you need to customize the service name or the display name of the service, you can modify the SERVICE_NAME or PR_DISPLAYNAME in the service.bat.
2. Impact of firewall: /bin/tomcat6.exe (or tomcat4.exe, tomcat5.exe) will be used as a service program, and if there is a firewall, it needs to be set as allowed as a service.

2. Uninstall the service

Go to /Tomcat path /bin/ in the command line and perform "service.bat remove":

3. Start the Tomcat settings

Start - Control Panel - Admin Tools - Services

Find the apche tomcat right-click property and change manual to automatic




Previous:Causes and solutions for unassigned_shards single-node Elasticsearch
Next:Lin Shu translated 25 anthologies
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com