可以选择Apache + SVN搭建该环境. (假设测试机器装有Ubuntu)
1. 安装Apache:
apt-get install apache2
2. 安装Apache的SVN插件模块:
软件包在各版本中名称可能不一样, 先搜索下
apt-cache search apache | grep svn
libapache2-svn - Subversion server modules for Apache
apt-get install libapache2-svn
3. 建立SVN资源库:
cd /
mkdir svn
cd svn
svnadmin create srcdemo
4. 配置Apache的SVN配置文档:
cd /etc/apache2/mods-available
vi dav_svn.conf
做适当的修改, 举例设置如下:
# dav_svn.conf - Example Subversion/Apache configuration
#
# For details and further options see the Apache user manual and
# the Subversion book.
#
# NOTE: for a setup with multiple vhosts, you will want to do this
# configuration in /etc/apache2/sites-available/*, not here.
# <Location URL> ... </Location>
# URL controls how the repository appears to the outside world.
# In this example clients access the repository as http://hostname/svn/
# Note, a literal /svn should NOT exist in your document root.
<Location /svn>
# Uncomment this to enable the repository
DAV svn
# Set this to the path to your repository
#SVNPath /var/lib/svn
# Alternatively, use SVNParentPath if you have multiple repositories under
# under a single directory (/var/lib/svn/repo1, /var/lib/svn/repo2, ...).
# You need either SVNPath and SVNParentPath, but not both.
SVNParentPath /svn
# Access control is done at 3 levels: (1) Apache authentication, via
# any of several methods. A "Basic Auth" section is commented out
# below. (2) Apache <Limit> and <LimitExcept>, also commented out
# below. (3) mod_authz_svn is a svn-specific authorization module
# which offers fine-grained read/write access control for paths
# within a repository. (The first two layers are coarse-grained; you
# can only enable/disable access to an entire repository.) Note that
# mod_authz_svn is noticeably slower than the other two layers, so if
# you don't need the fine-grained control, don't configure it.
# Basic Authentication is repository-wide. It is not secure unless
# you are using https. See the 'htpasswd' command to create and
# manage the password file - and the documentation for the
# 'auth_basic' and 'authn_file' modules, which you will need for this
# (enable them with 'a2enmod').
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
# To enable authorization via mod_authz_svn
AuthzSVNAccessFile /etc/apache2/dav_svn.authz
# The following three lines allow anonymous read, but make
# committers authenticate themselves. It requires the 'authz_user'
# module (enable it with 'a2enmod').
#<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
#</LimitExcept>
</Location>
5. 添加SVN账号:
cd /etc/apache2
htpasswd dav_svn.passwd svnuser1
6. 设置SVN资源库访问规则:
vi /etc/apache2/dav_svn.authz
[/]
* = r
[groups]
admin=svnuser1
[srcdemo:/]
@admin=rw
*=r
7. 除此之外, 个人比较喜欢webmin这个管理工具, 建议安装, URL链接如下:
http://www.webmin.com/
分享到:
相关推荐
linux环境搭建svn服务器所需安装包,包括apr-1.7.0.tar.gz, apr-util-1.6.1.tar.gz, expat-2.1.0.tar.gz, openssl-1.0.2l.tar.gz, sqlite-autoconf-3330000.tar.gz, subversion-1.9.4.tar.gz, zlib-1.2.11.tar...
Linux下搭建SVN服务器,绝对可以成功搭建
详细介绍如何在linux下配置svn,很不错的说。
centos 7.9服务器 离线 搭建svn服务器 ,该文章适用于 开发人员 实施人员 项目经理用于项目文档管理 代码管理,而不指定如何在centos7.9环境下离线搭建svn服务器,因为大多数的网站只是介绍yum install 的方式,但是...
linux下搭建SVN服务器完全手册,完全配置详解
linux上搭建svn服务器,同步数据 linux上搭建svn服务器,同步数据
教大家在Linux服务器上搭建SVN,比较详细,有命令代码操作流程。
linux下搭建svn服务器.doc
Linux下搭建svn服务器详解,很实用,并有讲解windows同步配置svn客户端。
linux下搭建svn服务器apache.pdf
linux下搭建SVN服务器完全手册.docx
linux下搭建SVN服务器完全手册借鉴.pdf
linux下搭建svn服务器(apache).pdf
linux下搭建svn服务器(apache)参照.pdf
linux下搭建svn服务器(apache)借鉴.pdf