linux svn 1.7 安装

先安装 apr 和 apr-util  (http://apr.apache.org/download.cgi)

yum install autoconf automake libtool gcc expat expat-devel -y
sh autogen.sh
./configure –prefix=/home/admin/install/svn –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr
make
make install

将svn bin目录添加到环境变量中

创建一个svn目录
svnadmin create /home/admin/install/svn/data/

配置svn
vi /home/admin/install/svn/data/conf/svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz

vi /home/admin/install/svn/data/conf/authz
[groups]
admin=test

[/]
@admin = rw

vi /home/admin/install/svn/data/conf/passwd
[users]
test = 123456

启动svn
svnserve -d -r /home/admin/install/svn/data

  1. 暂无评论

  1. 暂无 Trackback

return top