1, installation #yum install Subversion2, view version # Svnserve--version3, build svn repository #mkdir-p/opt/svn/repos#svnadmin create/opt/svn/ Repos executes the above command, automatically set up multiple files under Repos, respectively conf, db,format,hooks, locks, README.txt. 4, configuration into the above generated folder conf, configuration, there are several files Authz, passwd, svnserve.conf
Where Authz is the permission control, you can set which users can access which directories, passwd is to set the user and password, Svnserve is to set the SVN-related Operations 4.1 first set passwd [users] # Harry = Harry Ssecret
# sally = Sallyssecret
Hello=123
User Name = password 4.2 Set permissions again Authz
[/]hello= rw means that Hello users have read and write access to all directories and, of course, can limit
[Groups]
Develop = Pan,hellodesign = Test[/trunk] @develop = rw*= Set group permissions
4.3 final setting snvserv.conf anon-access = None # makes unauthorized users inaccessible auth-access = Write # gives authorized users Write permission
password-db = password
authz-db = authz # access Control file
Realm =/opt/svn/repos # authentication namespace, Subversion will be displayed in the authentication prompt, and as the credential cache keyword 5, link start svn:svnserve-d-t-r/opt/svn/repos If there is already SVN running, Can be run on a different port
svnserve-d-r/opt/svn/repos--listen-port 3391 Check out SVN co file:///opt/svn/repos//home/test1/Export (none. svn) SVN export SVN://19 2.168.1.198:3391/home/test4 import file svn import/opt/lampp/htdocs/zhijianew/config/svn://192.168.1.198:3391/trunk-m " New "View SVN process PS aux|grep svnserve Check whether svn rpm-qa Subversion uninstall Yum Remove Subversion action Add File svn add AAA.P HP Submit file svn ci-m "comment" aaa.php update file svn up delete file svn delete aaa.php-m "comment" vs. base file Compare svn diff aaa.php View Logs SVN log aaa.php
Linux SVN build