安装SVN软件包
[root@localhost ~]# yum install subversion
#确认是否已安装svn模块
[root@localhost ~]# cd /etc/httpd/modules;ls|grep svn
mod_authz_svn.so
mod_dav_svn.so
如果没有需要安装mod_dav_svn
#yum -y install mod_dav_svn
#创建版本库
[root@localhost ~]#mkdir -p /opt/svn/repos
[root@localhost ~]# svnadmin create /opt/svn/repos
#配置Subversion
#设置用户名与密码zhangsan,123456
[root@localhost ~]# vim /opt/svn/repos/conf/passwd
[users]
zhangsan = 123456
#配置权限控制
root@localhost ~]# vim /opt/svn/repos/conf/authz
[groups]
[/]
zhangsan=rw
#服务配置
[root@localhost ~]# vim /opt/svn/repos/conf/svnserve.conf
[general]
auth-access = write ### The password-db option controls the location of the password
#启动SVN
[root@localhost ~]# svnserve -d -r /opt/svn/repos
#检测3690端口是否被占用
[root@localhost ~]# netstat -ln |grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN
#查看SVN进程
[root@localhost ~]# ps -ef|grep svn|grep -v grep
#关闭SVN进程
[root@localhost ~]# killall svnserve
[root@localhost ~]# yum install subversion
#确认是否已安装svn模块
[root@localhost ~]# cd /etc/httpd/modules;ls|grep svn
mod_authz_svn.so
mod_dav_svn.so
如果没有需要安装mod_dav_svn
#yum -y install mod_dav_svn
#创建版本库
[root@localhost ~]#mkdir -p /opt/svn/repos
[root@localhost ~]# svnadmin create /opt/svn/repos
#配置Subversion
#设置用户名与密码zhangsan,123456
[root@localhost ~]# vim /opt/svn/repos/conf/passwd
[users]
zhangsan = 123456
#配置权限控制
root@localhost ~]# vim /opt/svn/repos/conf/authz
[groups]
[/]
zhangsan=rw
#服务配置
[root@localhost ~]# vim /opt/svn/repos/conf/svnserve.conf
[general]
auth-access = write ### The password-db option controls the location of the password
#启动SVN
[root@localhost ~]# svnserve -d -r /opt/svn/repos
#检测3690端口是否被占用
[root@localhost ~]# netstat -ln |grep 3690
tcp 0 0 0.0.0.0:3690 0.0.0.0:* LISTEN
#查看SVN进程
[root@localhost ~]# ps -ef|grep svn|grep -v grep
#关闭SVN进程
[root@localhost ~]# killall svnserve