windows下服務程序相關(別人提供的5種封裝使用)
阿新 • • 發佈:2017-06-13
msd ble 如果 rar 代碼 thead 編譯 con nssm
1.
2.1
作者: daodaoliang
版本: V 0.0.1
日期: 2017年11月25日
1. Windows Service
編程實現
在windows平臺下面編寫 服務程序 免不了要去查看微軟的開發者文檔,相關的介紹在這裏, 多了也就不在羅嗦了,如果你嫌棄直接用他們的API
的話,可以使用別人已經封裝好的,比如:
參考代碼 | 連接 |
---|---|
參考代碼001 | https://github.com/magicsih/WindowsService |
參考代碼002 | https://github.com/Olster/windows_service |
參考代碼003 | https://github.com/Kingston1/windows-service |
參考代碼004 | https://github.com/horigome/sylph |
2. 采用第三方封裝的SCP
2.1 nssm
(Non-Sucking Service Manager)
-
編譯或者下載
nssm
下載連接在這裏,一定要註意系統位數的區別,32位和64位;
-
使用方式
http://daodaoliang.com/uncategorized/2017/04/12/windows%E5%AD%A6%E4%B9%A0-2017-04-12-windows%E4%B8%8B%E9%9D%A2%E6%9C%8D%E5%8A%A1%E7%A8%8B%E5%BA%8F%E7%9B%B8%E5%85%B3/
windows下服務程序相關(別人提供的5種封裝使用)