Install jetty as a Windows NT Service

Source: Internet
Author: User
Introduction

Win32 wrapper makes it possible for Jetty to run as a Windows NT Service.
Win32wrapper uses Java service wrapper, see http://wrapper.tanukisoftware.org

Install it as a service (in your /Bin)
Jetty-Service.exe -- install jetty-service.conf
Or
Jetty-Service.exe I jetty-service.conf
Start Jetty (in your /Bin)
Jetty-Service.exe-start jetty-service.conf
Or
Jetty-Service.exe-T jetty-service.conf

Stop jetty as a service

(IN YOUR /Bin)
Jetty-Service.exe -- stop jetty-service.conf
Or
Jetty-Service.exe-P jetty-service.conf

Delete service Jetty (in your /Bin)
Jetty-Service.exe -- remove jetty-service.conf
Or
Jetty-Service.exe-r jetty-service.conf

Note: The actual application jetty-service.exe must be executed as a system administrator; otherwise, it will fail. In Vista, installation fails even as a system administrator. The 'openscmanager failed' error is displayed '. The solution to this file is as follows. This will open a command window with the administrator privilege.

Start | all programs | attachment, right-click "command prompt", and select "Run as System Administrator ". Configure jetty Service

By editing /Bin path under the jetty-service.conf file:

...
Wrapper. App. parameter.1 = ../etc/Jetty. xml
...

You can select other jetty xml configuration files.

For example:

...
Wrapper. App. parameter.1 = ../etc/jetty-ajp.xml
...

You can also specify multiple configuration files in the following format:

Wrapper. App. Parameter. <parameter number >=< jetty xml configuration path>

For example:

...
Wrapper. App. parameter.1 = ../etc/Jetty. xml
Wrapper. App. parameter.2 = ../etc/jetty-plus.xml
Wrapper. App. parameter.3 = ../etc/jetty-ajp.xml
...

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.