centos搭建svn服务器

1,安装subversion  : (sudo) yum install subversion

2,创建svn资源目录:mkdir /home/jet/svndata

3,构建svn资源库:svnadmin /home/jet/svndata/project (资源库目录后面设置权限时候用)

4,修改启动svnserve配置:(/home/jet/svndata/project/conf)


#/home/jet/svndata/project/conf/svnserve.conf
[general]

anon-access = read
auth-access = write
password-db = /home/jet/svndata/auth/passwd
authz-db = /home/jet/svndata/auth/authz

realm = project

5,设置访问权限:(/home/jet/svndata/auth目录下

#/home/jet/svndata/auth/passwd
#username=password
[users]
admin = thisisadmin
jet = jet 
netty = netty
java = java
python = python
word = word
excel = excel
ppt = ppt

#/home/jet/svndata/auth/authz
#个人喜欢使用组来管理
[groups]
g_admin=admin,jet
g_code_admin=netty,java,python
g_doc_admin=excel,word,ppt
g_doc_read=netty,java,python



[project:/]
@g_admin=rw


[project:/code]
@g_admin=rw
@g_code_admin=rw
 

[project:/doc]
@g_admin=rw
@g_doc_admin=rw
@g_doc_read=r
6,启动svn服务器: svnserve -d -r /home/jet/svndata

7,客户端使用admin登录 创建code,doc远程文件夹

(此博文是个人记录所用,过于简单,如果给您阅读造成不变请留言交流,谢谢)



你可能感兴趣的:(SVN服务器)