目录
1.在centOS上搭建svn_server
1.查询是否已安装软件包及安装软件包
rpm -qa subversion #查询是否安装
yum -y install subversion #svn服务器有subversion提供
2.查看安装版本
svnserve --version
3.创建SVN版本库目录
mkdir -p /var/svn/
使用单仓库
-
svnadmin create /var/svn/project //创建共享的文件夹 project文件夹自动生成
- 修改配置文件,创建账户与密码
-
[root@gui ~]# vim /var/svn/project/conf/svnserve.conf [general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are "write", "read", ### and "none". The sample settings below are the defaults. anon-access = none #匿名无任何权限 注意去掉空格 auth-access = write #有效账户可写 ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file's location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), this file will NOT be used. ### Uncomment the line below to use the default password file. password-db = passwd #定义密码文件 ### The authz-db option controls the location of the authorization ### rules for path-based access control. Unless you specify a path ### starting with a /, the file's location is relative to the the ### directory containing this file. If you don't specify an ### authz-db, no path-based access control is done. ### Uncomment the line below to use the default authorization file. authz-db = authz #ACL访问控制列表文件 [root@gui ~]# vim /var/svn/project/conf/passwd … …