Jetty 的Windows服务包装器
入门向导安装服务
注:Jetty-Service.exe在<jetty-root>/bin目录。
Jetty-Service.exe --install jetty-service.conf
或者
Jetty-Service.exe -i jetty-service.conf
启动服务
Jetty-Service.exe --start jetty-service.conf
或
Jetty-Service.exe -t jetty-service.conf
停止服务
Jetty-Service.exe --stop jetty-service.conf
或
Jetty-Service.exe -p jetty-service.conf
移出服务
Jetty-Service.exe --remove jetty-service.conf
或者
Jetty-Service.exe -r jetty-service.conf
配置包装器
设置jetty的XML配置文件
可修改jetty-service.conf文件
修改下面的参数,能修改默认的jetty配置文件。
...
wrapper.app.parameter.1=../etc/jetty.xml
...
to any jetty xml configuration of your choice
例如:
...
wrapper.app.parameter.1=../etc/jetty-ajp.xml
...
你也可以设置多个配置文件,仅仅需要添加一行而已,参照如下模式:
格式
wrapper.app.parameter.<parameter number>=<jetty xml configuration path>
例如:
...
wrapper.app.parameter.1=../etc/jetty.xml
wrapper.app.parameter.2=../etc/jetty-plus.xml
wrapper.app.parameter.3=../etc/jetty-ajp.xml
转自:http://bbs.163jsp.com/posts/list/443.html
页:
[1]