linux - 轻松搭建svn服务器

搭建svn服务器:

  • 安装SVN服务器
  • 更改配置
  • 测试是否成功

svn 是一种简单实用的代码管理软件,它简单优化了代仓库 、多人开发的版本管理器。

使用命令汇总:

目标命令
yumyum 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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

stark张宇

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值