This article is mainly for the access to SVN two protocols to illustrate one is the SVN itself service protocol, one is to run HTTP through Apache Access SVN Protocol SVN protocol access format similar to the following
Svn://192.168.1.34/repos/cotton
The SVN protocol has a certain disadvantage is that only through the LAN access, if you want to do outside network mapping through the extranet IP and port access to the SVN server will need to use the HTTP access format.
The HTTP protocol access format is similar to the following
Http://192.168.1.34/repos/cotton
First install the SVN mode
L Turn off the firewall or open SVN default port 3690
l See if older versions are installed
Rpm-qa|grep Subversion
L Uninstall old version
RPM-E Subversion
L Install new version
Yum Install Subversion
L Create a repository path
Mkdir/home/svn
Cd/home/svn
L Create a version library
Svnadmin Create Cotton
L ENTER the path
CD cotton/conf
L Edit Permissions File
Vim Authz
[Groups]
admin = Admin
[/]
@admin = RW
L Edit Password file
Vim passwd
admin = Admin
L Edit SVN config file
Vim svnserve.conf
L Start SVN Service
Svnserve-d-r/home/svn/cotton
L Export SVN data
Svnadmin Dump D:\Repositories\cotton > E:\svn_back\svnbak.dump
L Import SVN data
Svnadmin Load D:\Repositories\cotton < E:\svn_back\svnbak.dump
L Access Address: Svn://192.168.1.34/cotton/trunk
Next HTTP Access SVN protocol installation
L Mounting httpd
Yum Install httpd
L Start Service
Service httpd Start
L MOD_DAV_SVN Module installation
Yum-y Install MOD_DAV_SVN
L Modify HTTP configuration file
Vim/etc/httpd/conf.d/subversion.conf
L Create a password file
Htpasswd-c/ETC/HTTPD/CONF.D/PASSWD Admin
L Create permissions file
Vim/etc/httpd/conf.d/authz
L Authorization of SVN library permissions
Chown-r Apache.apache Cotton
Chcon-r-T httpd_sys_content_t Cotton
L Restart Apache
Service httpd Restart
L HTTP Access Svn:http://192.168.1.34/repos/cotton
Linux Build SVN Support SVN protocol and HTTP protocol