zoukankan      html  css  js  c++  java
  • 阿里云服务器Linux CentOS安装配置(二)yum安装svn

    阿里云服务器Linux CentOS安装配置(二)yum安装svn

    1、secureCRT连接服务器

    2、先创建一个文件夹,用来存放数据

        mkdir /data

    3、yum安装svn

        yum -y install subversion

    4、创建svn版本库

        mkdir /data/svndata  先创建一个文件夹

        svnadmin create /data/svndata/llj  创建版本库

    5、修改svn配置

        cd /data/svndata/llj/conf  进入配置文件目录,ls查看下

        vi passwd  创建svn用户(最下面一行就是我创建的用户名/密码)

    ### This file is an example password file for svnserve.
    ### Its format is similar to that of svnserve.conf. As shown in the
    ### example below it contains one section labelled [users].
    ### The name and password for each user follow, one account per line.
    
    [users]
    # harry = harryssecret
    # sally = sallyssecret
    liaolongjun = abc,123

        vi authz  修改用户权限

    [groups]
    # harry_and_sally = harry,sally
    # harry_sally_and_joe = harry,sally,&joe
    admin = liaolongjun
    
    # [/foo/bar]
    # harry = rw
    # &joe = r
    # * =
    [/]
    admin = rw
    
    # [repository:/baz/fuz]
    # @harry_and_sally = rw
    # * = r
    @admin = rw

        vi svnserve.conf  svn参数配置(注意:前面不能有空格。使用 TortoiseSVN 工具连接时,会告诉你这个问题)

    anon-access = none
    auth-access = write
    password-db = passwd
    authz-db = authz

    6、启动svn

        svnserve -d -r /data/svndata

    7、测试

        本地SVN Checkout

        地址  svn://ip/llj  llj是前面创建的版本库

        输入上面添加的用户名/密码连接。

        连接成功后,随便创建一个文件,提交,测试下。如果没问题,svn成功安装完毕

     8、关闭 SVN

        ps -ef|grep svnserve

        kill 1458(进程号)

    9、SVN 迁移

        导出:

        svnadmin dump /data/svndata/llj > /data/svndata/llj.dump

        导入:

        先创建版本库  svnadmin create /data/svndata/test

        svnadmin load /data/svndata/test < /data/svndata/llj.dump

    10、远程连接 SVN 被拒绝时的处理

        防火墙

        vi /etc/sysconfig/iptables

        添加一行

        -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT

        重新启动防火墙

        /etc/init.d/iptables restart

        查看端口是否放开

        /etc/init.d/iptables status

        需要在阿里云配置安全组,本地才能 checkout

  • 相关阅读:
    light oj 1105 规律
    light oj 1071 dp(吃金币升级版)
    light oj 1084 线性dp
    light oj 1079 01背包
    light oj 1068 数位dp
    light oj 1219 树上贪心
    light oj 1057 状压dp TSP
    light oj 1037 状压dp
    矩阵快速幂3 k*n铺方格
    矩阵快速幂2 3*n铺方格
  • 原文地址:https://www.cnblogs.com/liaolongjun/p/5633130.html
Copyright © 2011-2022 走看看