1. Yum Install Subversion
2. Create the SVN repository directory mkdir-p/SVN 3, create the repository svnadmin create/svn/fengchao/after executing this command, the following files are generated in the/svn/fengchao/directory
conf db format hooks locks README.txt
4. Enter the Conf directory (the SVN repository profile) Authz file is the rights control file passwd is the account password file svnserve.conf SVN service Profile 5, set account password VI passwd Add users and passwords to the [users] block. Format: Account number = password, such as Dan=dan 6, set permissions VI authz Add the following code at the end: [/]dan=rww=r means that the repository's root directory Dan has read and write permissions, W only reads permissions. 7, modify svnserve.conf file VI svnserve.conf Open a few comments: Anon-access = read #匿名用户可读auth-access = write #授权用户可写password-db = passwd # Which file to use as account file Authz-db = Authz #使用哪个文件作为权限文件realm = jfeijfeefeijfiej # comment 8, start the SVN repository svnserve-d-r/svn/fengchao
SVN configuration Deployment