This article mainly introduces the installation and simple configuration of SVN standalone server:
1. Installation (the installation can be done easily by the Yum under CentOS)
Install Subversion
To test whether the installation was successful:
# svnserve--version Enter Show release Notes installation successful
2. Build the Repository
mkdir/svn_repository Create SVN Data directory (directory can be self-made) # Svnadmin Create/svn_repository/myfirst myfirst is the name of the repository and can be changed!
3. Configure the SVN configuration file (for ease of administration, there are multiple libraries calling the same configuration file.) )
1) Master profile: svnserve.conf Master files are generated after each repository is created
# Vim/Svn_repository/myfirst/conf/svnserve.conf
[General] must shelf write, otherwise will error anon-access =writepasswdauthzrealm = kuming
2) Configure the user
passwd //SVN user profile
[Users]user1 = Password1user2 = Password2user3 = password3user4 = Password4
3) Privilege profile
# vim Authz //SVN Privilege control configuration file
[groups] #设置组group1 = user1,user2 #多用户用逗号隔开 [/] #根目录权限设置 (is "kuming" this folder) User3 = rw #用户1权限是 : Read-Write user4 = R #用户2权限是: Readable, non-writable user = #什么都没写代表没有任何权限 @group1 = rw #设置组权限 [kuming:/123] #设置根目录下 "12 3"folder permissions # description"123"How to create this file? This is done after the SVN server is configured, create a user with high privileges to log on to the client svn# and then create a folder "123".
4. Start the server
/svn_repository/myfirst
-d means running in daemon (background run)
-R make the warehouse location you just created
5. Close the SVN server
Killall Svnserve
6. View the service
grep svnserve View service, Port:3690
7.SVN Client Browsing methods
The software that the client uses is TortoiseSVN, browse method: Open Repository Browser input: svn://ip-addr/myfirst/folder name
Install SVN under Ubuntu 14.10