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
  • 相关阅读:
    交换机工作原理
    MyBatis框架的使用及源码分析(一) 配置与使用
    MySQL5.6安装步骤
    mysql创建用户,并授权
    命令行访问远程mysql数据库
    [mybatis] mybatis错误:Invalid bound statement (not found)
    【大数据】每秒十万笔交易的数据架构解读
    【mybaits】Mybatis中模糊查询的各种写法
    【redis】 linux 下redis 集群环境搭建
    [linux] linux下编译安装zlib
  • 原文地址:https://www.cnblogs.com/aongao/p/13945601.html
Copyright © 2011-2022 走看看