• Ubuntu 下搭建SVN服务器


    root@iZ25q0jd99eZ:~# sudo apt-get install subversion
    
    root@iZ25q0jd99eZ:/etc/subversion# mkdir /svn
    root@iZ25q0jd99eZ:/etc/subversion# cd /svn/
    

     创建版本库

    root@iZ25q0jd99eZ:/svn# svnadmin create /svn/sx
    root@iZ25q0jd99eZ:/svn# ls
    sx
    root@iZ25q0jd99eZ:/svn# ll sx
    total 32
    drwxr-xr-x 6 root root 4096 May  9 08:39 ./
    drwxr-xr-x 3 root root 4096 May  9 08:39 ../
    drwxr-xr-x 2 root root 4096 May  9 08:39 conf/
    drwxr-sr-x 6 root root 4096 May  9 08:39 db/
    -r--r--r-- 1 root root    2 May  9 08:39 format
    drwxr-xr-x 2 root root 4096 May  9 08:39 hooks/
    drwxr-xr-x 2 root root 4096 May  9 08:39 locks/
    -rw-r--r-- 1 root root  246 May  9 08:39 README.txt
    
    root@iZ25q0jd99eZ:/svn/sx/conf# pwd
    /svn/sx/conf
    root@iZ25q0jd99eZ:/svn/sx/conf# ls
    authz  hooks-env.tmpl  passwd  svnserve.conf
    
    root@iZ25q0jd99eZ:/svn/sx/conf# vi svnserve.conf 
    [general]

    anon-access = none
    auth-access = write
    password-db = /svn/sx/conf/passwd
    authz-db = /svn/sx/conf/authz
    root@iZ25q0jd99eZ:/svn/sx/conf# vi passwd
    [users]
    # harry = harryssecret
    # sally = sallyssecret
    admin01 = 123456
    user01 = 123
    
    root@iZ25q0jd99eZ:/svn/sx/conf# vi authz
    [groups]
    # harry_and_sally = harry,sally
    # harry_sally_and_joe = harry,sally,&joe
    adminsvn = admin01
    adminuser = user01
    [/]
    @adminsvn = rw
    [/sx]
    @adminuser = rw
    
    root@iZ25q0jd99eZ:/svn/sx/conf# svnserve -d -r /svn/sx
    root@iZ25q0jd99eZ:/svn/sx/conf# ps -ef |grep svn
    root     25443     1  0 08:54 ?        00:00:00 svnserve -d -r /svn/sx
    root     25445 24814  0 08:54 pts/6    00:00:00 grep --color=auto svn
    

     以上是单个版本库:在启动的时候要指定版本库!!!!

    root@iZ25q0jd99eZ:/svn# svnadmin create /svn/test
    root@iZ25q0jd99eZ:/svn# ls /svn/test/
    conf  db  format  hooks  locks  README.txt
    
    root@iZ25q0jd99eZ:/svn/test/conf# vi svnserve.conf
    [general] anon-access = none auth-access = write password-db = /svn/test/conf/passwd authz-db = /svn/test/conf/authz
    root@iZ25q0jd99eZ:/svn/test/conf# vi passwd 
    [users]
    # harry = harryssecret
    # sally = sallyssecret
    admintest01 = 123456
    usertest01 = 123
    
    root@iZ25q0jd99eZ:/svn/test/conf# vi authz
    [groups]
    # harry_and_sally = harry,sally
    # harry_sally_and_joe = harry,sally,&joe
    adminuser = admintest01
    usertest = usertest01
    [/]
    @adminuser = rw
    [/test]
    @usertest = rw
    * =
    
    root@iZ25q0jd99eZ:/svn/test/conf# ps -ef |grep svn
    root     25486     1  0 09:05 ?        00:00:00 svnserve -d -r /svn/sx
    root     25586 24814  0 09:17 pts/6    00:00:00 grep --color=auto svn
    root@iZ25q0jd99eZ:/svn/test/conf# kill -9 25486
    root@iZ25q0jd99eZ:/svn/test/conf# svnserve -d -r /svn
    root@iZ25q0jd99eZ:/svn/test/conf# ps -ef |grep svn
    root     25590     1  0 09:18 ?        00:00:00 svnserve -d -r /svn #如果是多个版本库  不要指定版本库(启动的时候)
    root     25592 24814  0 09:18 pts/6    00:00:00 grep --color=auto svn
    
  • 相关阅读:
    Python练习(二) 4位数四则运算
    Python 练习题之一回文数
    uniapp小程序request请求封装
    uniapp小程序微信一键登录实现过程记录
    Oralce EBS R12 FORM显示配色方案
    PLSQL Developer 连接远程数据库 OCI客户端安装方法
    XFire中Services.xml 配置的一些细节
    Oracle EBS 报表输出字符字段前部"0"被Excel自动去掉问题
    Eclipse Java EE IDE 中使用Tomcat 5X / 6X 的一些问题(配置,发布相关)
    BI Publisher Desktop 安装错误 Template Builder Installer Failed: Unexpected Error
  • 原文地址:https://www.cnblogs.com/bass6/p/5472720.html
Copyright © 2020-2023  润新知