resin 簡易配置

下載 resin3.1.2

解壓縮, 進入resin3.1.2 運行 httpd.exe 啓動resin 服務,
訪問 http://localhost:8080/

(暈,竟然保存不成功, javaeye 的同學要查查這個bug)
[b]將 resin 註冊爲 windows 服務[/b]

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"

試了一下服務名不區分大小寫。

[b]移除 resin 服務[/b]


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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章