1. Download SVN (Subversion)
Yum Install Subversion
2. See the SVN location (it doesn't matter if you don't see it)
3. Create the SVN repository directory
Svnadmin Create/home/svnrepos
Several files are generated when the creation is complete
4. Enter the Conf directory (the SVN repository configuration file)
Authz file is the permission control file passwd is the account password file svnserve.conf SVN service profile (4-1) Set SVN user, password vi passwd Add user and password in [users] block, format: Account number = password, such as user1=1234 (4-2) Set Permissions VI Authz
[Groups]
# harry_and_sally = harry,sally
# Harry_sally_and_joe = Harry,sally,&joe
Mine=admin,user1,user2
Add the following code at the end:
@mine =RW
This means that the repository's root directory has read and write permissions, and W has Read permission only. (4-3) Modify svnserve.conf file VI svnserve.conf Open a few comments below: anon-access = none# anonymous no permissions auth-access = Write #授权用户可写password-db = passwd #使用哪个文件作为账号文件authz-db = Authz #使用哪个文件作为权限文件 5. Start SVN repository svnserve-d-r/home/svnrepos done!
[SVN] Linux under the SVN server build