当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : UBUNTU-SVN_INSTALL
帖子发表于 : 2007-11-09 14:52 

注册: 2007-09-06 16:24
帖子: 193
地址: 中国上海
送出感谢: 0 次
接收感谢: 0 次
ubuntu-svn-install


----------------------------------------------------------
sudo apt-get install ssh apache2
sudo apt-get install subversion subversion-tools

----------------------------------------------------------

sudo mkdir -p /var/lib/svn
----------------------------------------------------------
Example Project:

sudo mkdir -p /var/lib/svn/colt
sudo svnadmin create /var/lib/svn/colt
sudo svn mkdir file:///var/lib/svn/colt/trunk -m "Trunk"
sudo svn mkdir file:///var/lib/svn/colt/tags -m "Tags"

sudo svn mkdir file:
///var/lib/svn/colt/branches -m "Branches"
----------------------------------------------------------

sudo apt-get install libapache2-svn
Next I open up /etc/apache2/mods-available/dav_svn.conf. This file
contains configuration for the WebDAV and SubVersion modules we just
installed.


Here I enable basic HTTP authentication, which is good enough for my
local network. I also enable DAV by uncommenting "DAV svn".

Subversion repositories are always readable by anonymous people. You
should remove the LimitExcept block from dav_svn.conf to make sure all
users authenticated themselves before accessing your repository.



You need to take special care of the "SVNPath" variable here. We
don't host just one repository. We host several and /var/lib/svn is the
parent directory of all our repositories. E.g. 'colt' is a sub
directory that resides in /var/lib/svn. To make Apache understand this
we need to change "SVNPath" to "SVNParentPath". This enables all sub
directories to be independent repositories.
----------------------------------------------------------


sudo htpasswd2 -c /etc/apache2/dav_svn.passwd userName
sudo chown -R www-data.www-data /var/lib/svn
----------------------------------------------------------
If you add more repositories, you always have to chown them to your
apache's user and group. After that you can use them through WebDAV.
----------------------------------------------------------
Try http://example.com/svn/colt


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 1 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Google Feedfetcher 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译