1, Installation:
# Yum Install Subversion
To determine if the installation was successful:
# svnserve–version
2, build the SVN repository:
# mkdir/opt/svn/repos# Svnadmin Create/opt/svn/repos
After executing the above command, we automatically set up several files under repos, namely Conf, Db,format,hooks, locks, README.txt.
----------------------------------------------------------------------------------------------------
3, set passwd
# NANO/OPT/SVN/REPOS/CONF/PASSWD
[users]# Harry = harryssecret# sally = Sallyssecretusername = password# So we set up the user username
4, set Authz
# Nano/opt/svn/repos/conf/authz
[/]username = rw# [/] meaning for all directories # username = RW means that username has read and write permissions # together, username has read and write access to all directories
5, set svnserv.conf
# nano/opt/svn/repos/conf/svnserv.conf
Anon-access = none # makes unauthorized users inaccessible auth-access = Write # gives authorized users Write permission password-db = password # specify PASSWORDAUTHZ-DB = Authz # access Control File Realm =/opt/svn/repos # authentication namespace, Subversion is displayed in the authentication prompt and as a keyword for credential caching.
The default configuration is used. All of the above statements must be shelf written, the left cannot be blank, or an error will occur.
----------------------------------------------------------------------------------------------------
6, Connect
Start SVN:
# svnserve-d-r/opt/svn/repos
If you already have SVN running, you can run on a different port (the default port is: 3690):
svnserve-d-r/opt/svn/repos--listen-port 3691
So that the same server can run multiple Svnserver
The link address is:
svn://localhost:3690
Finish!
Centos Build SVN Server