zoukankan      html  css  js  c++  java
  • linux安装svn

    安装环境:Centos 7

    1.安装subverision

    yum -y install subversion

    2.创建代码仓库

    mkdir -p /opt/svn/code
    svnadmin create /opt/svn/code
    ll
    总用量 8
    drwxr-xr-x 3 root root 120 11月  8 19:33 conf
    drwxr-sr-x 6 root root 320 11月  8 19:34 db
    -r--r--r-- 1 root root   2 11月  8 13:06 format
    drwxr-xr-x 2 root root 220 11月  8 13:06 hooks
    drwxr-xr-x 2 root root  80 11月  8 13:06 locks
    -rw-r--r-- 1 root root 229 11月  8 13:06 README.txt
    cd conf
    ll
    总用量 12
    -rw-r--r-- 1 root root 1128 11月  8 19:33 authz#权限控制
    -rw-r--r-- 1 root root  345 11月  8 19:28 passwd#帐号密码
    -rw-r--r-- 1 root root 3077 11月  8 19:30 svnserve.conf#SVN服务配置

    3.配置文件

    passw

    [users]
    harry = password
    #登录用户名 = 登录密码

    authz

    [code:/]
    #[<版本库>:/项目/目录] harry
    = rw #用户名 = 读写【权限】 * = #拒绝其他用户登录

    svnservr.conf

    anon-access = none
    #不允许匿名访问
    auth-access = write
    
    authz-db = authz
    #权限配置文件名称
    
    password-db = passwd
    #密码使用文件名称
    
    realm = this is a test.
    #提示

    4.防火墙配置端口

    firewall-cmd --zone=public --add-port 13690/tcp --permanent
    #添加端口
    firewall-cmd --reload
    #重新加载防火墙配置
    firewall-cmd --list-port
    #查看当前开放端口

    5.启动

    svnserve -d -r /opt/svn --listen-port 13690
    #-d表示守护进程, -r 表示在后台执行,自定义端口--listen-port 

    6.验证

    svn co svn://127.0.0.1:13690/code

    依次输入root密码,harry 用户名及密码。

    7.访问svn

    浏览器输入svn://IP:13690/code

    常见问题:

    1.svn: E200002 的问题

    检查svnserve.conf配置文件前面有空格或换行

    2.svn: E170001的问题

    启动脚本多了一层目录

    svnserve -d -r /opt/svn/code --listen-port 13690
    修改为
    svnserve -d -r /opt/svn --listen-port 13690
  • 相关阅读:
    一个模式的四个基本要素
    【原】基础篇:第一篇,本节主要向大家介绍Ext的最基础的话题
    一些基本的设计模式
    沈老板位置
    977
    设计模式的原则
    hash算法的介绍 【清晰易懂】
    字符编码知识:Unicode、UTF8、ASCII、GB2312等编码之间是如何转换的?
    字符编码知识:Unicode、UTF8、ASCII、GB2312等编码之间是如何转换的?
    vbs生成域账号
  • 原文地址:https://www.cnblogs.com/aongao/p/13945601.html
Copyright © 2011-2022 走看看