How to install the SVN server in Ubuntu
I. Installation
1. check whether or not to install
svn --version
Uninstalled
sudo apt-get remove --purge subversion
2. Installation
sudo apt-get updatesudo apt-get install subversion
3. view the version
# Svn version svn -- version # svn server version svnserve -- version
4. Create a repository
sudo mkdir -p /home/projectsudo svnadmin create /home/project
Ii. Configuration
Modify the three files in the conf directory, authz, passwd, and svnserve. conf.
1. Master configuration file of the svnserve. conf Repository
[General] # anonymous users cannot read, option value none, read and writeanon-access = none # permission users can write auth-access = write # the password file is passwdpassword-db = passwd # The permission file is authzauthz-db = authz
2. passwd is a password file. All users in the current Warehouse are recorded here.
[users]# harry = harryssecret# sally = sallyssecretadmin = admin
3. authz is a permission file used to configure permissions for users in passwd.
[Groups] # create a permission group and specify the users in the group. Use and separate them. # harry_and_sally = harry, sally # harry_sally_and_joe = harry, sally, & joeadmin = zhangcy, liuzz, adminuser = admin, maym, lizh, dongyan # assign permissions to the permission group [/project] @ admin = rw @ user = rw * =
3. Start
1. Start
svnserve -d -r /home/project
2. Check whether svnserve is running
ps aux | grep svnserve
3. Stop the server
killall svnserveps aux | grep svnserve