將Tunnelier註冊成Windows服務

來源:互聯網
上載者:User

   最近硬碟壞道了,沒有過保,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即可。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.