您的位置:首页 > 运维架构 > Linux

linux下安装svn server

2016-04-10 05:48 501 查看
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]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: