Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用svn://localhost/repos 很好。使用svn+ssh://localhost/repos: 找不到存储库_Svn_Ssh_Repository - Fatal编程技术网

使用svn://localhost/repos 很好。使用svn+ssh://localhost/repos: 找不到存储库

使用svn://localhost/repos 很好。使用svn+ssh://localhost/repos: 找不到存储库,svn,ssh,repository,Svn,Ssh,Repository,我正在建立一个svn存储库。 一切都准备好了。 当我键入svn列表时svn://localhost/repos/,它正确地显示了存储库。 当我键入svn list svn时+ssh://localhost/repos,它说svn:在“svn”中找不到存储库+ssh://localhost/repos/ktbdbms" user account and password all correct. 我错过什么了吗 谢谢您需要在svn手册中阅读更多关于使用svn://vs svn+ssh:///的内

我正在建立一个svn存储库。 一切都准备好了。 当我键入svn列表时svn://localhost/repos/,它正确地显示了存储库。 当我键入svn list svn时+ssh://localhost/repos,它说svn:在“svn”中找不到存储库+ssh://localhost/repos/ktbdbms"

user account and password all correct.
我错过什么了吗


谢谢

您需要在svn手册中阅读更多关于使用svn://vs svn+ssh:///的内容。使用svnserve连接到您机器上的localhost相对容易,设置svn+ssh://要复杂一些,需要仔细规划。如果愿意,请阅读本书并进行设置。

svn+ssh使用svnserve。如果您为svnserve执行pgrep,它很可能与-r/path/to/repos一起运行,文件系统上的存储库将是/path/to/repos/ktbdbms

常见的解决方案是将svnserve移动到svnserve.bin并创建名为svnserve的bash脚本,该脚本运行:

#!/bin/bash
svnserve -r /path/to/repos $*

嗨,问题出在URL上。当您使用svn时:当您以deamon$svnserve-daemon-root/svn启动svnserve时,设置存储库的根路径,其中/svn是存储库的根。当您使用svn+ssh时,URL应该是绝对路径,即svn+ssh://localhost/svn/repos. 这就是诀窍。基本上,它与ssh设置无关。我很糟糕:我错误地认为您是在远程服务器上设置的,因此需要使用svn+ssh://来确保足够的安全性。嗯,这是一个redhat linux服务器。我将使用EclipseIDE连接到此服务器,以使用svn+ssn签入/签出代码。一切都是默认的。我不做任何改变。不是系统管理员大师。谢谢你的书