`

mac配置svn服务器

    博客分类:
  • SVN
 
阅读更多
mac自带了svn服务端和客户端,所以只需要简单配置一下就可以使用
1、创建svn repository
svnadmin create /path/to/svn/repository


2、配置svn用户权限/path/to/svn/repository/conf/目录下存在3个文件:authz,passwd,svnserve.conf。。

对于svnserve.conf,内容如下:
### This file controls the configuration of the svnserve daemon, if you
### use it to allow access to this repository.  (If you only allow
### access through http: and/or file: URLs, then this file is
### irrelevant.)

### Visit http://subversion.tigris.org/ for more information.

[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 conf directory.
### 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 conf
### directory.  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
### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
# realm = My First Repository

对于passwd,内容如下:
### 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]
harry = 123456
sally = 123456

对于authz,内容如下:
### This file is an example authorization file for svnserve.
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to a
### single user, to a group of users defined in a special [groups]
### section, or to anyone using the '*' wildcard.  Each definition can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').

[groups]
harry_and_sally = harry,sally

[/]
harry = rw
* =

# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = r



3、启动服务器。
svnserve -d -r /path/to/svn/repository

没有任何提示就说明启动成功了。

4、测试
svn checkout svn://127.0.0.1/repository --username=username --password=password ./repository

svnserve的常规命令:
http://tortoisesvn.net/docs/nightly/TortoiseSVN_zh_CN/tsvn-serversetup-svnserve.html
启动(需要用root权限):
svnserve -d -r /你的代码仓库地址/
关闭/重启:
lsof -i :3690 查看svn是否启动
ps aux |grep ‘svn’ 查找所有svn启动的进程id,
kill
-9 3703 杀死2505这个查找到的svn进程
分享到:
评论

相关推荐

    mac下配置svn服务器.docx

    mac下配置svn服务器的参考文档,希望大家加油喔

    SVN 服务器客户端安装包 配置及使用文档

    SVN代码管理是程序开发必须的工具,本资源包含了SVN的服务器及客户端安装包,以及源下载地址的列表内含包括 windows XP ,windows7 ,MAC OS,LINUX等多个系统的客户端及服务器安装程序。另附安装及使用配置文档,绝无...

    Mac环境下搭建svn环境和使用方法

    我们首先来看下,如何在Mac环境下搭建svn服务器端环境。 一、创建代码仓库,用来存储客户端所上传的代码 我先在/User/apple目录下新建一个svn目录,以后可以在svn目录下创建多个仓库目录 打开终端,创建一个mycode...

    SVN使用手册中文版快速入门

    6. 配置服务器 概述 网络模型 请求和响应 客户端凭证缓存 svnserve,一个自定义的服务器 调用服务器 内置的认证和授权 创建一个用户文件和域 设置访问控制 SSH认证和授权 SSH配置技巧 初始设置 控制调用的命令 httpd...

    SVN使用手册中文版.chm

    6. 配置服务器 概述 网络模型 请求和响应 客户端凭证缓存 svnserve,一个自定义的服务器 调用服务器 内置的认证和授权 创建一个用户文件和域 设置访问控制 SSH认证和授权 SSH配置技巧 初始设置 控制调用的命令 httpd...

    使用Subversion进行版本控制(针对 Subversion 1.4)

    选择一个服务器配置 svnserve服务器 svnserve使用SSH通道 Apache 的 HTTP 服务器 推荐 svnserve,一个自定义的服务器 调用服务器 svnserve作为守护进程 使用svnserve通过inetd 通过通道使用svnserve svnserve作为...

    在Eclipse中使用SVN与CVS代码管理工具管理项目

    svn服务器有2种运行方式:独立服务器和借助apache。2种方式各有利弊。目前业界评价的SVN易用性正在提高。功能:★★★★SVN 的功能除具备 VSS 的功能外,还具有:它的客户机 / 服务器存取方法使得开发者可以从任何...

    Git权威指南PDF完整版

    Git权威指南 目 录 前 言 第1篇 初识Git 第1章 版本控制的前世和今生/ 2 1.1 黑暗的史前时代/ 2 1.2 CVS—开启版本控制大爆发/ 5 1.3 SVN—集中式版本控制集大成者/ 7 ...34.1.2 Mac OS X 下 cvs2svn 的...

    多玩前端工作流grunt-workflow.zip

    提交dest里面的静态文件(css、js、img)到静态文件服务器,提交路径为%SVN_REMOTE_DIR%/<description>/<name>/,详见注意事项。 grunt zip 打包src和dest文件给技术。其中dest文件夹作如下处理:将 dest/*.html 的 ...

    open_fortress:[此GITHUB REPO已过时! 我们已移至SVN! 请参阅我们的网站@ http-Game source website

    除非拥有Mac的人愿意帮助编译Mac OS,否则将继续不支持Mac OS。 正在安装 需要源SDK Base 2013 Multiplayer。 如果您没有使用GitHub和/或安装sourcemods的经验,我们强烈建议您不要遵循以下步骤,建议您等待

    GIT中文资源

    1.4.3 在 Mac 上安装 . . . . . . . . . . . . . . . . . . . . . . . . 8 1.4.4 在 Windows 上安装 . . . . . . . . . . . . . . . . . . . . . . 8 1.5 初次运行 Git 前的配置 . . . . . . . . . . . . . . . . . ...

Global site tag (gtag.js) - Google Analytics