zoukankan      html  css  js  c++  java
  • SVN配置常见错误

    1、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就存在前置空格,会导致这个错误。
    要避免出现这个错误,应该在去掉这些行前的#时,也要顺手去掉前面的空格.

    2、Can not connect to host ''IP address" :由于目标机器积极拒绝,无法连接

    多数情况下是因为svnserve.exe没有开启,

    如果你的版本库的目录是在D:SVNPROJ下面,首先需要在cmd中运行svnserve --daemon --root D:SVN

    然后用: svn://localhost/PROJ就可以访问了,注意一定不要关闭cmd,如果关闭了,则svnserve.exe也会被结束

    3、No repository found in 'svn://localhost'或者是'svn://(SVN 服务器的IP地址)'

    一般情况下出错的原因是svn://localhost/访问的路径不对,如上面的例子中,如果cmd中运行svnserve --daemon --root D:SVN,则访问的时候就不能用下面的命令语句

    svn://localhost/SVNNEW/PROJ

    4、提交时提示no authority

    一般需要在版本库下conf目录下,svnserver.conf

    ###anon-access = read
    ###auth-access = write

    ###password-db = passwd

    前面的空格去掉,并且前面绝对不能有空格,否则会出现第一条中出现的错误

    然后在passwd文件中,添加用户名和密码,格式是:用户名=密码

    如:admin=888

  • 相关阅读:
    无法卸载Visual Studio 2005,提示:"H:\vs\vs_setup.msi could not be opened"
    在两个DB的table之间同步数据
    用于标记系统是否需要重启动的注册表键值
    提高性能——存储过程最佳实践 [译自MSDN]
    几个常见的位运算问题
    [存档] 非递归后根遍历二叉树
    [存档] 用真值表设计非递归二叉树遍历算法
    补码
    卸载Google Chrome导致Outlook, Word不能打开超链接
    编程题: 将一个矩阵(二维数组)顺时针旋转90度
  • 原文地址:https://www.cnblogs.com/grimm/p/5109031.html
Copyright © 2011-2022 走看看