首页 > 其他 > 详细

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

时间:2015-10-08 16:40:50      阅读:185      评论:0      收藏:0      [点我收藏+]

刚配置基于svnserve的svn服务器后,在客户端访问svn时出现这个错误:
svnserve.conf:12: Option expected
出现这个问题的原因是svn读取配置文件svnserve.conf时,无法识别有前置空格的配置文件,如

### The authz-db option controls the location of the authorization
### rules for path-based access control.  Unless you specify a path
### starting with a /, the file‘s location is relative to the the
### directory containing this file.  If you don‘t specify an
### authz-db, no path-based access control is done.
### Uncomment the line below to use the default authorization file.
 authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository‘s uuid.

像上面的配置文件中,

 authz-db = authz

是顶行的,没问题,而authz-db = authz就存在前置空格,会导致这个错误。
要避免出现这个错误,应该在去掉这些行前的#时,也要顺手去掉前面的空格。

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

原文:http://my.oschina.net/zchuanzhao/blog/514318

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!