无法连接到URL"svn:// localhost"的存储库

HJA*_*JAB 2 svn windows

我使用管理员帐户在Windows 7操作系统上安装了Subversion软件包版本1.7

我使用以下命令创建了存储库: svnadmin create "c:\svn_repository"

我修改了svnserve.conf和passwd文件:anon-access = read,auth-access = write,和password-db = passwd

我安装了Subversion作为Windows服务,我使用以下命令启动它:

sc create svnserver binpath= "C:\Program Files (x86)\Subversion\bin\svnserve.exe --service -r c:\svn_repository" DisplayName= "Subversion" depend= tcpip start= auto
Run Code Online (Sandbox Code Playgroud)

我还将变量设置SVN_EDITOR为:set SVN_EDITOR=c:\windows\system32\notepad.exe

我遇到的问题是当我调用以下命令时:

svn mkdir svn://localhost/myproject
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

svn: E200002: Unable to connect to a repository at URL 'svn://localhost'
svn: E200002: C:\svn_repository\conf\svnserve.conf:19: Option expected
Run Code Online (Sandbox Code Playgroud)

Sam*_*zzo 9

检查svnserve.conf中是否为您指定的每个选项在行的开头添加空格(在您的情况下,请检查svnserve.conf的第19行,如果在该行之前有空格,请将其删除)