C# windows服务部署到服务器上指令
2017-11-20 12:27
120 查看
1.找到服务生成的驱动程序在服务器上的位置,例如“D:\testproject\bin\Debug\Server.exe”
2.新建文本文件,然后改后缀为.bat 编辑内容为 sc create BlueServer binPath= "D:\testproject\bin\Debug\Server.exe"
3.启动bat文件,部署成功后再服务中可以查看服务是否正常并启动
2.新建文本文件,然后改后缀为.bat 编辑内容为 sc create BlueServer binPath= "D:\testproject\bin\Debug\Server.exe"
3.启动bat文件,部署成功后再服务中可以查看服务是否正常并启动
相关文章推荐
- C#开发、部署Windows Services服务
- C# 远程服务器 安装、卸载 Windows 服务,读取远程注册表,关闭杀掉远程进程
- C# 远程服务器 安装、卸载 Windows 服务,读取远程注册表,关闭杀掉远程进程
- c#开发Windows服务程序及部署
- C# Windows服务的开发和部署,调试(运用Timer)
- [转]构建企业服务之windows 2008 CA证书服务器部署
- 构建企业服务之windows 2008 CA证书服务器部署 推荐
- C#开发部署Windows服务示例
- Windows 网络服务架构系列课程详解(二) ----DNS服务器的部署与配置 推荐
- 部署C#服务到win7/Windows server 2008 R2服务器上
- 【JavaService】部署Java jar为Windows后台服务
- .NET C# 实现 Windows 服务的安装及反安装
- 转: 安装C# Windows服务程序
- C#编写Windows服务程序图文教程
- windows 8.1 64位PC,Visual Studio 2013 Ultimate,C# .NET 4.0,环境下编写windows服务,亲测成功!
- C#创建Windows Service(Windows 服务)基础教程
- Windows2012内网更新服务器部署
- C#创建Windows Service(Windows 服务)基础教程
- C#编写Windows服务程序图文教程