最近硬碟壞道了,沒有過保,HP可給換了塊新的,重裝了x64版的win7,下載Tunnelier的時候意外發現,官網上有Running Tunnelier as a Windows Service條目,之前一直以為只有MyEnTunnel可以註冊成Windows服務,原來通過工具可以將任何程式註冊成服務。文章中提到了三個工具:
srvany(windows Resource Kits中的工具)
FireDaemon 一個比srvany更易用的工具
Non-Sucking Service Manager http://nssm.cc/ 很多人推薦使用這個工具
下面我將介紹如何使用NSSM(Non-Sucking Service Manager)將Tunnelier註冊成服務。
在命令列輸入
1 tunnelier /?
會得到Tunnelier的命令列協助
根據上面的協助,並結合本地環境可以使用如下命令列啟動Tunnelier
1 "C:Program Files (x86)Bitvise TunnelierTunnelier.exe" -loginOnStartup -profile="C:UsersvangieDocumentsgfw.tlp" -hostKeyFile="C:UsersvangieDocumentshostkey.md5"
其中profile可以從Tunnelier中匯出,hostKeyFile可以從Host Key manager中匯出。
接下來下載並解壓NSSM程式,以管理員身份在命令列執行如下命令註冊服務
1 nssm install Tunnelied "C:Program Files (x86)Bitvise TunnelierTunnelier.exe" -loginOnStartup -profile="C:UsersvangieDocumentsgfw.tlp" -hostKeyFile="C:UsersvangieDocumentshostkey.md5"
其中Tunnelied是服務名稱
在運行中鍵入services.msc開啟服務,啟動Tunnelied即可。