Chinaunix首页 | 论坛 | 博客
  • 博客访问: 68989
  • 博文数量: 20
  • 博客积分: 1415
  • 博客等级: 上尉
  • 技术积分: 250
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-12 18:02
文章分类
文章存档

2010年(8)

2009年(3)

2008年(9)

我的朋友

分类:

2010-10-27 22:37:02

安装包
yum -y install httpd subversion mod_dav_svn

编辑配置文件
cat /etc/httpd/conf.d/subversion.conf

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn".  Each repository
# must be readable and writable by the 'apache' user.  Note that if
# SELinux is enabled, the repositories must be labelled with a context
# which httpd can write to; this will happen by default for
# directories created in /var/ Use "restorecon -R /var/www/svn"
# to label the repositories if upgrading from a previous release.
#

#
# To create a new repository "" using
# this configuration, run as root:
#
#   # cd /var/www/svn
#   # svnadmin create stuff  
#   # chown -R apache.apache stuff
#


   DAV svn
   SVNParentPath /home/svn/repository

   # Limit write permission to list of valid users.
  #
   #   # Require SSL connection for password protection.
   #   # SSLRequireSSL

   #   AuthType Basic
   #   AuthName "Authorization Realm"
   #   AuthUserFile /path/to/passwdfile
   #   Require valid-user
   #



启SVN
[root@localhost svn]# cat readme
start svn server command:
svnserve -d -r ~/repository/
create repository
svnadmin create ~/repository/notes_work

启httpd
/etc/init.c/httpd start

阅读(453) | 评论(0) | 转发(0) |
0

上一篇:win ftp上传乱码

下一篇:没有了

给主人留下些什么吧!~~