1、安装subversion软件
yum installl subversion -y
2、创建版本仓库
svnadmin create /usr/local/subversion/project
看到( /usr/local/subversion/project)以下文件文件,表示版本仓库创建成功

3、配置svn相关文件
authz 相关权限
passwd 密码
svnserve.conf 服务配置文件
vim authZ
①编辑权限
[/]代表根目录下所有的资源,如果要限定资源,可以加上子目录即可。

2、编辑用户账号密码
用户账号密码格式为:用户名=密码

3、设置svn服务配置文件
将svnserve.conf 中标的前面注释取消,且前面不能有空格

4、启动服务
svnserve -d -r /usr/local/subversion/project/
5、开启防火墙并开启相关服务端口号
systemctl start firewalld.service //开启防火墙
firewall-cmd --permanent --zone=public --add-port=3690/tcp //svn端口号
firewall-cmd --permanent --zone=public --add-port=80/tcp
firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --permanent --zone=public --add-port=443/tcp
firewall-cmd --permanent --zone=public --add-port=3306/tcp
firewall-cmd --permanent --zone=public --add-port=11211/tcp
firewall-cmd --permanent --zone=public --add-port=25/tcp
systemctl restart firewalld.service
5、安装svn客户端(tortoiseSVN )
检出后,会弹出登录对话框,输入passwd文件填写的账号密码



到此就设置成功了
将SVNserve服务添加到开机启动
1、更改服务配置文件,
vim /etc/sysconfig/svnserve

2、systemctl enable svnserve
网友评论