# yum install httpd httpd-devel
# yum install subversion
# yum install mod_dav_svn
# mkdir -p /var/svn
# cd /var/svn
# svnadmin create [仓库名称]
# htpasswd -c ./passwd.conf [帐号]
# cp /var/svn/conf/authz ./authz.conf
# vi authz.conf
admin = admin,zhujinbin
ebook-android = lvxiangjunebook-pc = chenwuyi[/]@admin = rw* = r[leeone:/ebook-android]@admin = rw@ebook-android = rw* = r[leeone:/ebook-pc]@admin = rw@ebook-pc = rw* = r# vi /etc/init.d/conf/httpd.conf
<Location /svn>
DAV svn SVNParentPath /var/svn AuthUserFile /var/svn/passwd.conf AuthzSVNAccessFile /var/svn/authz.conf AuthType Basic AuthName "welcome to leeone" Require valid-user</Location># chown -R apache.apache /var/svn
# vi /etc/selinux/config
SELINUX=disabled
# setenforce 0