Linux服务器安装svn

  

安装snv命令:


    yum -y install subversion


查看是否安装成功:


    yum list installed


 建立版本库目录,建立好的版本库目录与安装目录不在同级目录下,如果没有这个路径,那么你就去创建它:


    mkdir –p /opt/svndata/repos


建立svn版本库,和上边的的库对应,如果没有这个路径,那么你就去创建它,再建svn库:


    svnadmin create /opt/svndata/repos   建立后进入文件夹里面有 conf db format hooks locks README.txt文件夹 就成功啦


修改版本库的配置文件:


    vi /opt/svndata/repos/conf/svnserve.conf

删除#号与代码之间的空格:
[general]

anon-access = none

auth-access = write  

password -db = password

authz-db = /opt/svndata/repos/conf/authz   

realm = /opt/svndata/repos   

配置完成,接下来该启动svn喽:
    
    [root@MyServer /]# svnserve -d -r /opt/svndata/repos


查看是否启动:

    [root@MyServer /]# ps -ef|grep svnserve
    root      9385  8374  0 19:51 pts/5    00:00:00 vi /opt/svndata/repos/conf/svnserve.conf
    root      9625     1  0 19:56 ?        00:00:00 svnserve -d -r /opt/svndata/repos
    root      9781  8374  0 19:59 pts/5    00:00:00 grep svnserve

要想重启就要先杀死进程:


    [root@MyServer /]# kill -9 9625


查看:


    [root@MyServer /]# ps -ef|grep svnserve
    root      9385  8374  0 19:51 pts/5    00:00:00 vi /opt/svndata/repos/conf/svnserve.conf
    root     10187  8374  0 20:08 pts/5    00:00:00 grep svnserve

重启svn:

  [root@MyServer /]# svnserve -d -r /opt/svndata/repos

自我感觉,很陋
   

原文地址:https://www.cnblogs.com/lianghongrui/p/6959057.html