相关的包可以到下载
http://download.opensuse.org/repositories/devel:/tools:/scm:/svn:/1.8/SLE_11_SP4/x86_64/
zypper in libapr1
zypper in libapr-util1
rpm -ivh libsqlite3-0-3.15.0-176.1.x86_64.rpm --force
rpm -ivh libserf-1-1-1.3.9-51.3.x86_64.rpm --force
rpm -ivh subversion-1.8.16-6.2.x86_64.rpm
解压缩原来的svn目录到
设置目录权限
chown -R svn:svn /srv/svn/repository/repos1
/etc/sysconfig/svnserve文件中的下列内容
#####注意去掉-R,否则会强制只读;
#####注意仓库的路径要拼写正确
SVNSERVE_OPTIONS="-d -r /home/zhangrui/project/svnRepository/sft"
#####设为存在的用户和用户组,我就设为自己常用登录的用户了
SVNSERVE_USERID="svn"
SVNSERVE_GROUPID="svn"
3. 在YAST-->系统-->系统服务 中开启svnserve服务(level3,5)
或者用root运行chkconfig -s svnserve on
这个文档里说如果要装apache mod 需要装subversion-server,不用apache就都有了
https://subversion.apache.org/packages.html#suse
Part of the the standard distribution. svnserve is part of the subversion package, mod_dav_svn is in the separate subversion-server package.
$ zypper install subversion
$ zypper install subversion-server
Community packages are available from the openSUSE project, also for the 1.8 series of releases.
另外配置apache 可以参考这个文章
HowTo: Apache2 and Subversion (SVN) with Access Control on openSUSE 11.4
https://forums.opensuse.org/showthread.php/461165-HowTo-Apache2-and-Subversion-(SVN)-with-Access-Control-on-openSUSE-11-4
© 2016, 新之助meow. 原创文章转载请注明: 转载自http://www.xinmeow.com