标签:
1. yum install subversion
2. mkdir -p /home/svn/svnfile
3. svnadmin create /home/svn/svnfile
4. 进入conf目录,配置passwd,配置authz
5. 修改svnserver.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = Test Repository
6. svnserve -d -r /home/svn/svnfile
7. 在不同端口开启svnserve:
/usr/bin/svnserve --daemon --pid-file=/var/run/svnserve3790.pid --listen-port 3790 -r /home/svn/svnfile
注:
1)svnserve 启动svn服务时的-r参数所指向的svn目录要是conf所在的那一级目录
2)svnserver.conf文件中的配置项“password-db”或者“authz-db”可以使用完整路径,如“/home/svn/svnfile/conf/passwd”
3)[1] [2]
标签:
原文地址:http://www.cnblogs.com/dream-bccb/p/5373299.html