Linux记录-SVN部署

1.svn部署

yum -y install subversion

svnserve --version 查看版本

mkdir -p /usr/app/svn

svnadmin create /usr/app/svn/hmanager

cd /usr/app/svn/hmanager/conf

authz文件是权限控制文件
passwd是帐号密码文件
svnserve.conf SVN服务配置文件

vim passwd
[users]
# harry = harryssecret
# sally = sallyssecret
xf = xf123456
us = us123456

vim authz
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
admin = xf
user = us
[/]
@admin = rw
@user = r
意思是版本库的根目录dan对其有读写权限,w只有读权限。

vim svnserve.conf
打开下面的几个注释:
anon-access = read #匿名用户可读
auth-access = write #授权用户可写
password-db = passwd #使用哪个文件作为账号文件
authz-db = authz #使用哪个文件作为权限文件
realm = /usr/app/svn/hmanager # 认证空间名,版本库所在目录

svnserve -d -r /usr/app/svn/hmanager # svn端口默认是3690

客户端访问:svn://192.168.66.128/hamanager

linux下访问

svn ls svn://192.168.66.128/hmanager --username=xf --password=xf123456

 

猜你喜欢

转载自www.cnblogs.com/xinfang520/p/11086814.html
今日推荐