centOS搭建SVN服务器实现权限控制及linux与windows客户端的使用、排错

目录

1.在centOS上搭建svn_server

2.svn启动与发布的简单排错

3.ACL权限控制


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 
    			… …
    			[users]
    			harry = pass            #用户名和密码
    			tom 
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值