解决安装svn后出现Unable to connect to a repository at URL以及"认证失败"
来源:互联网 发布:java crc16校验算法 编辑:程序博客网 时间:2024/05/02 01:15
首先在ubuntu下安装了svn :(ubuntu安装在虚拟机中)
sudo apt-get install subversion
然后创建了一个库:
mkdir /home/lyh/svncd /home/lyh/svnmkdir storesvnadmin create store
进入store目录下的conf目录
cd store/conf
然后编辑passwd文件:
[users]#harry = harryssecret#sally = sallyssecretalyh = pass
增加了一个用户lyh 密码为:pass
然后配置 svnserve.conf 文件
anon-access = noneauth-access = writepassword-db = passwdauthz-db = authz
然后又在authz配置了:
[groups]#harry_and_sally = harry,sally#harry_sally_and_joe = harry,sally,&joelyh = lyh新建了一个用户组,有一个lyh的用户
然后启动svn服务:
svnserver -d -r /home/lyh/svn/store
在window中通过tortoiseSVN上传一个目录:
结果没有弹出输入用户名和密码的对话框就直接显示:
解决没有弹出输入对话框,打开tortoiseSVN的设置,点击saveddata,点击clear,清除掉里面所有的选项:
如果弹出输入用户名和密码的对话框还是显示这个界面,首先看错误提示,连接不了svn,所以去看看是否配置好了库:
编辑authz文件:
[repository:/baz/fuz/store]#@harry_and_sally = rw@lyh = rw去掉前面的注释,并添加库store
重启svn,首先介绍svn进程
ps -A | grep "svn"
然后:
kill <进程号>
重启服务:
svnserver -d -r /home/lyh/svn/store
然后再执行一次import,Unable to connect to a repository at URL错误提示没有了,但显示:
此时我们再次编辑svnserve.conf 文件:
anon-access = noneauth-access = writepassword-db = passwd#authz-db = authz注释掉 authz-db,然后重启svn,再次import,输入用户名和密码:
问题到此解决
参考地址:
http://www.cnblogs.com/wuhou/archive/2008/09/30/1302471.html
http://blog.csdn.net/zm2714/article/details/8334106
0 0
- 解决安装svn后出现Unable to connect to a repository at URL以及"认证失败"
- SVN Unable to connect to a repository at URL
- SVN Unable to connect to a repository at URL
- svn: E175002: Unable to connect to a repository at URL
- svn Unable to connect to a repository at URL
- svn: Unable to connect to a repository at URL eclipse
- svn: E160043: Unable to connect to a repository at URL
- SVN Unable to connect to a repository at URL问题解决
- SVN E170001:unable to connect to a repository at url
- SVN Unable to connect to a repository at URL
- SVN Unable to connect to a repository at URL
- SVN Unable to connect to a repository at URL
- SVN Unable to connect to a repository at URL
- SVN Unable to connect to a repository at URL问题解决
- SVN Unable to connect to a repository at URL
- SVN Unable to connect to a repository at URL
- SVN Unable to connect to a repository at URL
- SVN Unable to connect to a repository at URL
- super和this关键字
- 1002 A + B Problem II
- 项目-V0.0.1
- 如何给线程发送消息
- iOS: 在代码中使用Autolayout (1) – 按比例缩放和优先级
- 解决安装svn后出现Unable to connect to a repository at URL以及"认证失败"
- Triangle
- 机器学习(machine learning)的江湖大家
- oracle字段拼接
- hadoop1.1.2集群动态添加datanode节点
- #pragma pack(1) 的意义是什么
- ASP.NET动态网站开发培训-35.互动论坛制作(三、完善主题列表页面)
- Boost智能指针——weak_ptr
- 无法打开网站 web服务器上似乎未安装frontpage服务器扩展