• CentOS 配置


    查看系统版本
    uname -a
    cat /proc/version
    cat /etc/redhat-release

    修改固定ip
    ifconfig (查看网卡信息)
    ip a (查看mac信息)
    vi /etc/sysconfig/network-scripts/ifcfg-eno1

    HWADDR=74:27:EA:F0:04:9A
    IPADDR=10.92.10.117
    GATEWAY=10.92.10.1
    NETMASK=255.255.255.0
    DNS1=10.92.10.1

    svn配置

    yum list subversion
    service svnserve status/start/restart
    //yum -y install subversion
    subversion安装后默认根目录是在/var/svn下,可以通过修改/etc/sysconfig/svnserve配置文件中OPTIONS来改变根目录

    建立版本库
    mkdir -p /var/svn 建立根目录
    svnadmin create /var/svn/myrepo 建立一个版本库.

    添加用户名和密码
    cd /var/svn/myrepo/conf
    先修改passwd文件,按照‘用户名=密码‘
    [users]
    # harry = harryssecret
    # sally = sallyssecret
    在修改authz
    [groups]
    # harry_and_sally = harry,sally
    # harry_sally_and_joe = harry,sally,&joe
    admin=harry,sally

    [myrepo:/]
    @admin=rw

    svnserve.conf配置指定统一的账号密码文件

    anon-access = none
    auth-access = write

    password-db = /xxx/xxx/passwd
    authz-db = /xxx/xxx/authz

    realm = myrepo

    重启
    service svnserve restart

  • 相关阅读:
    spark基础(1)
    Homebrew的使用教程,镜像源的推荐,安装软件的方法
    Scala Trait(特征)
    P5308 [COCI2019] Quiz
    Vjudge contest 425291
    Vjudge contest 424925
    AT3558 Modern Painting
    Vjudge contest 425061
    Vjudge contest 423849
    Codeforces Round 704
  • 原文地址:https://www.cnblogs.com/sanmubai/p/10130519.html
Copyright © 2020-2023  润新知