[Email protected]:~# sudo apt-get install subversion
[Email protected]:/etc/subversion# mkdir/svn[email protected]:/etc/subversion# cd/svn/
To create a version library
[Email protected]:/svn# svnadmin create/svn/sx[email protected]:/svn# lssx[email protected]:/svn# ll Sxtotal 32drwxr-xr-x 6 root root 4096 9 08:39./drwxr-xr-x 3 root root 4096 may 9 08:39. /drwxr-xr-x 2 root root 4096 9 08:39 conf/drwxr-sr-x 6 root root 4096 may 9 08:39 db/-r--r--r--1 root root
2 9 08:39 formatdrwxr-xr-x 2 root root 4096 may 9 08:39 hooks/drwxr-xr-x 2 root root 4096 may 9 08:39 Lo cks/-rw-r--r--1 root root 246 may 9 08:39 README.txt
[Email protected]:/svn/sx/conf# pwd/svn/sx/conf[email protected]:/svn/sx/conf# lsauthz Hooks-env.tmpl passwd svnserve.conf
[General]
Anon-access = None
auth-access = Write
Password-db =/svn/sx/conf/passwd
Authz-db =/svn/sx/conf/authz
[Email protected]:/svn/sx/conf# vi passwd[users]# Harry = harryssecret# sally = Sallyssecretadmin01 = 123456user01 = 123
[Email protected]:/svn/sx/conf# vi authz[groups]# harry_and_sally = harry,sally# Harry_sally_and_joe = harry,sally, &JOEADMINSVN = Admin01adminuser = user01[/] @adminsvn = rw[/sx] @adminuser = RW
[Email protected]:/svn/sx/conf# svnserve-d-r/svn/sx[email protected]:/svn/sx/conf# ps-ef |grep svnroot 25443 1 0 08:54? 00:00:00 svnserve-d-r/svn/sxroot 25445 24814 0 08:54 pts/6 00:00:00 grep--color=auto svn
The above is a single repository: Specify the repository at startup!!!!
[Email protected]:/svn# svnadmin create/svn/test[email protected]:/svn# ls/svn/test/conf db format Hooks Locks README.txt
[Email protected]:/svn/test/conf# VI svnserve.conf
[general]anon-access = noneauth-access = writepassword-db =/svn/test/conf/passwdauthz-db =/svn/test/conf/authz
[Email protected]:/svn/test/conf# vi passwd [users]# Harry = harryssecret# sally = sallyssecretadmintest01 = 123456usertes T01 = 123
[Email protected]:/svn/test/conf# vi authz[groups]# harry_and_sally = harry,sally# Harry_sally_and_joe = harry,sally,& Amp;joeadminuser = Admintest01usertest = usertest01[/] @adminuser = rw[/test] @usertest = rw* =
[Email protected]:/svn/test/conf# ps-ef |grep svnroot 25486 1 0 09:05? 00:00:00 svnserve-d-r/svn/sxroot 25586 24814 0 09:17 pts/6 00:00:00 grep--color=auto svn[email protected] :/svn/test/conf# kill-9 25486[email protected]:/svn/test/conf# svnserve-d-r/svn[email protected]:/svn/test/conf# PS- EF |grep svnroot 25590 1 0 09:18? 00:00:00 svnserve-d-r/svn #如果是多个版本库 do not specify the repository (when booting) root 25592 24814 0 09:18 pts/6 00:00:00 grep--color= Auto SVN
Build SVN server under Ubuntu