1.Mkdir/svn_serv_root
This directory is not a version library, but a version library directory.
2.Svnadmin create/svn_serv_root/projecttest
This creates a version library. If you have multiple projects in the future, you can continue to create a new version Library Under/svn_serv_root.
3.To the/svn_serv_root/projecttest/conf directory,
Modify the svnserve. conf file:
Anon-access = none
Auth-access = write
Password-DB = http://www.cnblogs.com/passwd
Authz-DB = http://www.cnblogs.com/authz
Modify the passwd file:
[Users]
Test = test
Modify the authz file:
[Groups]
Test = test
[/]
@ Test = RW
Then move the passwd and authz files to svn_serv_root:
CD/svn_serv_root/projecttest/Conf
MV passwd http://www.cnblogs.com/
MV authz http://www.cnblogs.com/
The reason for this move is to facilitate the use of the same password configuration file in multiple later versions.
4.Svnserve-d-r/svn_serv_root/
Start svnserve. If no prompt is displayed, the startup is successful.
5.Test:
SVN checkout SVN: // localhost/projecttest -- username = test -- Password = test ~ /Desktop/projecttest
The prompt "checked out Revision 0." indicates that the configuration is successful. (A copy has been down to the desktop .)
6.To add a version library, restart the svnserve process.
The command to kill the svnserve process is:
Killall-9 svnserve
------------------------------------
Reference self-Online http://php.js.cn/blog/ubuntu_svnserve/