搭建svn服务器:
- 安装SVN服务器
- 更改配置
- 测试是否成功
svn 是一种简单实用的代码管理软件,它简单优化了代仓库 、多人开发的版本管理器。
使用命令汇总:
目标 | 命令 |
---|---|
yum | yum install subversion |
查看安装位置 | rpm -ql subversion |
创建svn版本库目录 | mkdir -p /code/svn |
创建版本库 | svnadmin create /code/svn |
配置文件
配置svnserve.conf文件的代码,例如:
anon-access = none
auth-access = write
password-db = passwd
realm = tangshen
配置passwd文件的代码,例如:
[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
[groups]
admin = xxxxx
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
# [/foo/bar]
# harry = rw
# &joe = r
# * =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r
[\]
* = rw
配置authz文件的代码,例如:
### 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]
xxxxx = xxxxx
# harry = harryssecret
# sally = sallyssecret