mac自带了svn服务端和客户端,所以只需要简单配置一下就可以使用
2013-05-14 11:31
661 查看
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进程
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进程
相关文章推荐
- SVN安装配置与使用(服务端、客户端)
- mac 环境下svn客户端安装和简单使用
- 在MAC下配置自带的SVN及Versions使用
- 在MAC下配置自带的SVN及Versions使用
- Eclipse自带的CVS客户端,只需要几步简单的配置
- 可以再mac上使用的svn客户端-----试验成功可用
- Windows下WebStorm配置使用SVN详细过程(客户端和服务端完整版)
- SVN的简单使用(Ubuntu 12.04当服务端 Win 7当客户端)
- Windows下WebStorm配置使用SVN详细过程(客户端和服务端完整版)
- Windows下WebStorm配置使用SVN详细过程(客户端和服务端完整版)
- Mac 系统 用CornerStone配置SVN,HTTP及svn简单使用说明
- SVN的简单使用(服务端+客户端)
- SVN个人总结(比git简单)(跟git一样,mac也是不需要配置的,直接就有,windows还是需要配置的)
- mac下面自带svn客户端的使用方法
- Mac用CornerStone配置SVN,HTTP及svn简单使用说明
- 用CornerStone配置SVN,HTTP及svn简单使用说明 (以前用versions感觉很难用的样子所以有个笔记)
- Windows下WebStorm配置使用SVN详细过程(客户端和服务端完整版)
- SVN使用---服务端、客户端安装及配置、导入导出项目
- mac版svn客户端利用终端命令的简单使用
- svn服务器配置与客户端使用方法