转贴:svnserve作为Windows服务
来源:互联网 发布:怎样做淘宝优惠群 编辑:程序博客网 时间:2024/06/06 01:21
原帖链接:http://hejiantx.blog.163.com/blog/static/6186734201082242135/
如果你的Windows系统是Windows NT (2000, 2003, XP, Vista)的后代,你可以将svnserve作为Windows服务运行,这是比使用--daemon (-d)
选项直接运行守护进程感觉更好。使用守护进程模式,需要打开命令行窗口,输入命令,然后保持命令行窗口不关闭,而作为Windows服务时,在后台运行,可以在启动时自动执行,并且可以使用同其他Windows服务一致的管理界面启动和停止服务。
你需要使用命令行工具SC.EXE定义新的服务,就像inetd的配置行,你必须在Windows启动时指明svnserve的调用:
C:\> sc create svn binpath= "\"E:\Program Files\Subversion\bin\svnserve.exe\" --service -r D:\svn" displayname= "Subversion Server" depend= Tcpip start= auto
需要注意的是由于命令参数后的只能包含一个空格,所以要用引号转义符转义。
一旦定义了服务,就可以使用标准GUI工具(服务管理控制面板)进行停止、启动和查询,或者是通过命令行:
C:\> net stop svnC:\> net start svn
也可以通过删除其定义删除服务:sc delete svn
,只需要确定首先停止服务,SC.EXE有许多子命令和选项,更多信息可以运行sc /?
查看。
0 0
- 转贴:svnserve作为Windows服务
- svnserve配置windows服务
- 注册svnserve为Windows服务
- 将Subversion作为Windows服务
- MongoDB作为windows服务运行
- Tomcat作为windows服务启动
- mongodb作为windows服务安装
- svnserve部署为后台服务
- python 作为windows服务启动以及windows服务前台显示
- python 脚本作为Windows服务启动
- subversion windows服务器作为服务启动
- subversion windows服务器作为服务启动
- java程序作为windows服务运行
- python 脚本作为Windows服务启动
- subversion windows服务器作为服务启动
- Subversion作为windows系统服务自启动
- Quartz.Net 2.0 作为Windows 服务运行
- python 脚本作为Windows服务启动
- 关于EditText的inputType属性
- Oracle WebCenter 介绍
- leetcode Best Time to Buy and Sell Stock II
- [2013山东ACM省赛] Contest Print Server (模拟)
- 答读者问(2):有关研究生论文及实习等问题
- 转贴:svnserve作为Windows服务
- OWASP WebGoat---安全测试学习笔记(五)---缓冲区溢出
- neighbour table overflow 问题解决
- eclipse内存溢出:OutOfMemoryError:Java heap space
- php 字符串函数详解
- 最大子序列和问题
- Head First PHP&MySQL 学习笔记(一)
- 在线代码编辑器
- 如何去除字符串当中的空白字符