windows下服务程序相关(别人提供的5种封装使用)

作者: 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/
原文地址:https://www.cnblogs.com/findumars/p/7002880.html