首頁  >  文章  >  後端開發  >  linux中svn配置出錯解決方法

linux中svn配置出錯解決方法

伊谢尔伦
伊谢尔伦原創
2016-11-29 11:07:511052瀏覽

在客戶端存取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
## acc file: URLs, then this file is
### irrelevant.)

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

[general]
### These options control access
[general]
### These options control access
[ repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",

### and "none".  The sample settings below are the defaults.an-acc write


像上面的設定檔中,anon-access是頂行的,沒問題,而auth-access就存在前置空格,會導致這個錯誤。

要避免出現這個錯誤,應該在去掉這些行前的#時,也要順手去掉前面的空格


🎜
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn