标签:
Subversion server binaries maintained by the Ubuntu Project. Packages include the Subversion client, and tools to create a Subversion repository and to make a repository available over a network.
Run this command as root:
$ apt-get install subversion
以上出自:http://www.subversiondownload.com/ubuntu
从上面可以看出安装很简单只要运行如下命令:
sudo apt-get install subversion
验证安装是否成功可以使用如下命令:
svn help --svn帮助 svn --version --svn版本 svnserve --version --svn server版本
2. 创建SVN 版本库
mkdir /u02/svn svnadmin create /u02/svn/svnname --svnname为版本库名称
创建版本库后,在这个目录下会生成3个配置文件:
[root@singledb conf]# pwd /u02/svn/davesvn/conf [root@singledb conf]# ls authz passwd svnserve.conf
[root@singledb conf]# cat 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 = harryssecret # sally = sallyssecret dave = davepwd tianlesoftware = tianlesoftwarepwd
[root@singledb conf]# cat authz [groups] admin = dave dev=tianlesoftware [davesvn:/] @admin = rw @dev = rw [root@singledb conf]#
[root@singledb conf]# svnserve -d -r /u02/svn
[root@singledb conf]# ps -ef | grep svn
ps -aux |grep svn kill -9 进程杀掉
参考: Linux 搭建SVN 服务器
标签:
原文地址:http://my.oschina.net/jast90/blog/382688