防城港市红豆网,大澳渔村,打折网
使用.net framework的工具installutil.exe。
c:\windows\microsoft.net\framework\v4.0.30319\installutil.exe myserver1.exe
net start myserver1
c:\windows\microsoft.net\framework\v4.0.30319\installutil.exe /u myserver1.exe
一、注意点
安装和卸载必须针对同一个exe,否则会出现卸载失败,所以服务的部署方式要遵循:卸载服务 -> 拷贝覆盖服务相关文件 -> 注册服务
二、借助bat脚本一键执行
c:\windows\microsoft.net\framework\v4.0.30319\installutil.exe "%~dp0myserver1.exe" pause
%~dp0就指向了当前bat同级目录,myserver1.exe是需要安装的服务程序。
c:\windows\microsoft.net\framework\v4.0.30319\installutil.exe /u "%~dp0myserver1.exe" pause
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Blazor server side 自家的一些开源的, 实用型项目的进度之 CEF客户端
.NET IoC模式依赖反转(DIP)、控制反转(Ioc)、依赖注入(DI)
vue+.netcore可支持业务代码扩展的开发框架 VOL.Vue 2.0版本发布
网友评论