1 安装相应的软件包:
yum -y install httpd
yum -y install subversion
yum install mod_dav_svn
2 配置apache。
vi /etc/httpd/conf/httpd.conf
增加:
LoadModule cgi_module modules/mod_dav_svn.so
LoadModule cgi_module modules/mod_authz_svn.so
...
DAV svn
SVNParentPath /svn_path
AuthType Basic
AuthName "svn repository"
AuthUserFile ./svn_auth_file
3 添加SVN验证文件
htpasswd -c ./svn_auth_file username
4 增加SVN库,修改属性
mkdir /svn_parent_path
svnadmin create /svn_parent_path/svn_repository_name
find /svn_parent_path -exec chown apache:apache {} \;
find /svn_parent_path -exec chmod 0700 {} \;
4 重新起apache服务,即可。
以后再增加安全和同步方面的东西。