1, first install SVN this software
Apt-get Install Subversion
2. Create a folder named SVN in the home directory (the name of the folder is random)
Mkdir/home/svn
3. Create a Data warehouse (you can create as many as you want)
Svnadmin Create/home/svn/test
4. Start SVN Network Service
Svnserve-d-R/HOME/SVN
Where the-D parameter lets Svnserve run in the background, the-R parameter limits the data warehouse to the address that can be accessed on the network. /HOME/SVN Specify the location of the directory where the SVN data warehouse resides
5. Set SVN access permissions
In each data Warehouse directory there are a bunch of directories, enter CONF and open svnserve.conf This file, find the following lines,
and remove the previous note symbol ' # ', and be careful not to leave any spaces in front of each line.
Anon-access = Read
auth-access = Write
Password-db = passwd
Under the same directory, see How to configure the password file:
[User]
# Harry = Harryssecret
# sally = Sallyssecret
Harry and Sally each define the user name and password of the user who can write to repo. We can add the following
===================================================================
Added SVN user command under HTTP support:
sudo htpasswd/etc/subversion/passwd other_user_name
Restart
Svnserve-d-R/HOME/SVN
Stop command
Kill All Svnserve
View SVN Services
Ps-ef|grep SVN
SVN server Environment Setup and basic operation (Ubuntu edition)