Subversion安装配置维护,尽在我用Subversion - 我用Subversion编辑团队倾力打造
注意:本文档中心已转移至SVN知识库
注册 | 登陆 RSS 2.0 订阅


svnserve.conf:12: Option expected的问题解决方法

« 上一篇 | 下一篇 »

作者:PCplayer

来自:我用Subversion -  http://www.iUseSVN.com

经常有新手配置基于svnserve的subversion服务器后,
在客户端访问subversion版本库时出现这个错误:

svnserve.conf:12: Option expected

为什么会出现这个错误呢,就是因为subversion读取配置文件svnserve.conf时,无法识别有前置空格的配置文件,如
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository. (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[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

像上面的配置文件中,anon-access是顶行的,没问题,而auth-access就存在前置空格,会导致这个错误。
要避免出现这个错误,应该在去掉这些行前的#时,也要顺手去掉前面的空格,这一点,在郑新星老早的文章《Subversion之路--实现精细的目录访问权限控制》就提到过。

转帖请包含作者等版权信息、并注明来自:我用Subversion - svnserve.conf:12: Option expected的问题解决方法


Tags: svnserve 编辑: pcplayer

« 上一篇 | 下一篇 »

10条记录访客评论

还是论坛上的东东多阿,以后得多来转转

Post by piaofei on 2007, December 10, 2:27 PM 引用此文发表评论 #1

好东西都来分享哦

Post by 岁月无痕 on 2010, July 5, 3:26 PM 引用此文发表评论 #2

en ,hoa不错学习了

Post by wwe on 2010, July 14, 10:25 AM 引用此文发表评论 #3

我过来看看

Post by qvod on 2011, February 15, 7:17 PM 引用此文发表评论 #4

very much

Post by 上海空调回收 on 2011, June 17, 3:05 PM 引用此文发表评论 #5

好办法..

Post by 上海私家侦探 on 2011, July 20, 4:13 PM 引用此文发表评论 #6

嘿嘿,真是不错哦

Post by 电地暖 on 2011, September 19, 2:26 PM 引用此文发表评论 #7

好知识,一定要学习

Post by 兰缪 on 2011, October 21, 11:30 AM 引用此文发表评论 #8

来支持下

Post by 电磁流量计 on 2011, November 7, 10:52 AM 引用此文发表评论 #9

是个学技术的地方

Post by 传奇私服发布网 on 2011, December 24, 12:20 PM 引用此文发表评论 #10


发表评论

评论内容 (必填):