[版本控制]subversion之svnserver配置陷阱-空格问题
2010-08-09 17:22
344 查看
安装了subversion服务器windows版本后,直接使用svnserver是最方便的选择,其配置文件位于安装时设置的代码目录下conf文件夹下,其中svnserve.conf就是服务器配置文件,看其说明很容易进行配置,但是有一个隐藏的陷阱很容易被忽视(我就是陷在里面浪费了近2个小时的时间)。这个陷阱就是在取消注释或者添加新项目时,行头不能有空格。比如说,配置匿名用户和授权用户的访问权限:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = read
auth-access = write
如果按照上面的写法,那么未授权(匿名)用户可以读代码库但是不能提交代码,但是授权用户就出现访问问题,就是因为“auth-access = write”多加的空格。
所以正确的方法是:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = read
auth-access = write
其他配置文件也是如此。
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = read
auth-access = write
如果按照上面的写法,那么未授权(匿名)用户可以读代码库但是不能提交代码,但是授权用户就出现访问问题,就是因为“auth-access = write”多加的空格。
所以正确的方法是:
[general]
### These options control access to the repository for unauthenticated
### and authenticated users. Valid values are "write", "read",
### and "none". The sample settings below are the defaults.
anon-access = read
auth-access = write
其他配置文件也是如此。
相关文章推荐
- 版本控制之SVN (Subversion, TortoiseSVN, VisualSVN Server Manager, Subclipse)
- 在Zend Studio 8中配置Subversion(SVN)版本控制
- 【游戏开发备注之二】配置Xcode版本控制SVN详细步骤内含部分问题解决方案
- 在Zend Studio 8中配置Subversion(SVN)版本控制
- Apache与Subversion的简单配置(Apache SVN版本控制)
- 配置管理(版本控制)中的佼佼者(SVN)SubVersion 的配置和使用
- 在Zend Studio 8中配置Subversion(SVN)版本控制
- linux架设subversion(svn)版本控制
- 【吐血整理】SVN命令行,Subversion的正确使用姿势,让版本控制更简单~
- linux架设subversion(svn)版本控制
- TortoiseSVN和VisualSVN-Server的配置使用,外网访问SVN版本库
- 【版本控制工具】svn服务器、客户端安装配置及eclipse的svn检出 推荐
- 0001-版本控制工具SVN安装配置
- (水文,内容比较初级,高手勿进)使用SVN版本控制之后常见的一些问题01
- linux架设subversion(svn)版本控制
- linux 内核编译:内核配置原理与常见配置问题的解决方法&&内核版本控制解析
- 【吐血整理】SVN命令行,Subversion的正确使用姿势,让版本控制更简单~
- Subversion和TortoiseSVN构建SVN版本控制
- linux下使用apache+svn+ssl配置安全版本控制服务
- centos下svn版本控制服务器安装及配置