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

上一篇 / 下一篇  2008-09-16 11:00:45 / 个人分类:配置管理

昨天配置基于svnserve的subversion服务器后,51Testing软件测试网;^{*H8v5Un&\'B|5Q
在客户端访问subversion版本库时出现这个错误:51Testing软件测试网hdT k&Nt

1mFK4S;CzJ9w0svnserve.conf:12: Option expected51Testing软件测试网*c:ya'z#Et;L'B7R/n

6Io?l9y4x)]vhD3O0为什么会出现这个错误呢,就是因为subversion读取配置文件svnserve.conf时,无法识别有前置空格的配置文件,如
oF)K)Vk}.g'mp-v0### This file controls the configuration of the svnserve daemon, if you
X9A8^ [$Z(g6B h0### use it to allow access to this repository. (If you only allow
C3UF:N-D-lA.t0### access through http: and/or file: URLs, then this file is
[2L+y ~,V:ffl3l0### irrelevant.)51Testing软件测试网,`4~1@ pN
51Testing软件测试网/T$ak U zh7L
### Visit http://subversion.tigris.org/ for more information.51Testing软件测试网K&\ J*~O5b4Ju

-O ]3QyqhaU$C0[general]
&`'DpS Z$tG0### These options control access to the repository for unauthenticated
R0Uc kRU tM-G*G0### and authenticated users.  Valid values are "write", "read",
tQ juXKe\0### and "none".  The sample settings below are the defaults.
b"Y q g| CZ0anon-access = read
v+Y0YTIB0   auth-access = write51Testing软件测试网)w/Ia-nl1D Du-_d

tZ|aY0像上面的配置文件中,anon-access是顶行的,没问题,而auth-access就存在前置空格,会导致这个错误。
Q2?l:V5I0要避免出现这个错误,应该在去掉这些行前的#时,也要顺手去掉前面的空格

TAG: 配置管理

 

评分:0

我来说两句

日历

« 2024-04-22  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 14402
  • 日志数: 23
  • 建立时间: 2008-08-23
  • 更新时间: 2009-10-18

RSS订阅

Open Toolbar