`

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服务器。 首先,确保你的Mac已经预装了SVN服务端和客户端。如果你的系统是较新的版本,那么可能已经包含了这些组件。如果没有,你可以通过Homebrew或MacPorts等包管理器安装它们。...

    Mac下搭建svn服务器教程

    Mac下搭建svn服务器是一个涉及操作系统配置、版本控制以及权限管理的知识点。本文将详细探讨在Mac环境下使用终端命令搭建Subversion(svn)服务器的步骤及相关概念。 首先,我们需要了解svn的基本概念。Subversion...

    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”...

    MAC自带SVN终端常用命令

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

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

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

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

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

    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...

    Windows和Mac操作系统下SVN基本操作命令

    在 Mac 环境下,我们可以使用 Mac 自带的 SVN 服务器端和客户端功能,无需安装第三方软件。 1. 创建代码仓库 首先,我们需要创建一个代码仓库来存储客户端所上传的代码。我们可以在 /Users/apple 目录下新建一个 ...

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

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

    华为SVNClient for mac 3.1.2.38

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

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

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

    svn 配置与jar包

    2. **创建或克隆仓库**:在SVN服务器上创建一个新的仓库,或者克隆已有的仓库。这通常通过访问服务器的HTTP或HTTPS端点完成。 3. **配置SVN客户端**:在Eclipse中,需要安装SVN插件,如Subversive或Subclipse。安装...

    mac下svn与svk整合

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

    清理svn及缓存

    在Mac环境下,我们可以利用Bash shell脚本来实现对指定文件夹内所有`.svn`子目录的清理。下面是一个简单的示例脚本,展示如何遍历指定目录及其子目录,查找并删除所有的`.svn`文件夹: ```bash #!/bin/bash # 定义...

    SVN1.6.17 服务器-客户端-汉化包-安装文档

    安装教程通常会指导用户如何一步步设置和配置SVN服务器和客户端,包括安装程序、配置服务器选项、创建仓库、设置用户权限等步骤。对于新手来说,这些详细的指导尤为重要,因为版本控制系统的学习曲线可能相对较陡峭...

    SVN服务器搭建

    ### SVN服务器搭建与使用详解 #### 一、SVN简介 Subversion (简称SVN) 是一款开源的版本控制系统,广泛应用于软件开发过程中对代码进行版本管理。SVN支持多种平台,包括Windows、Linux和Mac OS X等。通过SVN,...

Global site tag (gtag.js) - Google Analytics