svn支持http
1、安装httpd
yum install httpd
2、安装mod_dav_svn
yum install mod_dav_svn
3、在etc/httpd/conf.d下添加subversion.conf文件
添加如下配置:--指定授权和验证文件
<Location /iot>
DAV svn
SVNPath /home/svn/iot/
AuthType Basic
AuthName "Subversion iot"
AuthUserFile /home/svn/iot/conf/htpasswd
AuthzSVNAccessFile /home/svn/iot/conf/authz
Require valid-user
</Location>
4、修改对应仓库的用户组为apache
chown -R apache:apache /home/svn/iot
5、生成3中指定的htpasswd密码文件
htpasswd -cb htpasswd zhangsan 123456
htpasswd -b htpasswd lisi 123456
以后通过htpasswd来创建用户信息(-c是创建文件,以后只写-b添加新用户)
6、启动svn
svnserve -d -r svn/
启动Apache服务
systemctl start httpd.service
关闭Apache服务
systemctl stop httpd.service
重启Apache服务
systemctl restart httpd.service
参考
https://help.aliyun.com/document_detail/129359.html