ApacheSubversion (SVN for short) is an open-source version control system. It uses a branch management system relative to the RCS and CVS. Its design goal is to replace CVS. More and more control services on the Internet are transferred from CVS to Subversion. First, download and install the svn server from the image: sudoapt-getinstallsubversion to enter the Directory and prepare to create the svn directory: cd/usr/local/
Apache Subversion (SVN for short) is an open-source version control system. It uses a branch management system relative to the Cross-node Scripting (RCS) and CVS. Its design goal is to replace CVS. More and more control services on the Internet are transferred from CVS to Subversion.
First, download and install the svn server from the image:
Sudo apt-get install subversion
Go to the directory and prepare to create the svn directory:
Cd/usr/local/
Create an svn directory:
Mkdir svn
Change the directory permission to 777:
Chmod-r777 svn
Create an svn repository named sunny)
Svnadmin create/usr/local/svn/sunny
Go to the configuration file directory of the sunny Repository:
Cd sunny/conf
Modify the three configuration files in this directory.
(1) vi svnserve. conf // configure the version library information, user file and user password file path, and version LIBRARY PATH
[
Set
# Anon-access = read
# Auth-access = write
# Password-db = passwd
// Remove the # And space in front of the four rows and convert them
Anon-access = none // change to none
Auth-access = write
Password-db = passwd
Realm = sunny // change it to your own version Library
Save
(2) vi authz // file, create svn group and group User Permissions
[Group]
Sunny = gep, wce // create a sunny group and create two users gep and wce
[/] // Specify permissions under the root directory
@ Sunny = rw // the sunny group user permission is read/write.
* = R // other users only have read permission
Save and exit