文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>客户端访问subversion版本库时出现错误

客户端访问subversion版本库时出现错误

时间:2010-08-12  来源:pk-feiyang

经常有新手配置基于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就存在前置空格,会导致这个错误。

Error: Authorization failed 问题如何处理

主要是倒数第六行的注释是否去掉了,即:
[b][color=red]authz-db = authz[/color][/b]
### 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.
# realm = My First Repository

如果你已经去掉了(# )注释,那么问题就在authz文件里的权限配置不当,如果你访问的版本库的路径是: svn://localhost/[b]A[/b]

同时你想在CheckOut的时候,登录正常的情况下,出现你说的问题时,就请确认一下你的authz文件里是否有这么一行配置:

[b][A:/][/b]
[b]你的用户名(或者: @你所属的Group名) = rw(是r还是rw由你自己定)[/b]
[b]* = r(这句的意思是除了上一行所说的用户,其他的用户都只能读svn://localhost/A这个路径下的文件;当然这一句也可以不写)[/b]

如果我说的不够明白,那么可否把authz这个文件的内容贴出来让大家看看,因为我认为问题就出在你的authz文件里了


相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载