Chinaunix首页 | 论坛 | 博客
  • 博客访问: 379564
  • 博文数量: 87
  • 博客积分: 2810
  • 博客等级: 少校
  • 技术积分: 825
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-28 22:34
文章分类

全部博文(87)

文章存档

2010年(25)

2009年(43)

2008年(19)

分类: BSD

2008-10-28 22:46:37

svn server
1. install apache with db42
make WITH_AUTH_MODULES=yes WITH_BERKELEYDB=db42 install clean

del the ipv6  add the cgid and suexec


2. install python
cd /usr/ports/www/mod_python3
make install clean;rehash

3. install subversion
cd /usr/ports/devel/subversion
make WITH_SVNSERVE_WRAPPER=yes WITH_MOD_DAV_SVN=yes WITH_APACHE2_APR=yes install clean ;rehash

4. 初始目录设置:
# 设定 SVN 基本环境目录
mkdir -p /export1/svnroot                        # 路径自行决定后再更改即可
svnadmin create --fs-type bdb /export1/svnroot   # svn 初始化
chown -R www:www /export1

5. 建立帐号和权限:
htpasswd -cm /etc/svn-auth-file admin            # 建立SVN帐号
htpasswd -m  /etc/svn-auth-file kevin            # 第二个以后的帐号记得不要 -c
htpasswd -D /etc/svn-auth-file username          # 删除用户

# ee /etc/svn-access-file:                          # 建立 SVN 权限控制文件
[/]
* = r

[svnroot:/]
admin = rw
kevin = rw

6. configure with apache
#/usr/local/etc/apache22/Includes/svn.conf # 设定SVN@Apache
                                       
    DAV svn                                           
    SVNParentPath /export1                            
    SVNListParentPath on                              
    SVNAutoversioning on                              
    ModMimeUsePathInfo on                             
    Satisfy Any                                       
    AuthType Basic
    AuthName "Kevin Subversion Repository"
    AuthzSVNAccessFile /etc/svn-access-file
    AuthUserFile /etc/svn-auth-file
    Require valid-user
    ErrorDocument 404 default


7. start the apache

ee /etc/rc.conf

apache22_enable="YES"


/usr/local/etc/rc.d/apache22 start


8.access

to access the subversion server


9.install tortisesvn silent





silent use

1.新建文件夹test 右键点击选择SVN Checkout

2.再把文件复制到test里面,文件上面会出现一个问题号  右键选中文件 tortoisessvn-add

3.右键选中有问题号的文件 选svn comm

4.SVN客户端下载地址:



阅读(968) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~