分享

jetty.exe

 instl 2015-12-01

jetty.exe

Jetty is the servlet container / Web server lightweight that has been developed in 100% Java. Derived version of Jetty, which was to work as a service in the Windows environment is jetty.exe is. Official site of the jetty is http://www./jetty/ .

Boot program start.jar is included standard with Jetty. Instead of start.jar Jetty.Exe You can then be used to, to run as a Windows service Jetty easily. Also, jetty.exe You can also run as a console process of normal as well as start.jar not only as a service.


Download

jetty.exe only
x86 x64

It is a form of distribution only jetty.exe. I will conform to the Jetty 9.2.10. binary x86 (32-bit), the x64 (64-bit) both have been included. Please use in addition to the Jetty existing directory.

 
jetty.exe + Jetty 9.2.10
x86

It is distributed in the form jetty.exe, was bundled with Jetty 9.2.10. is the x86 (32-bit) version. If environment where Java is installed, you can move the Jetty this alone.

jetty.exe + Jetty 9.2.10 + JRE
x86

It is distributed in the form jetty.exe, bundled with (JRE 8u40) Java execution environment and Jetty 9.2.10. is the x86 (32-bit) version. Even in environments that are not installed Java, you can move the Jetty.

jetty.exe + Jetty 9.2.10
x64

It is distributed in the form jetty.exe, was bundled with Jetty 9.2.10. is the x64 (64-bit) version. If environment where Java is installed, you can move the Jetty this alone.

jetty.exe + Jetty 9.2.10 + JRE
x64

It is distributed in the form jetty.exe, bundled with (JRE 8u40) Java execution environment and Jetty 9.2.10. is the x64 (64-bit) version. Even in environments that are not installed Java, you can move the Jetty.


How to use

jetty.exe installing is very easy. jetty.exe by downloading, please copy (where start.jar is put) installation directory of the Jetty. Jetty is in the following description C:\jetty It is assumed that it is deployed to. If the directory has deployed Jetty is different, as appropriate, Please replace.

Run as a console process

First jetty.exe Let's try to run as a console a normal process in order to confirm that to work properly. Enter the following command and navigate to the directory where you have installed the Jetty.


				C:\jetty>jetty.exe
			

You can start the Jetty in this. You can be sure that the Jetty is running by accessing the http://localhost:8080/ if remains standard configuration. When you want to stop the jetty Ctrl + C and then enter the.

Install as a service

Enter the following command to install as a service.


				C:\jetty>jetty.exe -install
				jetty service installed.
			

Installation of the service is now complete. [Control Panel] -> [Administrative Tools] -> [Services], jetty service named appears. The default installation, logon service (running account) local system account to startup type is automatic will be. You can also install the service in different configurations by specifying the service configuration options. Please refer to the service configuration options for more information.

Start service

You have installed jetty and enter the following command to start the service.


				C:\>net start jetty
				jetty service was started successfully.
			
Stop service

Enter the following command to stop the service.


				C:\>net stop jetty
				jetty service is stopping.
				The jetty service was stopped successfully
			

net stopコマンドを使う方法の他に[コントロール パネル] - [管理ツール] - [サービス]からjettyを選択して停止することもできます。

Uninstall service

Enter the following command to uninstall the service.


				C:\jetty>jetty.exe -remove
				jetty service was removed.
			

Service configuration options

During installation

Service configuration options during installation, Jetty.Exe allows you to specify when you install as a service. The service configuration options during installation -install must be specified before than. -install argument that you specify later than is passed as an argument when running the service.

For example, the startup type manually do the following:

C:\>jetty.exe -m -install
Service configuration options Description
-install I installed as a service. The other configuration options, always -install Please specify before than.
-n <display-name> I will specify the display name of the service. Service display name of the default jetty .
-i I will allow the service to interact with the desktop.
-m The startup type manually I want to. If you do not specify this option, the startup type is automatic will be.
-d <dependencies> I will specify the service dependencies. For example, if the service is in need of EventLog service, -d EventLog will be dependent on the EventLog service as. If you want to depend on multiple services, the service name semicolon (;) are separated by.
-u <username> I will specify the execution of the service account. As a built-in system account, in addition to the regular user account NT AUTHORITY\System, NT AUTHORITY\LocalService, NT AUTHORITY\NetworkService I can be specified.
-p <password> I specify the password for the service account run. If you want to use the built-in system account, you do not need to specify a password.
-s After you install the service, and then start the service immediately.
Uninstall

Service configuration option during the uninstall is, jetty allows you to specify when you uninstall the service. The service configuration option during the uninstall -remove must be specified before than.

Do the following: If you want to uninstall and stop the service.

C:\>jetty.exe -s -remove
Service configuration options Description
-remove I will uninstall the service. Other configuration options is always -remove Please specify before than.
-s Before you uninstall the service, stop the service.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多