@echo off @echo ##################生成Windows服务################### @echo # # @echo # # sc create SVN binpath= "\"c:\subversion\bin\svnserve.exe\" --service -r c:\svn" displayname= "SVN Service" depend= Tcpip start= auto @echo # # @echo # # @echo ###################生成服务结束##################### @echo. &pause
----------------------------------------------
其它常用命令
1)sc delete SVN //删除刚刚生成的服务
2)svnadmin create c:/svn/projectname //创建一个名称为projectname的版本库
安装上subversion后,需要更改的配置
1)去掉三处注释-C:\svn\orbitdb\conf\svnserve.conf
# anon-access = read
# auth-access = write
### The password-db option controls the location of the password
### database file. Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
# password-db = passwd
2)添加用户--C:\svn\orbitdb\conf\passwd
[users]
# harry = harryssecret
# sally = sallyssecret
zhu=admin888