Centos Svn服务器搭建与配置
来源:互联网 发布:国外做博士后 知乎 编辑:程序博客网 时间:2024/05/16 08:59
1.yum安装svn
yum install -y subversion
2.验证是否安装完成
svnserve --version
3.创建svn版本库
mkdir /home/iienet/svn #把版本库放在前面文件夹,方便管理svnadmin create /home/iienet/svn/repo #我这里将svn作为所有版本库的目录,并创建了一个名为repo的版本库
4.配置当前的版本库
说明:
(1)svnserve.conf: svn服务综合配置文件。
(2)passwd: 用户名口令文件。
(3)authz: 权限配置文件。
4.1 修改passwd文件
添加用户名与密码,是以后再svn中使用的用户名与密码eg:
asia = 654321
4.2修改authz文件
[aliases] # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average #这里实现了别名的定义 [groups] # harry_and_sally = harry,sally # harry_sally_and_joe = harry,sally,&joe team0=asia,wzw,szx # [/foo/bar] # harry = rw # &joe = r #上面的别名定义在这里实现 &在这里理解为指针就很容易了 # * = # [repository:/baz/fuz] # @harry_and_sally = rw # * = r [/] @team0=rw #小组成员有读写的权限
4.3 修改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 = readauth-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.
5 停止和启动svn
svnserve -d -r /home/iienet/svn/ --listen-port 3399
OK,以上启动完毕之后就会看到运行成功了
将库文件导入到服务器的项目版本库,如下:
svn import /home/cs file:///data/svn/cs -m "new project"
下载路径 svn://10.10.16.3:3399/ 0 0
- Centos Svn服务器搭建与配置
- CentOS 搭建SVN服务器及相关配置
- Centos 搭建svn服务器详细配置
- centos搭建SVN服务器及配置讲解
- CentOS 7下搭建配置SVN服务器
- Centos搭建SVN服务器
- CentOS SVN服务器搭建
- Centos搭建SVN服务器
- centos 搭建svn服务器
- centOS搭建SVN服务器
- Centos搭建SVN服务器
- CentOS 搭建svn服务器
- centos 搭建svn服务器
- centos搭建svn服务器
- Centos搭建SVN服务器
- CentOS搭建SVN服务器
- centos搭建svn服务器
- centos服务器搭建svn
- 基数排序
- Android开发,自定义AcrionBar
- Java中的类型转换
- LINUX驱动开发系列1 —— 内核模块
- hdfs dfs
- Centos Svn服务器搭建与配置
- springMVC请求参数接收方式
- souce insight使用不当,导致软件卡顿,没有响应。
- 用户空间和内核空间通讯之【Netlink 上】
- PHImageManager
- day07 结构体 匿名结构体 结构体的初始化 访问 结构体嵌套 结构体的存储空间 结构体数组
- Perl6 -1.2 操作符
- android viewpager+fragment 避免预加载,缓存
- 今天开始学java,2015-12-12