`
jsntghf
  • 浏览: 2517948 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

Mac下配置svn服务器

    博客分类:
  • Mac
阅读更多

Mac自带了svn服务端和客户端,所以只需要简单配置一下就可以使用。

 

1、创建svn repository

 

svnadmin create /Users/gaohf/svn/repository

 

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

 

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,
###  - a group of users defined in a special [groups] section,
###  - an alias defined in a special [aliases] section,
###  - all authenticated users, using the '$authenticated' token,
###  - only anonymous users, 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
### ('').

[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average

[groups]
gaohf_group = gaohf
# harry_sally_and_joe = harry,sally,&joe

[/]
gaohf=rw
# &joe = r
* =

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

 

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]
gaohf=123456

 

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 = read
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
### 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

[sasl]
### This option specifies whether you want to use the Cyrus SASL
### library for authentication. Default is false.
### This section will be ignored if svnserve is not built with Cyrus
### SASL support; to check, run 'svnserve --version' and look for a line
### reading 'Cyrus SASL authentication is available.'
# use-sasl = true
### These options specify the desired strength of the security layer
### that you want SASL to provide. 0 means no encryption, 1 means
### integrity-checking only, values larger than 1 are correlated
### to the effective key length for encryption (e.g. 128 means 128-bit
### encryption). The values below are the defaults.
# min-encryption = 0
# max-encryption = 256

 

3、启动服务器

 

svnserve -d -r /Users/gaohf/svn/repository

 

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

 

4、将项目导入svn库

 

svn import /Users/gaohf/projects/demo/ svn://localhost/svn/repository/demo --username gaohf --password 123456 -m "Initial import"

 

5、签出项目

 

svn checkout svn://127.0.0.1/svn/repository/demo --username=gaohf --password=123456

 

分享到:
评论

相关推荐

    mac下配置svn服务器.docx

    本文将详细介绍如何在Mac上设置SVN服务器。 首先,确保你的Mac已经预装了SVN服务端和客户端。如果你的系统是较新的版本,那么可能已经包含了这些组件。如果没有,你可以通过Homebrew或MacPorts等包管理器安装它们。...

    Svn服务器、SvnMan客户端

    安装和配置Svn服务器通常涉及以下步骤: 1. 安装服务器软件:根据操作系统选择合适的SvnServer版本,例如在XP系统上安装SvnServer-2.1.2,在非XP Windows系统上安装SvnServer-2.7.7。 2. 配置版本库:创建一个或多...

    mac华为SVNClient

    2. 配置SVN服务器:打开客户端,输入SVN仓库的URL,设置用户名和密码。 3. 检出项目:选择“Checkout”操作,指定本地保存项目的路径,完成检出。 4. 开始工作:在检出的工作副本中编辑代码,完成后执行“Commit”...

    转svn-E170001报错的原因以及解决方案.docx

    svn-E170001报错是指在使用Jenkins配置svn拉取项目时出现的一种错误,错误信息为svn: E170001。该错误的出现是由于svn账户名和密码没有权限所导致的。 svn-E170001报错的原因: 1. svn账户名和密码没有权限:svn...

    mac下的svn版本管理工具(Version 莲花)

    在使用Version.app时,用户首先需要配置SVN服务器的URL,然后可以将项目导入到客户端中。通过客户端,用户可以进行版本控制的基本操作,如检出(Checkout)、更新(Update)、提交(Commit)、切换分支(Switch)、...

    svn服务器和客户端安装包以及配置

    - **配置访问控制**:为了限制用户对仓库的访问,你需要配置SVN的访问控制文件(`conf/authz`)。在这个文件中,你可以指定哪些用户或组可以访问哪些路径。 - **设置身份验证**:配置身份验证方式,可以是基本认证...

    MAC自带SVN终端常用命令

    1. 查看SVN服务器的目录结构 使用svn ls命令可以查看服务器上的目录结构,该命令可以查看特定的分支(branches)、标签(tags)以及主干(trunk)。命令格式为svn ls [SVN服务器地址]。 例如: ``` svn ls *** ``` ...

    svn配置,svn配置

    在这个"svn配置"主题中,我们将深入探讨如何配置SVN服务器、客户端以及进行日常的版本控制操作。 1. **安装SVN服务器**: - 对于Windows用户,可以使用VisualSVN Server,提供图形化的安装和管理界面。 - 对于...

    自己电脑上建 svn 当服务器

    让我们一步步来了解如何在你的计算机上建立一个SVN服务器。 首先,你需要在你的电脑上安装SVN服务器软件。对于Windows用户,可以下载VisualSVN Server,它提供了一个直观的图形界面来管理你的SVN仓库。而对于Linux...

    svn服务器,客户端,汉化包

    安装SVN服务器,可以创建一个中央仓库,团队成员可以通过网络连接到这个仓库,进行文件的添加、修改、删除等操作,同时保留每次变更的历史记录。常见的SVN服务器软件有Apache Subversion(通常与Apache HTTP Server...

    SVN服务器环境搭建和使用

    #### 三、SVN服务器配置 ##### 1. 创建版本库 - 打开VisualSVN Server Manager。 - 右键点击Repositories选项,选择“Create New Repository”或“新建 -> Repository”。 - 输入版本库名称,并勾选“Create default...

    在Mac Xcode下使用SVN

    使用 SVN 在 Mac Xcode 下的配置和使用方法 在 Mac Xcode 下使用 SVN 是一个非常重要的知识点,对于开发者来说尤其重要。下面我们将详细介绍如何在 Mac Xcode 下使用 SVN。 首先,SVN 是什么?SVN(Subversion)是...

    SVN服务器、客户端的搭建与使用

    3. **配置SVN服务器**:安装完成后,打开VisualSVN Server Manager,创建一个新的仓库(Repository),并设置仓库路径。可以为每个仓库设置不同的权限和访问控制。 4. **启动SVN服务**:配置完成后,启动或重启...

    mac下svn与svk整合

    1. **创建镜像**: 使用`svk mirror`命令创建远程SVN服务器的镜像,例如`svk mirror //mirror/myproject http://exp.svn.com/project`。 2. **同步操作**: 使用`svn sync`命令同步镜像,`svk sync //mirror/myproject...

    华为SVNClient for mac 3.1.2.38

    首次使用时,可能需要配置SVN服务器地址、用户名和密码。 4. **主要功能**: - **版本提交**:保存并记录对文件或目录的更改。 - **更新与同步**:获取服务器上的最新版本,与本地副本保持一致。 - **差异查看**...

    mac平台的svn客户端

    首次使用时,需要配置SVN服务器地址和凭据。然后,用户可以创建新项目,导入现有项目,或者连接到远程仓库。通过菜单栏和侧边栏,用户可以进行各种操作,如提交、更新、比较、恢复等。 **版本控制的重要性** 版本...

    SVN服务器,客户端,中文插件

    4. **SSL/TLS加密**:为了保护数据传输安全,你可以配置SVN服务器使用HTTPS协议,提供SSL/TLS加密,确保敏感信息不被窃取。 二、SVN客户端 1. **选择客户端**:有许多SVN客户端可供选择,例如TortoiseSVN(Windows...

Global site tag (gtag.js) - Google Analytics