1. Yum Install Subversion
2. Enter RPM-QL subversion to view the installation location
Enter SVN--help to see how SVN is used
3. Create SVN repository directory mkdir-p/var/svn/svnrepos 4, create repository Svnadmin Create/var/svn/svnrepos 5, Enter the Conf directory (the SVN repository profile) Authz file is the permission control file passwd is the account password file svnserve.conf SVN service profile 6, set account password VI passwd Add user and password in [users] block, format: Account number = Password, such as Dan=dan 7, set permissions VI Authz to add the following code at the end: [/]dan=rww=r means that the repository's root directory Dan has read and write permissions, and W only reads permissions. 8, modify svnserve.conf file VI svnserve.conf Open the following several comments: (note that the beginning of the line does not leave spaces) anon-access = read #匿名用户可读auth-access = write # Authorized user Writable password-db = passwd #使用哪个文件作为账号文件authz-db = Authz #使用哪个文件作为权限文件realm =/var/svn/svnrepos # Certified space name, Repository directory 9, start SVN version Library svnserve-d-r/var/svn/svnrepos
Linux (CentOS) build svn