在客户端访问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 = readauth-access = write
像上面的配置文件中,anon-access是顶行的,没问题,而auth-access就存在前置空格,会导致这个错误。要避免出现这个错误,应该在去掉这些行前的#时,也要顺手去掉前面的空格
相关文章:
1. Win11笔记本合盖不休眠怎么设置?Win11笔记本合盖继续播放音乐教学2. Linux下运行jar包的方法介绍3. Mac系统中iCloud照片库怎么备份到硬盘? icloud照片导入硬盘的技巧4. Win11提示“为了对电脑进行保护,已经阻止此应用”解决方法5. AIX上克隆rootvg的操作方法 6. Linux系统怎么使用awk命令处理文字数据?7. Win11任务栏点击网络声音图标无反应怎么办?8. Unix 操作系统中处理字符串问题的简单方式9. Win11 22H2 Moment 2更新后将彻底修复文件复制缓慢的问题10. Linux Mint系统输入法怎么删除? Linux Mint删除多余输入法的技巧
