介绍下一款vue.js实现的基于core2.1 quartz.net调度框架,独立部署不依赖数据库,只须要实现不一样业务接口,配置调度时间便可html
github:https://github.com/cq-panda/Quartz.NetUIvue
注意事项:git
若是部署在iis下,须要实现对home/index间隔时间进行激活,不然quartz将中止调度github
若是使用dotnet Quartz.NET.Web.dll(quartz不会中止调度),须要考虑重启电脑后从新启动数据库
因此:windows
部署在windowsservice下二者都解决框架
这引用了http://www.javashuo.com/article/p-ypfnagfg-em.html将项目打包后使用nssm部署到windowsservice工具
在visual studio code终端中输入dotnet tool install --global dotnet-warp安装测试
提示:.net
可以使用如下命令调用工具: dotnet-warp
已成功安装工具“dotnet-warp”(版本“1.0.9”)。
安装成功
切换到须要发布打包的.csproj目录,不然会提示:No .csproj or .fsproj file found.
输入:dotnet-warp打包,按.csproj文件名打包生成.exe文件在.csproj目录下
启动exe测试是否ok
提示如下,通常为端口被占用,尝试换项目端口,或使用netstat -na检查端口占用:
成功提示为:
使用nssm部署windowsservice
将打包好的exe文件+配置+页面(view、wwwroot)及下载的nssm放在部署目录中
cmd切换到此目录
执行nssm install调出安装界面:
在path选择exe文件
在service name输入安装的windowsservice 名称
点install service后,将服务start
访问:http://*9950
固然不使用dotnet-warp打包exe也能够使用nssm部署到windowsservice,详见Emrys分享的使用NSSM把.Net Core部署至 Windows 服务