http 访问模式
httpd -version 查看是否安装apache
yum install httpd
svnserver --version 查看是否安装svn
yum install subversion
yum install mod_dav_svn 安装http访问模块
find / -name mod_dav_svn.so
/usr/lib64/httpd/modules/mod_dav_svn.so
find / -name mod_authz_svn.so
/usr/lib64/httpd/modules/mod_authz_svn.so
mkdir /data/svn
svnadmin create /svn/myproject
chown -R apache:apache /data/svn/myproject/
touch /data/svn/myproject/passwd #创建密码文件
touch /data/svn/passwd #创建密码文件
htpasswd /data/svn/passwd admin #创建用户admin
cp /data/svn/myproject/conf/authz /data/svn/authz 创建权限文件authz
vi /data/svn/authz #加入权限文件
admin = rw
wenshan =r
touch /etc/httpd/conf.d/subversion.conf 创建配置文件httpd
vi /etc/httpd/conf.d/subversion.conf
<Location /svn>
DAV svn
SVNParentPath /data/svn
AuthType Basic
AuthName "Authorization SVN"
AuthzSVNAccessFile /data/svn/authz
AuthUserFile /data/svn/passwd
Require valid-user
</Location>
systemctl start httpd.service