linux centos7安装svn服务端
yum install -y subversion
rpm -ql subversion
subversion默认以/var/svn作为数据根目录,可以通过/etc/sysconfig/svnserve修改 vim /etc/sysconfig/svnserve OPTIONS="-r /var/svn" #默认位置,可不修改 mkdir -p /var/svn/root svnadmin create /var/svn/root
cd /var/svn/root/conf vim passwd [users] admin = admin guest = guest
cd /var/svn/root/conf vim authz [/] #位置根目录 ###此处位置代表 /var/svn/root/ admin = rw #读写 guest = r #读 [/avm] ###此处位置代表 /var/svn/root/avm avg = rw
vim /var/svn/root/conf/svnserve.conf [general] anon-access = none #控制非鉴权用户访问版本库的权限 auth-access = write #控制鉴权用户访问版本库的权限 password-db = passwd #指定用户名口令文件名 authz-db = authz #指定权限配置文件名 realm = /home/svn/webber #指定版本库的认证域,即在登录时提示的认证域名称,可不开启
systemctl enable svnserve systemctl start svnserve systemctl restart svnserve systemctl stop svnserve systemctl status svnserve