Mac下搭建svn服务器教程(终端与Xcode)

更新时间:2023-05-23 13:58:06 阅读: 评论:0

Mac下搭建svn服务器教程(终端与
Xcode的使用)
本文档在前人成果的基础上,经过自己测试之后完成,感谢前人的努力。(本文用终端命令来完成)
文档中urnamemac机的用户名称
1、 若你的机器是首次进行svn的搭建创建svn目录。
在终端中输入:mkdir /Urs/urname/svn 回车(若有提示,很有可能你的电脑已经存在了svn文件夹,若你不使用,可将其删除再重新运行上面命令)
2、 创建svn repository
在终端中输入:svnadmin create /Urs/urname/svn/repository
3、 查看svn repository下的文件(有利于你理解svn)终端中输入:ls /Urs/urname/svn/
repository/ 下面六个文件(  db  hooks  conf  format  locks)
4、 配置svn用户权限.
1.在终端中输入:ls  /Urs/urname/svn/repository/conf 目录下有三个文件:authz  passwd  f
在终端中输入:vi authz,进入后按下i来修改文件:修改按下边来进行:
### This file is an example authorization file for svnrve.
童话般的爱情### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each ction defines authorizations for the path and
### (optional) repository specified by the ction name.
### The authorizations follow. An authorization line can refer to:
###  - a single ur,
###  - a group of urs defined in a special [groups] ction,
###  - an alias defined in a special [alias] ction,
###  - all authenticated urs, using the '$authenticated' token,
###  - only anonymous urs, using the '$anonymous' token,
###  - anyone, using the '*' wildcard.
###
### A match can be inverted by prefixing the rule with '~'. Rules can
### grant read ('r') access, read-write ('rw') access, or no access
部队召回### ('').
[alias]沈小明
# joe = /C=XZ/ST=Desrt/L=Snake City/O=Snake Oil, Ltd./OU=Rearch Institute/CN=Joe Average
大腹皮的功效与作用[groups]
# harry_sally_and_joe = harry,sally,&joe
[/]
#harry=123456
# &joe = r
# * =
# [repository:/baz/fuz]
七字结婚对联精选# @harry_and_sally = rw
# * = r
将红色部分作如下修改:红色部分#harry_sally_and_joe=harry,sally,&joe 这里添加为urname1_urname2_……_and_urnamen=urname1,urname2,……,&urnamen,这里看你想要多少人使用你的svn在此处就添加几个名字,一定按格式填写。
在#harry=123456部分添加urname1=urpassword,urname2=urpassword (我猜是)当然按照提示还可以有其他的配置格式比如#*=password(我想应该是所有人的密码都设为同一个的做法)。记住这些用户名和密码下一步有用。
按下esc,输入:wq按回车保存并退出。
2.passwd 还在当前目录下,在终端中输入vi passwd按照如下配置
### This file is an example password file for svnrve.
### Its format is similar to that f. As shown in the
### example below it contains one ction labelled [urs].
### The name and password for each ur follow, one account per line.
[urs]
urname1 = urpassword
# sally = sallyscret
输入用户名和password(就是刚才记住的那些)完了之后保存退出。
土字旁的字有哪些字f 还在当前目录下,终端输入f来配置服务器
### This file controls the configuration of the svnrve daemon, if you
### u it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)
### Visit / for more information.
[general]
### The options control access to the repository for unauthenticated
### and authenticated urs.  Valid values are "write", "read",
### and "none".  The sample ttings below are the defaults.
anon-access = read
auth-access = write
### The password-db option controls the location of the password
### databa 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 (e below), this file will NOT be ud.
### Uncomment the line below to u the default password file.
password-db = passwd
### The authz-db option controls the location of the authorization
### rules for path-bad 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-bad access control is done.
最简单鸡蛋汤
### Uncomment the line below to u the default authorization file.
authz-db = authz
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password databa, and vice versa.  The default realm百合汤
### is repository's uuid.
# realm = My First Repository
[sasl]
### This option specifies whether you want to u the Cyrus SASL
### library for authentication. Default is fal.
### This ction will be ignored if svnrve is not built with Cyrus
### SASL support; to check, run 'svnrve --version' and look for a line
### reading 'Cyrus SASL authentication is available.'
# u-sasl = true
### The options specify the desired strength of the curity layer

本文发布于:2023-05-23 13:58:06,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/925141.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:终端   密码   修改   输入   配置   前人   格式   完成
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图