1、安装 svn
sudo yum install subversion2 查看版本
svnserve --version输出:
svnserve, version 1.7.14 (r1542130) compiled Apr 11 2018, 02:40:28 Copyright (C) 2013 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ The following repository back-end (FS) modules are available: * fs_base : Module for working with a Berkeley DB repository. * fs_fs : Module for working with a plain file (FSFS) repository. Cyrus SASL authentication is available.、
SVN的默认端口是3690 其实是要设置阿里云服务器 ECS 中实例的“本实例安全组”才行
1、进入ECS控制台:https://ecs.console.aliyun.com/ 2、先找到我们购买的实例,然后在左侧栏找到“网络和安全”—“安全组”,如下图:
点击“配置规则”
3、点击“添加安全组规则”, 添加3690号端口
TortoiseSVN 1.9.3, Build 27038 - 64 Bit
svn://118.xxx.xxx.19/mcu/Atmege32U4_SparkFun_Breakout/
vi /etc/rc.local 打开自启动文件, 文件内容如下
#!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local // 添加下面一行 svnserve -d -r /usr/local/svnRepo/first //保存退出SVN版本库起动方式,现在svnRepo下面有 first、test 两个版本库 1:单版本库起动
svnserve -d -r /usr/local/repos/first多版本库起动
svnserve -d -r /usr/local/repos区别在于起动svn时候的命令中的启动参数-r指定的目录。
以配置 first 版本库为例
vi authz [groups] company = user1,user2 [first:/] //指定版本库跟目录下的权限 @company = rw //company组用户权限为读写 * = r //其他用户只有读权限 //保存退出 vi passwd //设置组中用户的账号和密码 [users] user1 = 123456 user2 = 123456参考: 阿里云centos7搭建svn服务器 https://blog.csdn.net/djx5344/article/details/78598025
