resin 简易配置
下载 resin3.1.2解压缩, 进入resin3.1.2 运行 httpd.exe 启动resin 服务,
访问 http://localhost:8080/
(晕,竟然保存不成功, javaeye 的同学要查查这个bug)
将 resin 注册为 windows 服务
resin-3.1.2>httpd -install -conf conf/resin.conf
在 resin-3.1.2/conf 目录下提供了一些 .conf 配置文件,应该是启动的配置文件
,没细研究,这里使用了 resin.conf 文件
windows 服务可以使用 net 命令来启动和终止,such as :
resin-3.1.2>net start resin
resin-3.1.2>net stop resin
对于其他的 windows 服务也可以使用 net 来启动,关闭。对于含空格的服务名
用 "" 括起来。
>net start "Windows Time"
>net stop "Windows Time"
试了一下服务名不区分大小写。
移除 resin 服务
resin-3.1.2>httpd -remove
可以用不同的配置文件注册多个服务,such as:
resin-3.1.2>httpd -install-as resin_minimal -conf conf/minimal.conf
resin-3.1.2>httpd -install-as resin_resin -conf conf/resin.conf
同样用 net 启动,但是不知道怎么删除这个服务。
httpd -remove 无效,只好用 sc delete 服务名了
>sc delete resin_minimal
页:
[1]