Install and configure SVN in Ubuntu
Ubuntu 1204 server
Install SVN
apt-get install subversion
Create SVN Repository
Mkdir-p/home /. svn/test # create a repository directory mkdir-p/home /. svn/test_2svnadmin create/home /. svn/test # create a repository. After execution, the test directory contains the repository-Related File svnadmin create/home /. svn/test_2
Configure and manage SVN
1) Repository configuration file $ depot/conf/svnserve. confanon-access = none # permission settings for anonymous users, which can be read, write, and noneauth-access = write # permission settings for authenticated users, which can be read, write, nonepassword-db = passwd # path of the password database authz-db = authz # path of the authentication rule repository 2) configure the password $ depot/conf/passwd [users] allen = 111111 # allen (User Name) = 111111 (password) 3) configure authentication rules $ depot/conf/authz [groups] harry_and_sally = harry, sally # group name = user 1, user 2 [/] # Start from/home /. start svn/test and ask the root directory. [/] Set the test directory to the root directory harry = rw # the user's permission to the root directory is rwsally = r # the user's permission to the root directory is r [test1: /] # Start from/home /. svn start @ harry_and_sally = rw # all user permissions of the user group are rw
SVN startup, shutdown, and access
Start: svnserve-d-r/home /. svn/test # starts from the test directory, corresponding to [/]. access Method: svn: // ** IP **/svnserve-d-r/home /. svn/test1 # slave. svn directory startup, corresponding to [test1:/]. Access Method: svn: // ** IP **/test1 close: killall svnserve # netstat-at can check whether svn is started # If svn needs to be started, add the startup command to/etc/rc. local (BOOT script )##
SVN client
Install TortoiseSVN http://tortoisesvn.tigris.org/
SVN clientFor more information, see TortoiseSVN.